-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Created basic structure for relays_fsm and validated * fixed after merging new current_sense * Added open/close relay functions * added current sense fault handler with relays_fsm * reorganized bms_fault checks * formatting + lint * rebase + formatting * added afe reading + fault check * formatting and error fix * reorganized cycle running and added all checks * moved all of afe into relays fsm * Made revisions * making regen braking rely on BMS * started bms smoke * changd regen braking to be dependent on batt voltage * Formatting * added delay reminder for relays switching on/off * altered calculation to work with motor controller easily * fan smoke test * validation changes (not done validating) * afe daisy chaining fix * updated afe daisy chaining. MAIN ERROR: Timing delays of cell_conv cause master task to fall out of sync + return spi status timeout * Add retry mechanism to ltc cell conversion * added bms fan module * fan module * added+validated fan module and new current_sense module. Next step: add in fault handling * small changes: add fault check and verify fan sense * fan testing + added fault msgs * bruh * fault messages * added most fault checks following electrical standards * small changes in syntax * cell sense module * fault_bps file complete * afe/currentsense comms loss fault added * Removed fault_check function frmo ltc_afe_impl since not used anymore * aux_sense added * validation changes * major validation changes * AFEs and I think Current Sense Working * Commented out Current Sense Faults * centre_console chnages + formatting * validation changes * relay delay validated * build fix workflows annoying * soft timer for relays works * current sense added + working with kill switch * fan.c smoke updated * pd validation with mci precharge * jarvis fixes * jarvis fixes 2 --------- Co-authored-by: vagrant <vagrant@midsunbox> Co-authored-by: Bafran <[email protected]> Co-authored-by: Akashem <akashem06>
- Loading branch information
1 parent
0346df0
commit 2704dab
Showing
36 changed files
with
940 additions
and
266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"libs": [ | ||
"FreeRTOS", | ||
"ms-common", | ||
"master", | ||
"master", | ||
"ms-drivers" | ||
], | ||
"can": true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#pragma once | ||
|
||
#include "adc.h" | ||
#include "bms_carrier_getters.h" | ||
#include "bms_carrier_setters.h" | ||
#include "gpio.h" | ||
|
||
#define R2_OHMS 10000 | ||
#define R1_OHMS 47000 | ||
|
||
typedef struct AuxStorage { | ||
uint16_t aux_battery_voltage; | ||
} AuxStorage; | ||
|
||
StatusCode aux_sense_init(AuxStorage *aux_storage); | ||
|
||
StatusCode aux_sense_run(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.