first commit

Dependencies:   mbed MMA8451Q

Revisions of state_control.h

Revision Date Message Actions
16:8cd4dd323941 2021-10-26 - Fixed brakes problem. Motors responding well no heating issues. Must fixe PI controller issue still File  Diff  Annotate
14:eb9c58c0f8cd 2021-10-26 - Combining the tickers is not effective. When steering and driving are on separate tickers they respond better File  Diff  Annotate
12:f6139597354e 2021-10-26 - Added enable and disable brakes to state_control (commented, did not implement yet) File  Diff  Annotate
10:b0999f69c775 2021-10-26 - changed the if else statement for driving to follow the same structure as in steering (the steering structure was tested ) File  Diff  Annotate
9:5320c2dfb913 2021-10-26 - File  Diff  Annotate
7:05ea1c004b49 2021-10-25 - Combined steering and driving tickers into one ticker that calls both, similar to what is shown in the lecture File  Diff  Annotate
6:d2bd68ba99c9 2021-10-25 Added braking to the fault code, added low batt voltage to the fault code. Removed a wait method in the main loop bc it breaks the driving code (mbed is dumb) File  Diff  Annotate
5:636c3fe18aa8 2021-10-25 - Attempted to extend state control to driving: I wrapped the PI controller in an if-else statement, if the motor is enabled, allow PI controll, if the motor is disabled, write duty cycle of zero. File  Diff  Annotate
4:8b1d52dab862 2021-10-25 - Updated steering pins File  Diff  Annotate
2:c857935f928e 2021-10-25 - Added steering files ; - We must re-assign IO pins File  Diff  Annotate