Versions Compared

Key

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

...

StateDescriptionTransition
Power OffThe vehicle is off
  • Receiver INPUT_EVENT_POWER signal while in brake and neutral.
Power OnThe vehicle is on
  • Receiver INPUT_EVENT_POWER signal while in the off state.

...

StateDescriptionTransition

Pedal Brake

The car is on, but braking is active
  • Receive INPUT_EVENT_POWER while in the off state
  • Receive INPUT_EVENT_PEDAL_BRAKE signal while in coast, drive, or cruise control

Pedal Coast

The gas pedal is pressed just enough to allow the car to coast.
  • Receive INPUT_EVENT_PEDAL_COAST signal while in the brake or drive state
Pedal DriveThe brakes are engaged and the car is not moving
  • Receive INPUT_EVENT_PEDAL_PRESSED while in the coast state or brake state (Direction state must be in either forward or reverse)
Cruise ControlThe car is currently in cruise control mode
  • Receive INPUT_EVENT_CRUISE_CONTROL while in coast or drive

...

Direction State Machine

This state machine governs the possible gear shifts made by the user. Transitions in the pedal state machine depend on the current state of this FSM.

...

StateDescriptionTransition
Hazard Light On

Hazard lights are currently active

  • Receive INPUT_EVENT_HAZARD_LIGHT signal while hazard lights are off
Hazard Light OffHazard lights are currently inactive
  • Receive INPUT_EVENT_HAZARD_LIGHT signal while hazard lights are on

Horn State Machine

StateDescriptionTransition
Horn OffThe horn is off
  • Receive INPUT_EVENT_HORN signal while the horn is active
Horn OnThe horn is blaring
  • Receive INPUT_EVENT_HORN signal while horn is off

Push-to-Talk State Machine

StateDescriptionTransition
Push-to-Talk ActivePush-to-Talk is currently
  • Receive INPUT_EVENT_PUSH_TO_TALK signal while Push-to-Talk is off
Push-to-Talk InactivePush-to-Talk is off
  • Receive INPUT_EVENT_PUSH_TO_TALK signal while Push-to-Talk is active