46 #ifndef DW_VEHICLEIO_LEGACY_STRUCTURES_H_ 47 #define DW_VEHICLEIO_LEGACY_STRUCTURES_H_ 581 #define DW_VEHICLEIO_SPEED_LUT_MAX_ENTRIES 50 582 #define DW_VEHICLEIO_LOW_SPEED_THRESHOLD 4 621 #endif // DW_VEHICLEIO_LEGACY_STRUCTURES_H_ NVIDIA DriveWorks API: Core Types
bool buttonCruiseControlGapDecrement
uint8_t displayBrightnessValue
bool buttonCruiseControlOnOff
float32_t maxFrontSteeringSpeed
Maximum front wheel speed of the turning command (rad/s)
dwStateValueFloat frontLoad
Load on front axle [kg].
float32_t ldwSeverity
LDW Warning severity.
bool maxSpeedValid
True if setting speed request.
dwVehicleIODoorLock doorLock
basic lock or unlock
bool buttonCruiseControlIncrement
bool holdRequest
AEB Hold request (only valid if aebRequest or dbsRequest is true)
float32_t steeringWheelAngleCmd
Last acknowledged steering wheel value from a command (-10.0 to 10.0 +- 0.01rad)
float float32_t
Specifies POD types.
NVIDIA DriveWorks API: Rig Configuration
dwVehicleIOLateralActuatorInterface
bool buttonLaneAssistOnOff
bool gearValid
True if setting gear.
bool latAccelerationValid
True if setting lateral acceleration.
The vehicle IO state data.
dwVehicleIODrivingMode drivingMode
bool buttonCruiseControlGapIncrement
bool mirrorFoldValid
True if setting mirror un/fold.
dwVehicleIOMirror mirrors
FOLD, UNFOLD, ADJUST_LEFT, ADJUST_RIGHT.
float32_t throttleValue
Current thottle value as requested by a driver (0..1 +- 0.01 fraction of max pedal depressed...
bool prefillRequest
Request to activate prefill.
float32_t latAccelerationValue
lateral acceleration (m/s^2)
bool latModeValid
True if setting lateral function.
float32_t maxSpeed
Maximum allowed speed to support remaining distance request (m/s)
dwStateValueFloat rearWheelAngle
Defines a two-element single-precision floating-point vector.
bool mirrorAdjustValid
True if setting mirror adjustment.
bool decelerationValid
True if setting deceleration.
dwVehicleIOCDWRequestType cdwRequest
Request to activate CDW.
int32_t steeringWheelAngleLUTSize
Size of the corresponding lookup table.
dwTime_t longVelocityForwardMinTimestamp
float32_t brakeCmd
Last acknowledged brake value from a command (0..1 +- 0.01 fraction of max pedal depressed, unitless)
int32_t brakeValueLUTSize
Size of the corresponding lookup table.
float32_t speed
Signed norm of velocity vector.
uint64_t heartbeatCounter
VIO command heartbeat.
float32_t steeringWheelAngle
Steering wheel angle (-10.0 to 10.0 +- 0.01rad)
float32_t brakeTorqueActual
Actual applied brake torque value (Nm)
dwStateValueFloat lonAccelerationMax
The maximum longutidinal acceleration command that can be guaranteed.
float32_t steeringWheelTorque
Additional steering wheel torque request (Nm).
float32_t lonAccelerationValue
longitudinal acceleration (m/s^2)
dwStateValueFloat driverLoad
Load on driver axle [kg].
float32_t brakeTorqueRequested
Requested value of brake torque (Nm)
dwTime_t speedTimestamp
Time at which speed was updated.
int32_t steeringSpeedLUTSize
Size of the corresponding lookup table.
dwVehicleIOLaneChangeFeedbackRequest
bool moonroofValid
True if setting moonroof movement.
dwVehicleIOBSMRequest bsmRightRequest
Request corresponding to the right visual warning.
float32_t rearAxleCurvature
Path curvature [1/m].
dwStateValueFloat articulationAngle
Yaw articulation angle between truck and trailer measured at rear axle [rad] Angle measured as descri...
dwVehicleIOLaneDepartureWarningSide ldwSide
LDW Warning side of ego lane- left/right.
dwVehicleIOTrailerConnectedStatus
float32_t throttleState
Throttle value in effect (0..1 +- 0.01 fraction of max pedal depressed, unitless) ...
dwVehicleIOGear gear
Desired gear: 0=UNKNOWN, 1=PARK, 2=REVERSE, 3=NEUTRAL, 4=DRIVE.
uint32_t overrides
Overrides in place (0 = none). Flags defined in dwVehicleIOOverrides.
Count of LDW warning sides.
float32_t brakeTorqueDriver
Brake torque requested by driver via physical pedal (Nm)
bool steeringWheelTorqueValid
True if setting steering torque.
bool turnSigValid
True if setting turn signal.
bool fcwRequest
Request to activate FCW.
float32_t maxSteeringWheelSpeed
Maximum steering wheel speed of the turning command rad/s.
dwVehicleIOLaneDepartureWarningState
Driveworks Lane Departure Warning (LDW) activation states.
float32_t rearAxleCurvatureMax
The tightest radius (left) that can be guaranteed.
dwTime_t throttleTimestamp
Time at which throttle was updated.
float32_t rearAxleCurvatureMin
The tightest radius (right) that can be guaranteed.
dwVehicleIOFCWState fcwState
FCW system status/state.
bool remainingDistanceValid
True if setting remaining distance.
Safety checks suitable for collision avoidance logic (right now same as NO_SAFETY below)...
Driving mode is not valid.
dwVehicleIOLatCtrlLoopStatus latCtrlLoopStatus
lateral control loop state
bool steeringWheelValid
True if setting steering wheel steering.
int32_t frontSteeringAngleLowSpeedLUTSize
Size of the corresponding lookup table.
dwTime_t engineSpeedTimestamp
engine speed timestamp[us]
float32_t inverseSteeringR
Inverse turning radius of the vehicle on the road.
bool steeringEnabled
Steering by-wire enablement reported by vehicle.
dwVehicleIOBSMRequest bsmLeftRequest
Request corresponding to the left visual warning.
float32_t longVelocityForwardMin
A minimum positive longitudinal vehicle speed, when driving forward, to avoid burning the clutch...
bool buttonLeftKeypadDown
dwVehicleIOCapabilityState capability
Rear wheel angle on road.
bool lonModeValid
True if setting longitudinal function.
int64_t dwTime_t
Specifies a timestamp unit, in microseconds.
float32_t accSetSpeed
Current ACC Set Speed in m/s.
dwTime_t rearAxleCurvatureCapabilityTimestamp
dwStateValueFloat trailerLoad
Sum of load on all trailer axles [kg].
dwVehicleIOLonMode lonMode
dwVehicleIOEgoFeedback egomotionResult
bool lonAccelerationValid
True if setting longitudinal acceleration.
bool turnSigValid
True if setting turn signal.
dwVehicleIOLaneChangeFeedbackRequest lcfRequest
Lane change info.
bool throttleEnabled
Throttle by-wire enablement reported by vehicle.
dwVector2f acceleration
Actual acceleration measured in m/s^2.
dwVehicleIOTrailerState trailer
bool brakeActive
True if braking system is actively applying brakes.
dwTime_t brakeTimestamp
Time at which brake was updated.
dwVehicleIOLaneDepartureWarningState ldwState
LDW Warning state- on/off.
float32_t fuelLevel
(0 to 1 +- 0.01 fraction of tank volume, unitless)
bool rearAxleCurvatureValid
True if setting rear axle curvature.
float32_t frontSteeringAngle
Same as inverseSteeringR described as an angle instead of radius [rad].
bool rearSteeringValid
True if setting rear wheel steering.
float32_t steeringWheelTorque
Steering wheel torque (0 to 10.0 +- 0.01 Nm)
dwVector2f radarVelocity
Reported velocity from radar unit(s)
dwVehicleIOTurnSignal turnSig
Turn signal value.
dwTime_t longVelocityForwardMaxTimestamp
float32_t brakeValue
Current brake value as requested by a driver (0..1 +- 0.01 fraction of max pedal depressed, unitless)
int32_t minAccelerationLUTSize
Size of the corresponding lookup table.
bool throttleValid
True if setting throttle.
dwVehicleIOBSMRequest bsmAudioRequest
Request corresponding to the audio warning.
float32_t steeringWheelAngle
Desired steering wheel angle (rad)
dwVehicleIOLatMode latMode
float32_t brakeState
Brake value in effect (0..1 +- 0.01 fraction of max pedal depressed, unitless)
#define DW_VEHICLEIO_SPEED_LUT_MAX_ENTRIES
dwVehicleIOHeadlights headlights
ON/OFF, LOW_BEAM, HIGH_BEAM, DRL.
bool buttonCruiseControlResetCancel
float32_t frontSteeringAngle
Desired front wheel steering angle (rad)
float32_t rearSteeringAngle
Desired rear wheel steering angle (rad)
bool aebRequest
Request to activate AEB.
Warning on the left side.
bool enable
True if we are driving by wire. Has to always be set.
dwVehicleIOSignalQuality speedQuality
Speed and velocity signal quality.
dwStateValueFloat pusherLoad
Load on pusher axle [kg].
dwVehicleIOTurnSignal turnSignal
Turn signal value.
float32_t throttleValue
range 0.0 to 1.0
float32_t mirrorAdjustX
float value 0-5.0 seconds
Comfortable driving is expected (most conservative).
bool clearFaults
Setting > 0 clears any canbus faults/errors.
dwVehicleIOGear gearCmd
Last acknowledged gear from a command.
dwStateValueFloat mass
Total mass of vehicle [kg].
uint32_t faults
Faults detected (0 = none). Flags defined in dwVehicleIOFaults.
Number of wheels describing the vehicle.
int32_t frontSteeringSpeedLowSpeedLUTSize
Size of the corresponding lookup table.
float32_t brakeValue
range 0.0 to 1.0
dwVehicleIOLatMode latMode
float32_t reverseSpeedLimit
Normally a negative value (m/s)
bool displayBrightnessValid
True if setting display brightness.
bool buttonCruiseControlDecrement
int32_t curvatureLUTSize
Size of the corresponding lookup table.
dwVehicleIOCDWRequestType
int32_t frontSteeringSpeedLUTSize
Size of the corresponding lookup table.
float32_t throttleCmd
Last acknowledged throttle value from a command (0..1 +- 0.01 fraction of max pedal depressed...
struct dwVehicleIOObject * dwVehicleIOHandle_t
dwTime_t accelerationTimestamp
Time at which acceleration was updated.
Warning on the right side.
dwVehicleIOAEBState aebState
AEB system status/state.
bool brakePedalPressed
True if the brake pedal has been pressed (note that the brake system can be active without a pedal pr...
dwStateValueFloat rearWheelAngleMax
The maximum rear wheel angle command that can be guaranteed.
int32_t throttleValueLUTSize
Size of the corresponding lookup table.
bool buttonCruiseControlCancel
bool doorLockValid
True if setting door locks.
bool brakeValid
True if setting break.
float32_t decelerationValue
decleration m/s^2 - represented as a positive number
dwVehicleIOGear gear
Vehicle gear.
dwVector2f velocity
Vehicle velocity (longitudinal, lateral) measured in m/s at the rear axle.
dwVehicleIOLatCtrlLoopStatus
bool longitudinalTOR
True if an immediate takeover is needed.
dwStateValueFloat frontWheelAngleMin
The minimum front wheel angle command that can be guaranteed.
bool headlightsValid
True if setting headlights.
dwVehicleIOTurnSignal turnSig
Turn signal - misc also wants this.
dwVehicleIOLonMode lonMode
bool frontSteeringValid
True if setting front wheel steering.
float32_t rearAxleCurvatureValue
Path curvature request based on travelled distance (1/m)
VehicleIO will bypass all safety checks.
dwStateValueFloat frontWheelAngleMax
The maximum front wheel angle command that can be guaranteed.
float32_t remainingDistance
Desired longitudinal offset from current position (m)
The capability state data.
dwStateValueFloat mass
Total mass of trailer unit [kg].
dwTime_t steeringTimestamp
Time at which steering was updated.
dwVehicleIOMoonroof moonroof
basic open or close
dwTime_t rearAxleCurvatureTimestamp
Timestamp for all motion signals.
dwStateValueFloat outsideTemperature
outside temperature [degrees C]
dwTime_t radarVelocityTimestamp
int32_t frontSteeringAngleLUTSize
Size of the corresponding lookup table.
float32_t longVelocityForwardMax
A maximum positive longitudinal vehicle speed that the vehicle is designed for.
int32_t maxAccelerationLUTSize
Size of the corresponding lookup table.
Generic signal structure capturing data validity and timestamp.
float32_t mirrorAdjustY
float value 0-5.0 seconds
float32_t engineSpeed
engine rpm speed [RPM]
dwVehicleIOLaneDepartureWarningSide
Driveworks LDW sides with respect to the ego lane.
bool brakeEnabled
Brake by-wire enablement reported by vehicle.
bool buttonCruiseControlReset
bool dbsRequest
Dynamic brake support request.
dwVehicleIOAxleStatus axles
Same as above, but unsafe commands are clamped to safe limits and warnings are isssued.