Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User/marcelo/aux bmsv2 electrical requests #199

Open
wants to merge 55 commits into
base: master
Choose a base branch
from

Conversation

VioletLiGonzales
Copy link
Contributor

Added new contactor to isolate solar arrays from charge line
Reworked startup sequence
Added trips for Orion message timeout and for current too high in relay line.
Started logging contactor disconnected unexpectedly trip
Ensured permanence of trips and strobe lights
Allowed discharge and charge only when the respective contactors are closed

badeniran and others added 30 commits May 21, 2022 11:05
We should double check DMA, ADC and SPI settings
Only difficulty is that for CMSIS v2, CubeMx does not support memory pools so we are assuming
we'll be fine with just queues. Worst case, we'll use pvMalloc and pvFree for dynamic allocation.
Created functions, tasks, and unit tests relating to contactor control.
Implemented stack overflow hook, and malloc failed hook, and error handler
created test for updateAuxTrip

Fix TripTest.c

Add two more tests for updateAuxTrip

Fix unneccessary way of calling checkProtectionTrip

Run remaining tests

Split tripDuetoHighTempAndCurrent into two variables

Removing checkProtectionTrip()

Simplify checkDischargeTrip and checkChargeTrip

add mocks for trip

Redoing OrionInterfaceTest

Add shouldDisconnectContactors test

Finish tests
…he old code we take in multiple adc reads and check if they're stable before we actually use that for calculation. Wrote code for that
… queue, added function to check if orion is happy before setting the common contactor in startup task, change to only execute the orionInterface function if orion is happy before startup happens, changed orion interface to only disconnect contactor once start up is done which we set the variable in discharge contactor gatekeeper because the contactorStatusUpdate function is not running. This is very ghetto and will need to be fixed however at this point the AuxBMS should be useable
VioletLiGonzales and others added 25 commits May 21, 2022 13:26
…ick not SysTick as delay func and macros are based on TaskTicks
* discharge trip due to isCurrentLow being false

* SFT-329 Is Current Low Trip Condition implemented tripping if current line between contactors is too low to close charge or discharge

* add canqueudata
…ng Orion data, have it so StrobeBMSLights only turn on after start up, and increasaed lowCurrent treshold to account for new relays
…protection trips when only common is closed or whenever a contactor is being closed, implemented check for manual charge trip but not being used in charge trip logic
…a retry or a check, added functionality to open charge from the spare toggle button, changed orionInterface logic to isolate charge and discharge closing without having a race condition, neither will trigger the other to close if it closes successfully anymore
…ionGood function to update AuxTrip and AuxStatus while also turning the StrobeLights after a number of failed attempts to close commmon
…sured permanence for StrobeLights and CAN trips
…for some reason except it makes no logical sense, keeping it there for now until further investigation
…HappyForStartUp resets AuxTrip and Strobe lights if startup sequence can begin
…nd discharge engaging, fixed bug where we allow charge and discharge even if contactors are not engaged, added check for charge contactor when engaging solar arrays
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants