Versions Compared

Key

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

...

StateDescriptionTransition

Brake

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

Coast

The gas pedal is pressed just enough to allow the car to coast.
  • Receive GASINPUT_EVENT_PEDAL_COAST signal while in the brake or drive state
DriveThe brakes are engaged and the car is not moving
  • Receive GAS_DRIVE 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 _ON while in coast or drive

Directional State Machine

...

StateDescriptionTransition
NeutralThe vehicle is in neutral gear
  • Receive INPUT_EVENT_DIRECTION_SELECTOR_NEUTRAL signal while the Pedal FSM is in the brake state
ForwardThe vehicle is in forward gear
  • Receive INPUT_EVENT_DIRECTION_SELECTOR_FORWARD DRIVE signal while the Pedal FSM is in the brake state
ReverseThe vehicle is in reverse
  • Receive INPUT_EVENT_DIRECTION_SELECTOR_REVERSE signal while the Pedal FSM is in the brake state

...

StateDescriptionTransition
No signalThe car is currently not signalling
  • Receive INPUT_EVENT_TURN_SIGNAL_NONE signal while either signal is active
Left signalThe car has the left signal active
  • Receive INPUT_EVENT_TURN_SIGNAL_LEFT signal while the left signal is inactive
Right signalThe car has the left signal active
  • Receive INPUT_EVENT_TURN_SIGNAL_RIGHT signal while the right signal is inactive

...

StateDescriptionTransition
Hazard Light On

Hazard lights are currently active

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

...

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

...

The horn is blaring
  • Receive INPUT_EVENT_HORN signal while horn is off

Image Added

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 Inactive

...

Push-to-Talk is off
  • Receive INPUT_EVENT_PUSH_TO_TALK signal while Push-to-Talk is active

Image Added