This is a test from 30%Throttle to stop, using full service brake

Dependencies:   mbed millis

Revisions of main.cpp

Revision Date Message Actions
15:4976d145fbd9 2022-04-27 Re-commented old autostop code, as it wouldn't let me compile on site due to undeclared variable. ; ; Added Chai's code for the braking when at 0 speed & 0 throttle, moved to a different area.; ; Commented lines for park brake, needs testing. File  Diff  Annotate
14:aaa46855f00a 2022-04-27 Added a state where the current speed and set throttle speed are both zero for the brakes to be on high (i.e. the train must be stationary and will remain that way) It is left commented out for now File  Diff  Annotate
11:fcf00823f24a 2022-04-22 Added current distance to data logger and the changed the display function to "disp.c_str()" File  Diff  Annotate
10:8415866239cc 2022-04-22 Added desired datalogger output File  Diff  Annotate
9:d1998035418b 2022-04-20 Changed motor disengage to motor1.setPark(); as same think according to Chai File  Diff  Annotate
8:0fe9f7bde2f9 2022-04-20 Cleaned up code so its easier to read ; Removed all unused functions; Added comments; Added new parking brakes; Changed position of Chai's datalogger code; Changed Emergency stop function so motor=0 before disengage , so final signal is 0 throttle File  Diff  Annotate
6:d0ba4c659e9c 2022-04-13 Added braking in emergency stop function and edited out redundancy in setPArk File  Diff  Annotate
5:1911475688a8 2022-04-13 Added newline break in serial display function File  Diff  Annotate
4:d9279fc3a8fb 2022-04-13 Updated display function invoking to under comms good check (line 358) File  Diff  Annotate
3:32e951e05a5b 2022-04-12 Added Chai's code for data logger output, see line 10, 11 and the new function DisplaySerial, which is included at the start of the main loop File  Diff  Annotate
2:d8d92dfc9c82 2022-04-12 Changed Mechanical Braking to accomedate new brakes for testing.; Commented some lines starting from line ~157 File  Diff  Annotate
1:ba85dae98035 2020-03-13 Back to 2019 File  Diff  Annotate
0:4788e1df7b55 2020-03-13 Uncommented RegenBRaking lines to allow capacitors to charge up from the batteries File  Diff  Annotate