uvic-auvic / Soft_start_2.0

An embedded system created for AUvic to slowly turn on their submarine. It also includes current, voltage, humidity, and temperature monitoring
1 stars 0 forks source link

Implement the OFF cmd #9

Open batesandy123 opened 7 years ago

batesandy123 commented 7 years ago

The soft start needs the off cmd implemented. What the off command does is turns off power to the whole submarine. The off command cannot reset the soft start itself though as the system is being externally powered and would actually end up rebooting. The soft start after powering off the submarine must go into a low power mode

jwlower commented 7 years ago

Is this off cmd going to be it's own class?

batesandy123 commented 7 years ago

There are no classes in C.

Off is going turn off the submarine power but without resetting the microcontroller. This is done by setting a gpio to low. We also want to converse power when we are off, this means turning off rtos tasks that aren't critical.

I think this command shouldn't be implemented into the end. As it has interact with all of the drivers to put them into a state which may not be written for them yet