Open batesandy123 opened 7 years ago
Is this off cmd going to be it's own class?
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
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