Rear Power Distribution Firmware
Quick Links:
Architecture:
- In terms of outputs, this board should also be pretty simple (slave, you tell it to turn on a specific board, instead of going to some fault mode, which implies a whole set of boards.)
- It can find out faults! DCDC, and AUX can be sources of faults.
GPIO Outputs:
Expander 0x20:
- PB13_interrupt
- Solar Telemetry DSEL
- Cam Charger DSEL
- Spare DSEL
- Spare DSEL
- Rear Turn Light DSEL
- Rear Brake Light DSEL
- Strobe CTR BRK DSEL
Expander 0x21:
- PB14_interrupt
- solar_sense_en
- telemetry_en
- charger_en
- rear_camera_en
- bms_carrier_en
- motor_interface_en
Expander 0x21:
- PB4_interrupt
- rear_light_turn
- rear_left_turn
- rear_light_brake
- rear_left_brake
- strobe_light
- centre_brake
Modules:
- rear_power_distribution_can
- Receives can messages and raises events.
- Receives events and sends can messages
- aux_dcdc_monitor
- repeatedly reads the voltage and temp from aux and broadcasts the data, as well as fault if there's a fault.
- current_measurement
- probably doesn't work
- uses 4 instances of the bts7200 to read currents
- broadcasts the currents in a periodic loop
- output_driver
- accepts REAR_POWER_OUTPUT_DRIVER_EVENT's
- drives the GPIO outputs using the bts 7200 chip.
Libraries
- MCP23008 Driver
- initialize
- set_gpio_states
Concern | Answer |
---|---|
Do we have to do anything if the aux faults? | Just show it to the driver? or what? |