DriveWorks SDK Reference
3.5.78 Release
For Test and Development only

VehicleIO.h
Go to the documentation of this file.
1 // This code contains NVIDIA Confidential Information and is disclosed
3 // under the Mutual Non-Disclosure Agreement.
4 //
5 // Notice
6 // ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
7 // NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
8 // THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT,
9 // MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
10 //
11 // NVIDIA Corporation assumes no responsibility for the consequences of use of such
12 // information or for any infringement of patents or other rights of third parties that may
13 // result from its use. No license is granted by implication or otherwise under any patent
14 // or patent rights of NVIDIA Corporation. No third party distribution is allowed unless
15 // expressly authorized by NVIDIA. Details are subject to change without notice.
16 // This code supersedes and replaces all information previously supplied.
17 // NVIDIA Corporation products are not authorized for use as critical
18 // components in life support devices or systems without express written approval of
19 // NVIDIA Corporation.
20 //
21 // Copyright (c) 2015-2020 NVIDIA Corporation. All rights reserved.
22 //
23 // NVIDIA Corporation and its licensors retain all intellectual property and proprietary
24 // rights in and to this software and related documentation and any modifications thereto.
25 // Any use, reproduction, disclosure or distribution of this software and related
26 // documentation without an express license agreement from NVIDIA Corporation is
27 // strictly prohibited.
28 //
30 
48 #ifndef DW_VEHICLEIO_H_
49 #define DW_VEHICLEIO_H_
50 
51 #include <dw/core/Config.h>
52 #include <dw/core/Exports.h>
53 #include <dw/core/Context.h>
54 #include <dw/core/Types.h>
55 #include <dw/sensors/Sensors.h>
56 #include <dw/sensors/canbus/CAN.h>
57 #include <dw/sensors/data/Data.h>
58 #include <dw/rig/Rig.h>
59 
60 #include <stdint.h>
61 
62 #ifdef __cplusplus
63 extern "C" {
64 #endif
65 
66 typedef struct dwVehicleIOObject* dwVehicleIOHandle_t;
67 
68 typedef enum dwVehicleIODrivingMode {
73 
77 
81 
85 
86 typedef enum dwVehicleIOType {
95 
96 typedef enum dwVehicleIOFaults {
104 
105 typedef enum dwVehicleIOOverrides {
112 
113 typedef enum dwVehicleIOGear {
115 
116  // Automatic vehicles
122 
123  // Stick shift vehicles
135 
136 typedef enum dwVehicleIOTurnSignal {
143 
144 typedef enum {
149 
150 typedef enum dwVehicleIOMoonroof {
155 
156 typedef enum dwVehicleIOMirror {
163 
164 typedef enum dwVehicleIOHeadlights {
169  DW_VEHICLEIO_HEADLIGHTS_DRL = 4 //DAYTIME RUNNING LIGHTS
171 
172 // AEB - Automatic Emergency Braking System Status to report externally
173 typedef enum dwVehicleIOAEBState {
174  DW_VEHICLEIO_AEB_STATE_UNKNOWN = 0, // System is in an unknown state
175  DW_VEHICLEIO_AEB_STATE_OFF = 1, // System is off
176  DW_VEHICLEIO_AEB_STATE_READY = 2 // System is operational and ready to fire if necessary
178 
179 // FCW - Forward Collision Warning Status to report externally
180 typedef enum dwVehicleIOFCWState {
181  DW_VEHICLEIO_FCW_STATE_UNKNOWN = 0, // System is in an unknown state
182  DW_VEHICLEIO_FCW_STATE_OFF = 1, // System is off
183  DW_VEHICLEIO_FCW_STATE_READY = 2 // System is operational and ready to fire if necessary
185 
187  DW_VEHICLEIO_LATERAL_ACTUATOR_UNKNOWN = 0, // lateral control actuator interface is unknown
188  DW_VEHICLEIO_LATERAL_STEERING_WHEEL_ANGLE = 1, // uses steering wheel angle for lateral control
189  DW_VEHICLEIO_LATERAL_FRONT_WHEEL_ANGLE = 2, // use front wheel angle for lateral control
190  DW_VEHICLEIO_LATERAL_CURVATURE = 3, // use curvature for lateral control
192 
196 typedef struct dwVehicleIOCommand
197 {
198  bool enable;
199 
200  // Steering command
203 
206 
208 
209  // Throttle command - command to the accelerator pedal deflection as a value from 0 to 1
211 
212  // Brake command - command to the brake pedal deflection as a value from 0 to 1
214 
215  // Deceleration command - target deceleration rate for the vehicle. NOTE: Depending on IO driver,
216  // there are potentially multiple ways to command the vehicle - directly with actuator commands
217  // or with targets (deceleration for example) to downstream systems (brake controller).
219 
220  // Acceleration command
222 
223  // Other commands
226 
227  // Clear CAN bus errors
228  bool clearFaults;
229 
230  // Booleans validating commands
232  bool brakeValid;
236  bool speedValid;
237  bool gearValid;
241 
242  // AEB signals
243  bool aebRequest;
245 
246  // FCW signals
247  bool fcwRequest;
249 
250  uint64_t heartbeatCounter;
251 
253 
255 {
256 
257  //basic body controls
263 
264  //specifically for mirrors
267  //specifically for center console display brightness
269 
270  bool enable;
280 
285 {
290 
295 
299 typedef struct dwVehicleIOState
300 {
304 
307 
312 
314  float32_t frontSteeringAngleCmd;
318 
323 
330 
332  dwTime_t wheelSpeedTimestamp[DW_VEHICLE_NUM_WHEELS];
334 
335  int16_t wheelPosition[DW_VEHICLE_NUM_WHEELS];
336  dwTime_t wheelPositionTimestamp[DW_VEHICLE_NUM_WHEELS];
340 
342 
343  // Vehicle Miscellanoeus data
357  bool doorHood;
358  bool doorTrunk;
364  bool wiper;
368 
373 
376 
378 
379  bool enabled;
380 
384 
387 
389 
395 
396 #define DW_VEHICLEIO_SPEED_LUT_MAX_ENTRIES 50
397 
404 {
415 
429 dwStatus dwVehicleIO_initialize(dwVehicleIOHandle_t* obj, dwVehicleIOType type, const dwVehicle* properties,
430  dwContextHandle_t ctx);
444 dwStatus dwVehicleIO_initializeFromDBC(dwVehicleIOHandle_t* obj, dwVehicleIOType type, const dwVehicle* properties,
445  const char* dbcFilePath, dwContextHandle_t ctx);
446 
460 dwStatus dwVehicleIO_initializeFromRig(dwVehicleIOHandle_t* obj,
461  dwConstRigHandle_t rig,
462  dwContextHandle_t ctx);
463 
474 dwStatus dwVehicleIO_reset(dwVehicleIOHandle_t obj);
475 
486 dwStatus dwVehicleIO_release(dwVehicleIOHandle_t obj);
487 
501 dwStatus dwVehicleIO_selectDriverOverrides(bool throttleOverride, bool steeringOverride,
502  bool brakeOverride, bool gearOverride,
503  dwVehicleIOHandle_t obj);
504 
520 dwStatus dwVehicleIO_consumeCANFrame(const dwCANMessage* msg, uint32_t sensorId, dwVehicleIOHandle_t obj);
521 
535 dwStatus dwVehicleIO_consumeDataPacket(const dwDataPacket* pkt, uint32_t sensorId, dwVehicleIOHandle_t obj);
536 
549  dwVehicleIOHandle_t obj);
550 
563  dwVehicleIOHandle_t obj);
564 
576 dwStatus dwVehicleIO_getVehicleState(dwVehicleIOState* state, dwVehicleIOHandle_t obj);
577 
588 dwStatus dwVehicleIO_getCapabilities(dwVehicleIOCapabilities* caps, dwVehicleIOHandle_t obj);
589 
603 dwStatus dwVehicleIO_setDrivingMode(dwVehicleIODrivingMode mode, dwVehicleIOHandle_t obj);
604 
618 dwStatus dwVehicleIO_addCANSensor(uint32_t vehicleIOId, dwSensorHandle_t sensorHandle, dwVehicleIOHandle_t obj);
619 
633 dwStatus dwVehicleIO_addDataSensor(uint32_t vehicleIOId, dwSensorHandle_t sensorHandle, dwVehicleIOHandle_t obj);
634 
635 #ifdef __cplusplus
636 }
637 #endif
638 
639 #endif // DW_VehicleIO_ACTUATORS_H_
bool buttonCruiseControlGapDecrement
Definition: VehicleIO.h:351
uint8_t displayBrightnessValue
Definition: VehicleIO.h:268
DW_API_PUBLIC dwStatus dwVehicleIO_initializeFromRig(dwVehicleIOHandle_t *obj, dwConstRigHandle_t rig, dwContextHandle_t ctx)
Initialize VehicleIO and prepare all internal structures from Rig Configuration.
dwVehicleIOFCWState
Definition: VehicleIO.h:180
bool buttonCruiseControlOnOff
Definition: VehicleIO.h:344
DW_API_PUBLIC dwStatus dwVehicleIO_setDrivingMode(dwVehicleIODrivingMode mode, dwVehicleIOHandle_t obj)
Setting driving mode allows to control the behaviour of VehicleIO module with regards to the permitte...
float32_t maxFrontSteeringSpeed
Maximum front wheel speed of the turning command (rad/s)
Definition: VehicleIO.h:205
dwVehicleIODoorLock doorLock
basic lock or unlock
Definition: VehicleIO.h:258
bool buttonCruiseControlIncrement
Definition: VehicleIO.h:348
float32_t steeringWheelAngleCmd
Last acknowledged steering wheel value from a command (-10.0 to 10.0 +- 0.01rad)
Definition: VehicleIO.h:310
NVIDIA DriveWorks API: Core Types
dwVehicleIOGear
Definition: VehicleIO.h:113
float float32_t
Specifies POD types.
Definition: Types.h:70
NVIDIA DriveWorks API: Rig Configuration
dwVehicleIOLateralActuatorInterface
Definition: VehicleIO.h:186
bool buttonLaneAssistOnOff
Definition: VehicleIO.h:352
bool gearValid
True if setting gear.
Definition: VehicleIO.h:237
The state data.
Definition: VehicleIO.h:299
dwVehicleIODrivingMode drivingMode
Definition: VehicleIO.h:377
bool buttonCruiseControlGapIncrement
Definition: VehicleIO.h:350
bool mirrorFoldValid
True if setting mirror un/fold.
Definition: VehicleIO.h:274
DW_API_PUBLIC dwStatus dwVehicleIO_selectDriverOverrides(bool throttleOverride, bool steeringOverride, bool brakeOverride, bool gearOverride, dwVehicleIOHandle_t obj)
Select the overrides that the driver can use to disable vehicle control.
dwVehicleIOMirror mirrors
FOLD, UNFOLD, ADJUST_LEFT, ADJUST_RIGHT.
Definition: VehicleIO.h:260
dwVehicleIOTurnSignal
Definition: VehicleIO.h:136
float32_t throttleValue
Current thottle value as requested by a driver (0..1 +- 0.01 fraction of max pedal depressed...
Definition: VehicleIO.h:319
Defines a two-element single-precision floating-point vector.
Definition: Types.h:291
bool mirrorAdjustValid
True if setting mirror adjustment.
Definition: VehicleIO.h:275
dwVehicleIOHeadlights
Definition: VehicleIO.h:164
bool decelerationValid
True if setting deceleration.
Definition: VehicleIO.h:239
The command data.
Definition: VehicleIO.h:196
DW_API_PUBLIC dwStatus dwVehicleIO_initializeFromDBC(dwVehicleIOHandle_t *obj, dwVehicleIOType type, const dwVehicle *properties, const char *dbcFilePath, dwContextHandle_t ctx)
Initialize VehicleIO and prepare all internal structures from DBC File.
int32_t steeringWheelAngleLUTSize
Size of the corresponding lookup table.
Definition: VehicleIO.h:412
bool accelerationValid
True if setting acceleration.
Definition: VehicleIO.h:240
dwTime_t longVelocityForwardMinTimestamp
Definition: VehicleIO.h:287
dwVehicleIOFaults faults
Faults detected (0 = none)
Definition: VehicleIO.h:375
float32_t brakeCmd
Last acknowledged brake value from a command (0..1 +- 0.01 fraction of max pedal depressed, unitless)
Definition: VehicleIO.h:325
int32_t brakeValueLUTSize
Size of the corresponding lookup table.
Definition: VehicleIO.h:406
float32_t speed
Signed norm of velocity vector.
Definition: VehicleIO.h:302
uint64_t heartbeatCounter
VIO command heartbeat.
Definition: VehicleIO.h:250
float32_t steeringWheelAngle
Steering wheel angle (-10.0 to 10.0 +- 0.01rad)
Definition: VehicleIO.h:309
float32_t brakeTorqueActual
Actual applied brake torque value (Nm)
Definition: VehicleIO.h:328
NVIDIA DriveWorks API: Core Methods
dwVehicleIOMoonroof
Definition: VehicleIO.h:150
float32_t brakeTorqueRequested
Requested value of brake torque (Nm)
Definition: VehicleIO.h:327
DW_API_PUBLIC dwStatus dwVehicleIO_release(dwVehicleIOHandle_t obj)
Release used memory and close all modules.
NVIDIA DriveWorks API: Data
bool passengerDetect
Definition: VehicleIO.h:359
dwTime_t speedTimestamp
Time at which speed was updated.
Definition: VehicleIO.h:303
int32_t steeringSpeedLUTSize
Size of the corresponding lookup table.
Definition: VehicleIO.h:410
bool moonroofValid
True if setting moonroof movement.
Definition: VehicleIO.h:273
dwVehicleIOOverrides
Definition: VehicleIO.h:105
float32_t rearAxleCurvature
Path curvature [1/m].
Definition: VehicleIO.h:385
float32_t accelerationValue
acceleration m/s^2
Definition: VehicleIO.h:221
dwVehicleIODrivingMode
Definition: VehicleIO.h:68
bool bucklePassenger
Definition: VehicleIO.h:362
bool passengerAirbag
Definition: VehicleIO.h:360
float32_t throttleState
Throttle value in effect (0..1 +- 0.01 fraction of max pedal depressed, unitless) ...
Definition: VehicleIO.h:321
dwVehicleIOGear gear
Desired gear: 0=UNKNOWN, 1=PARK, 2=REVERSE, 3=NEUTRAL, 4=DRIVE.
Definition: VehicleIO.h:224
bool turnSigValid
True if setting turn signal.
Definition: VehicleIO.h:238
struct dwSensorObject * dwSensorHandle_t
Handle representing a sensor.
Definition: Sensors.h:88
dwVehicleIOFaults
Definition: VehicleIO.h:96
bool fcwRequest
Request to activate FCW.
Definition: VehicleIO.h:247
dwStatus
Status definition.
Definition: Status.h:178
NVIDIA DriveWorks API: Sensors
float32_t maxSteeringWheelSpeed
Maximum steering wheel speed of the turning command rad/s.
Definition: VehicleIO.h:202
float32_t rearAxleCurvatureMax
The tightest radius (left) that can be guaranteed.
Definition: VehicleIO.h:291
dwTime_t throttleTimestamp
Time at which throttle was updated.
Definition: VehicleIO.h:322
float32_t rearAxleCurvatureMin
The tightest radius (right) that can be guaranteed.
Definition: VehicleIO.h:292
dwVehicleIOFCWState fcwState
FCW system status/state.
Definition: VehicleIO.h:248
Safety checks suitable for collision avoidance logic (right now same as NO_SAFETY below)...
Definition: VehicleIO.h:80
bool steeringWheelValid
True if setting steering wheel steering.
Definition: VehicleIO.h:233
dwTime_t engineSpeedTimestamp
engine speed timestamp[us]
Definition: VehicleIO.h:392
DW_API_PUBLIC dwStatus dwVehicleIO_reset(dwVehicleIOHandle_t obj)
Reset VehicleIO to default state.
float32_t inverseSteeringR
Inverse turning radius of the vehicle on the road.
Definition: VehicleIO.h:313
bool steeringEnabled
Steering by-wire enablement reported by vehicle.
Definition: VehicleIO.h:383
float32_t longVelocityForwardMin
A minimum positive longitudinal vehicle speed, when driving forward, to avoid burning the clutch...
Definition: VehicleIO.h:286
bool buttonLeftKeypadDown
Definition: VehicleIO.h:367
dwVehicleIOCapabilityState capability
Definition: VehicleIO.h:388
int64_t dwTime_t
Specifies a timestamp unit, in microseconds.
Definition: Types.h:82
dwTime_t rearAxleCurvatureCapabilityTimestamp
Definition: VehicleIO.h:293
DW_API_PUBLIC dwStatus dwVehicleIO_sendCommand(const dwVehicleIOCommand *cmd, dwVehicleIOHandle_t obj)
Send a vehicle command to the VehicleIO.
Holds a data packet.
Definition: Data.h:60
bool turnSigValid
True if setting turn signal.
Definition: VehicleIO.h:278
bool throttleEnabled
Throttle by-wire enablement reported by vehicle.
Definition: VehicleIO.h:382
dwVehicleIOAEBState
Definition: VehicleIO.h:173
dwVector2f acceleration
Actual acceleration measured in m/s^2.
Definition: VehicleIO.h:305
struct dwRigObject const * dwConstRigHandle_t
Definition: Rig.h:73
dwTime_t brakeTimestamp
Time at which brake was updated.
Definition: VehicleIO.h:329
float32_t fuelLevel
(0 to 1 +- 0.01 fraction of tank volume, unitless)
Definition: VehicleIO.h:369
bool rearAxleCurvatureValid
True if setting rear axle curvature.
Definition: VehicleIO.h:235
float32_t frontSteeringAngle
Same as inverseSteeringR described as an angle instead of radius [rad].
Definition: VehicleIO.h:317
VehicleIO Capabilities.
Definition: VehicleIO.h:403
float32_t steeringWheelTorque
Steering wheel torque (0 to 10.0 +- 0.01 Nm)
Definition: VehicleIO.h:311
bool highBeamHeadlights
Definition: VehicleIO.h:363
dwVector2f radarVelocity
Reported velocity from radar unit(s)
Definition: VehicleIO.h:390
bool speedValid
True if setting speed.
Definition: VehicleIO.h:236
dwVehicleIOTurnSignal turnSig
Turn signal value.
Definition: VehicleIO.h:225
dwTime_t longVelocityForwardMaxTimestamp
Definition: VehicleIO.h:289
float32_t brakeValue
Current brake value as requested by a driver (0..1 +- 0.01 fraction of max pedal depressed, unitless)
Definition: VehicleIO.h:324
bool throttleValid
True if setting throttle.
Definition: VehicleIO.h:231
float32_t steeringWheelAngle
Desired steering wheel angle (rad)
Definition: VehicleIO.h:201
float32_t brakeState
Brake value in effect (0..1 +- 0.01 fraction of max pedal depressed, unitless)
Definition: VehicleIO.h:326
#define DW_VEHICLEIO_SPEED_LUT_MAX_ENTRIES
Definition: VehicleIO.h:396
dwVehicleIOHeadlights headlights
ON/OFF, LOW_BEAM, HIGH_BEAM, DRL.
Definition: VehicleIO.h:261
bool buttonCruiseControlResetCancel
Definition: VehicleIO.h:347
float32_t frontSteeringAngle
Desired front wheel steering angle (rad)
Definition: VehicleIO.h:204
bool aebRequest
Request to activate AEB.
Definition: VehicleIO.h:243
bool enable
True if we are driving by wire. Has to always be set.
Definition: VehicleIO.h:198
NVIDIA DriveWorks API: CAN
dwVehicleIOTurnSignal turnSignal
Turn signal value.
Definition: VehicleIO.h:372
float32_t throttleValue
range 0.0 to 1.0
Definition: VehicleIO.h:210
float32_t mirrorAdjustX
float value 0-5.0 seconds
Definition: VehicleIO.h:265
Comfortable driving is expected (most conservative).
Definition: VehicleIO.h:72
bool clearFaults
Setting > 0 clears any canbus faults/errors.
Definition: VehicleIO.h:228
dwVehicleIOGear gearCmd
Last acknowledged gear from a command.
Definition: VehicleIO.h:371
Number of wheels describing the vehicle.
Definition: Vehicle.h:298
float32_t brakeValue
range 0.0 to 1.0
Definition: VehicleIO.h:213
float32_t reverseSpeedLimit
Normally a negative value (m/s)
Definition: VehicleIO.h:405
bool displayBrightnessValid
True if setting display brightness.
Definition: VehicleIO.h:277
bool buttonCruiseControlDecrement
Definition: VehicleIO.h:349
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:80
float32_t throttleCmd
Last acknowledged throttle value from a command (0..1 +- 0.01 fraction of max pedal depressed...
Definition: VehicleIO.h:320
DW_API_PUBLIC dwStatus dwVehicleIO_getCapabilities(dwVehicleIOCapabilities *caps, dwVehicleIOHandle_t obj)
Retrieve current VehicleIO capabilities.
struct dwVehicleIOObject * dwVehicleIOHandle_t
Definition: VehicleIO.h:66
dwTime_t accelerationTimestamp
Time at which acceleration was updated.
Definition: VehicleIO.h:306
dwVehicleIOAEBState aebState
AEB system status/state.
Definition: VehicleIO.h:244
bool buttonLeftKeypadOk
Definition: VehicleIO.h:365
dwVehicleIOOverrides overrides
Overrides in place (0 = none)
Definition: VehicleIO.h:374
int32_t throttleValueLUTSize
Size of the corresponding lookup table.
Definition: VehicleIO.h:408
bool buttonCruiseControlCancel
Definition: VehicleIO.h:346
bool doorLockValid
True if setting door locks.
Definition: VehicleIO.h:272
bool brakeValid
True if setting break.
Definition: VehicleIO.h:232
dwVehicleIODoorLock
Definition: VehicleIO.h:144
dwVehicleIOMirror
Definition: VehicleIO.h:156
float32_t decelerationValue
decleration m/s^2 - represented as a positive number
Definition: VehicleIO.h:218
dwVehicleIOGear gear
Vehicle gear.
Definition: VehicleIO.h:370
NVIDIA DriveWorks API: Core Exports
DW_API_PUBLIC dwStatus dwVehicleIO_sendMiscCommand(const dwVehicleIOMiscCommand *cmd, dwVehicleIOHandle_t obj)
Send a vehicle command to the VehicleIO.
dwVector2f velocity
Vehicle velocity (longitudinal, lateral) measured in m/s at the rear axle.
Definition: VehicleIO.h:301
DW_API_PUBLIC dwStatus dwVehicleIO_addDataSensor(uint32_t vehicleIOId, dwSensorHandle_t sensorHandle, dwVehicleIOHandle_t obj)
Add data sensor handle and corresponding VehicleIO configuration ID.
DW_API_PUBLIC dwStatus dwVehicleIO_consumeCANFrame(const dwCANMessage *msg, uint32_t sensorId, dwVehicleIOHandle_t obj)
Parse a received event.
DW_API_PUBLIC dwStatus dwVehicleIO_addCANSensor(uint32_t vehicleIOId, dwSensorHandle_t sensorHandle, dwVehicleIOHandle_t obj)
Add CAN sensor handle and corresponding VehicleIO configuration ID.
DW_API_PUBLIC dwStatus dwVehicleIO_initialize(dwVehicleIOHandle_t *obj, dwVehicleIOType type, const dwVehicle *properties, dwContextHandle_t ctx)
Initialize VehicleIO and prepare all internal structures.
bool headlightsValid
True if setting headlights.
Definition: VehicleIO.h:276
dwVehicleIOTurnSignal turnSig
Turn signal - misc also wants this.
Definition: VehicleIO.h:262
bool frontSteeringValid
True if setting front wheel steering.
Definition: VehicleIO.h:234
dwVehicleIOType
Definition: VehicleIO.h:86
float32_t rearAxleCurvatureValue
Path curvature request based on travelled distance (1/m)
Definition: VehicleIO.h:207
VehicleIO will bypass all safety checks.
Definition: VehicleIO.h:83
#define DW_API_PUBLIC
Definition: Exports.h:56
The capability state data.
Definition: VehicleIO.h:284
dwTime_t steeringTimestamp
Time at which steering was updated.
Definition: VehicleIO.h:308
dwVehicleIOMoonroof moonroof
basic open or close
Definition: VehicleIO.h:259
dwTime_t rearAxleCurvatureTimestamp
Timestamp for all motion signals.
Definition: VehicleIO.h:386
Holds a CAN package.
Definition: CAN.h:114
dwTime_t radarVelocityTimestamp
Definition: VehicleIO.h:391
DW_API_PUBLIC dwStatus dwVehicleIO_getVehicleState(dwVehicleIOState *state, dwVehicleIOHandle_t obj)
Retrieve current vehicle state.
float32_t longVelocityForwardMax
A maximum positive longitudinal vehicle speed that the vehicle is designed for.
Definition: VehicleIO.h:288
DEPRECATED: Properties of a passenger car vehicle.
Definition: Vehicle.h:306
float32_t mirrorAdjustY
float value 0-5.0 seconds
Definition: VehicleIO.h:266
DW_API_PUBLIC dwStatus dwVehicleIO_consumeDataPacket(const dwDataPacket *pkt, uint32_t sensorId, dwVehicleIOHandle_t obj)
Similar to dwVehicleIO_consumeCANFrame.
float32_t engineSpeed
engine rpm speed [RPM]
Definition: VehicleIO.h:393
bool brakeEnabled
Brake by-wire enablement reported by vehicle.
Definition: VehicleIO.h:381
bool buttonCruiseControlReset
Definition: VehicleIO.h:345
bool buttonLeftKeypadUp
Definition: VehicleIO.h:366
Same as above, but unsafe commands are clamped to safe limits and warnings are isssued.
Definition: VehicleIO.h:76