Versions Compared

Key

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

...

  • will be a library

  • simply just acks powertrain messages

drive_output_fsm

  • receives pedal messages (throttle and brake), and makes a decision on

    • target speed

    • throttle value

  • has two modes: cruise and normal

    • in normal,

    • in cruise, sets target speed

...

Incoming CAN Messages

Message ID

Parameters

CAR_DRIVE_STATE

u_8 drive_staet

BEGIN_PRECHARGE

THROTTLE_OUTPUT

SET_RELAY_STATES

BRAKE_PRESSED

CRUISE_CONTROL_COMMAND

POWERTRAIN_HEARTBEAT

...