{
	"$schema": "http://json-schema.org/draft-04/schema#",
	"title": "VehicleSensorEvent",
	"type": "object",
	"additionalProperties": false,
	"description": "Analytics-v3 .. UDC - OpenXC data",
	"properties": {
		"log_context": {
			"$ref": "/resources/schema/analytics/client/v3/LogContext.json",
			"description": "Required Log Context Reference"
		},
		"event_name": {
			"type": "string",
			"enum": ["VEHICLE_SENSOR_EVENT"]
		},
		"schema_definition": {
			"type": "string",
			"enum": ["VehicleSensorEvent"]
		},
		"wheel_ground_velocity": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/SpeedItems.json",
				"description": "Ground velocity of wheel in m/s. Positive means forward and negative means backwards."
			}
		},
		"vehicle_speed": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/SpeedItems.json",
				"description": "Log Speed of the vehicle from the vehicle sensors (NOT from the GPS), in m/s"
			}
		},
		"accelerator_pedal_position": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/PercentageItems.json",
				"description": "Accelerator Pedal angle"
			}
		},
		"steering_wheel_angle": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/WheelAngleItems.json",
				"description": "Steering wheel angle in degrees"
			}
		},
		"torque_at_transmission": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/TorqueItems.json",
				"description": "Torque at transmission in newton metre"
			}
		},
		"engine_speed": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/EngineSpeedItems.json",
				"description": "Engine speed in RPM"
			}
		},
		"odometer": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/OdometerItems.json",
				"description": "Odometer value in KM"
			}
		},
		"brake_pedal_status": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/BooleanItems.json",
				"description": "brake pedal status, True - pedal pressed"
			}
		},
		"brake_pedal_position": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/PercentageItems.json",
				"description": "Brake pedal position in percentage"
			}
		},
		"throttle_pedal_position": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/PercentageItems.json",
				"description": "Brake pedal position in percentage"
			}
		},
		"light_state": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/LightStateItems.json",
				"description": "Light state - Bitarray. Convert to decimal and then send."
			}
		},
		"windshield_wiper_status": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/NumberItemsSix.json",
				"description": "Windshield Wiper status - number [1;6]"
			}
		},
		"transmission_gear_position": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/NumberItemsThirteen.json",
				"description": "Transmission gear position - number [1;14]"
			}
		},
		"transmission_shift_position": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/NumberItemsFifteen.json",
				"description": "transmission shift position - number [0;15]"
			}
		},
		"automatic_transmission_gear_position": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/NumberItemsFifteen.json",
				"description": "Automatic Transmission gear position - number [1;14]"
			}
		},
		"ignition_status": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/NumberItemsFour.json",
				"description": "Ignition status - number [1;4]"
			}
		},
		"door_status": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/DoorStatusItems.json",
				"description": "Door status - Bitarray. Convert to decimal and then send. 0 - door closed and 1 - door open"
			}
		},
		"parking_brake_status": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/BooleanItems.json",
				"description": "Parking brake status. True - brake engaged"
			}
		},
		"fuel_level": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/FuelLevelItems.json",
				"description": "Fuel content. 0 is 0% and 10 is 100%"
			}
		},
		"fuel_consumed_since_restart": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/FuelConsumedItems.json",
				"description": "Fuel consumed since restart. This goes to 0 every time the vehicle restarts, like a trip meter. Value in Liters"
			}
		},
		"vehicle_gps_sensor": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/VehicleGpsSensorItems.json",
				"description": "Collect gps location data from the vehicle sensor. Includes lat,lon, timestamp etc"
			}
		},
		"vehicle_gps_sensor_precise": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/VehicleGpsSensorItems.json",
				"description": "Collect gps location data from the vehicle sensor. Includes lat,lon, timestamp etc"
			}
		},
		"fuel_consumption_rate": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/FuelConsumptionRateItems.json",
				"description": "Fuel consumption rate, unit -  L/h. [0, 3276.75]"
			}
		},
		"fuel_type": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/FuelTypeItems.json",
				"description": "Shows type of fuel being used e.g ETHANOL, DIESEL, ELECTRIC etc"
			}
		},
		"headlamp_status": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/BooleanItems.json",
				"description": "Shows headlamp status,true is on"
			}
		},
		"seat_belt_indication": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/NumberItemsFour.json",
				"description": "0 - Seat belt indication ON and 1 - Seat Belt indication OFF. Convert to decimal and then send. [00; 11] convert to [0; 3]"
			}
		},
		"seat_belt_status": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/DoorStatusItems.json",
				"description": "0 - Seat belt ON and 1 - Seat Belt indication OFF. Convert to decimal and then send. [00; 11] convert to [0; 3]"
			}
		},
		"lane_departure": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/LaneDepartureItems.json",
				"description": "Tire Pressure in kPa "
			}
		},
		"tire_pressure_status": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/TirePressureStatusItems.json",
				"description": "Array of tire pressure status of the 4 wheels."
			}
		},
		"tire_pressure": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/TirePressureItems.json",
				"description": "Lane Departure Warning Status"
			}
		},
		"driver_workload": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/NumberItemsFifteen.json",
				"description": "Driver workload level"
			}
		},
		"battery_state_of_charge": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/PercentageItems.json",
				"description": "Battery charge state"
			}
		},
		"battery_charge_low": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/BooleanItems.json",
				"description": "If low battery indication is ON"
			}
		},
		"cruise_control_active": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/BooleanItems.json",
				"description": "If cruise control is active"
			}
		},
		"pitch_angle": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/PitchAngleItems.json",
				"description": "Vehicle pitch angle in degrees"
			}
		},
		"pedestrian_warning_indication": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/NumberItemsFour.json",
				"description": "pedestrian warning indication"
			}
		},
		"outside_air_temp": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/AirTemperatureItems.json",
				"description": "Air temperature outside (in deg C)"
			}
		},
		"outside_air_temp_corrected": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/AirTemperatureItems.json",
				"description": "Corrected Air temperature outside (in deg C)"
			}
		},
		"compass_corrected_heading": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/HeadingItems.json",
				"description": "Compass corrected heading angle (degree)"
			}
		},
		"infotainment_system_state": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/NumberItemsTwoHundred.json",
				"description": "Infotainment System State [0; 31]"
			}
		},
		"turn_signal_status": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/NumberItemsFour.json",
				"description": "turn signal status [0; 2]"
			}
		},
		"headlight_setting": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/NumberItemsFour.json",
				"description": "Main light switch setting. 0=AUTO, 1=OFF, 2=PARKLAMP, 3=HEADLAMP"
			}
		},
		"high_voltage_battery_state_of_charge": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/PercentageItems.json",
				"description": "High Voltage Battery Bulk State of Charge percentage"
			}
		},
		"instantaneous_fuel_consumption_rate": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/NumberItemsTwoHundred.json",
				"description": "Instantaneous Fuel Consumption Rate for the vehicle in ltrs/hour [0; 103]"
			}
		},
		"apply_brake_pedal": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/BooleanItems.json",
				"description": "If apply brake pedal indication is on"
			}
		},
		"IMU_acceleration": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/IMUAccelerationItems.json",
				"description": "IMU longitudinal acceleration in m/s^2, [-15.36; 15.33]"
			}
		},
		"abs_active": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/BooleanItems.json",
				"description": "Anti-Lock Braking System status"
			}
		},
		"asr_active": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/BooleanItems.json",
				"description": "Anti-Slip Control / Traction Control System status"
			}
		},
		"esc_active": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/BooleanItems.json",
				"description": "Electronic Stability Control status"
			}
		},
		"airbag_deployed": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/BooleanItems.json",
				"description": "True, if airbag is deployed"
			}
		},
		"automatic_e_call_activated": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/BooleanItems.json",
				"description": "True, if automatic e call is activated"
			}
		},
		"outside_air_pressure": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/OutsideAirPressureItems.json",
				"description": "outside air pressure. Unit: mbar"
			}
		},
		"vehicle_stability_lateral_enhancement": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/VehicleStabilityLateralEnhancementItems.json",
				"description": "Lateral acceleration. Unit: m/s^2"
			}
		},
		"internet_connection_signal_strength": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/InternetConnectionSignalStrengthItems.json",
				"description": "The Strength of the Internet Connection Signal. Unit: dBm"
			}
		},
		"air_conditioning": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/BooleanItems.json",
				"description": "If air_conditioning is on or not"
			}
		},
		"rain_sensor": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/BooleanItems.json",
				"description": "If rain was detected"
			}
		},
		"instant_energy_consumption": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/GeneralNumberItems.json",
				"description": "Battery consumption for EV/hybrid, in watt"
			}
		},
		"auxiliary_power_consumption_rate": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/GeneralNumberItems.json",
				"description": "Consumption for AC, heater, wiper, lamp (total – could also split) – needed for the Range projection calculation for Evs, in watt"
			}
		},
		"current_vehicle_load_weight": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/GeneralNumberItems.json",
				"description": "Dynamic weight – for computing the range projection for EV, in kg"
			}
		},
		"cabin_air_temperature": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/AirTemperatureItems.json",
				"description": "Air temperature inside (in deg C)"
			}
		},
		"max_capacity_battery": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/GeneralNumberItems.json",
				"description": "max capacity of the vehicle battery, in amp hour"
			}
		},
		"range_projection": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/OdometerItems.json",
				"description": "shows the range till empty fuel/battery. Unit: KM."
			}
		},
		"dynamics_yaw_rate": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/DynamicsYAWRateItems.json",
				"description": "YAW rate in deg/sec"
			}
		},
		"dynamics_pitch_rate": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/DynamicsYAWRateItems.json",
				"description": " Gyro – Pitch Rate (Z axis). Unit: degrees/sec"
			}
		},
		"dynamics_roll_rate": {
			"type": "array",
			"maxItems": 6400,
			"items": {
				"$ref": "/resources/schema/analytics/client/v3/DynamicsYAWRateItems.json",
				"description": " Gyro – Roll Rate (X axis). Unit: degrees/sec "
			}
		},
		"start_engine_id": {
			"type": "string",
			"description": "log id of the START_ENGINE event preceding this event"
		}
	},
	"required": [
		"log_context",
		"event_name",
		"schema_definition"
	]
}