stm32
stm32 copied to clipboard
Flight-RNH: Feature complete
This is an issue created specifically for Alpha 2
Major features:
- Respond to version command
- Respond to ARM command
- Arm is successful only when there are no battery or port faults, all ports are on.
- Respond to SAFE command
- Disables RR
- Respond to Rocket Ready command
- Is a heartbeat, when enabled turns it on for TIMEOUT seconds
- Ports:
- Respond to PORT command to turn on and off ports, set port current sample rate, port state, faults
- Sample port current draw and send over ethernet
- Monitor port faults and send an error packet when it faults
- Battery
- Handle charging by BQ24725
- Log shore power current draw to ethernet
- (BQ3060) Collect battery charge information and send over ethernet
- (BQ3060) Send error packet when battery faults occur
- Ethernet
- Enable KSZ8999 at startup
- Disable when going to sleep
- Handle sleep command
- Can only sleep when shorepower is off and all ports are off
- Stretch Goal: Respond to TIME command for SD card logging
- Stretch Goal: Watchdogs, lookcats, hoochhounds, observation lemurs, etc.