...
- signal_lights_fsm
- Uses blinkers to repeatedly raise events
- Has a state machine implementing the.
- inputs:
- event names: signal_left_fsm_input, signal_right_fsm_input, hazard_fsm_input, sync
- outputs:
- signal_left_fsm_output
- signal_right_fsm_output
- signal_both_output, or you can raise a left_output and right_output...
- blinkerblink_event_generator
- uses soft_timers to repeatedly raise an event with a data field
- inputs:
- event_id
- outputs:
- raising that event_id with alternating data fields.
Incoming CAN Messages:
Message ID | Data Fields | Exported Enums |
---|---|---|
SYSTEM_CAN_MESSAGE_FRONT_POWER | uint16_t output_bitset, uint16_t state_bitset | EEFrontPowerDistributionOutput, EEFrontPowerDistributionOutputState |
SYSTEM_CAN_MESSAGE_LIGHTS | uint16_t light_type_bitset, uint16_t state_bitset | EELightType, EELightState |
SYSTEM_CAN_MESSAGE_LIGHTS_SYNC | empty | |
SYSTEM_CAN_MESSAGE_HORN | uint8_t horn_state | EEHornState |
- front_power_distribution
- lights_states
- lights_sync
Outgoing CAN Messages:
Message ID | Data Fields | Exported Enums |
---|---|---|
SYSTEM_CAN_MESSAGE_FRONT_POWER_CURRENT_DATA | uint16_t output_bitset, uint16_t current_data_0, uint16_t current_data_1, uint16_t current_data_2 | EEFrontPowerDistributionOutput |
GPIO Outputs:
# | Output | Port | Pin |
---|---|---|---|
1 | Driver Display | ||
2 | Steering | ||
3 | Centre Console | ||
4 | Pedal | ||
5 | Headlight Left (may be more) | ||
6 | Headlight Right | ||
7 | Signal Left | ||
8 | Signal Right | ||
9 | Strobe Light | ||
10 | Horn | ||
11 | Driver Fan Left | ||
12 | Driver Fan Right | ||
13 | |||
14 | |||
15 | |||
16 |