Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: chassis_mode.cpp
- Revision:
- 6:ab9f3695633f
- Child:
- 8:f23601373e8b
diff -r 8bbe640528bc -r ab9f3695633f chassis_mode.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/chassis_mode.cpp Sun Sep 29 20:07:54 2019 +0000 @@ -0,0 +1,16 @@ +#include "chassis_mode.h" + +double d_dist_one_step_odom; + +void init_chassis_mode() +{ + chassisMode.mode(PullUp); + if(chassisMode.read()) { + b_chassis_with_pushbutton = false; + d_dist_one_step_odom = 0.06; + } else { + b_chassis_with_pushbutton = true; + d_dist_one_step_odom = 0.08; + } + return; +} \ No newline at end of file