Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languageyaml
// drive state from center console
data:
  target_vel: float m/s
  state: enum(off, drive, reverse, cruise)
  regen_breaking: uint8_t (boolean) if regen breaking is enabled
  targetcruise_velcontrol: float m/s uint8_t (boolean) if cruise control is enabled

// pedal state from pedal
data:
  throttle: float (0.0 - 1.0)
  brake: float (0.0 - 1.0)

...

Code Block
1:
- velocity left: int16 (m/s * 100)
- velocity right: int16 (m/s * 100)
2:
- voltage left: uint16 (v * 100)
- current left: uint16 (A * 100)
- voltage right: uint16 (v * 100)
- current right: uint16 (A * 100)
3:
- limit_bitset left: uint8_t
- error_bitset left: uint8_t
- limit_bitset right: uint8_t
- error_bitset right: uint8_t
- board_fault bitset: uint8_t
- overtemp bitset: uint8_t
- charge status: uint8_t
4:
- motor_temp left: uint16_t (C * 100)
- heatsink_temp left: uint16_t (C * 100)
- motor_temp right: uint16_t (C * 100)
- heatsink_temp right: uint16_t (C * 100)
5:
- dsp_temp left: uint32_t (C * 100)
- dsp_temp right: uint32_t (C * 100)

Precharge: