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:
- 8:f23601373e8b
- Parent:
- 6:ab9f3695633f
- Child:
- 9:1b54bac6d9a7
diff -r 23bb20892c8c -r f23601373e8b chassis_mode.cpp
--- a/chassis_mode.cpp Sun Sep 29 20:22:43 2019 +0000
+++ b/chassis_mode.cpp Wed Oct 02 22:25:12 2019 +0000
@@ -1,16 +1,18 @@
#include "chassis_mode.h"
-double d_dist_one_step_odom;
+DigitalIn b_CHASSIS_Mode(PE_11);
+bool b_CHASSIS_with_pushbutton;
+double d_CHASSIS_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;
+ b_CHASSIS_Mode.mode(PullUp);
+ if(b_CHASSIS_Mode.read()) {
+ b_CHASSIS_with_pushbutton = false;
+ d_CHASSIS_dist_one_step_odom = 0.08;
} else {
- b_chassis_with_pushbutton = true;
- d_dist_one_step_odom = 0.08;
+ b_CHASSIS_with_pushbutton = true;
+ d_CHASSIS_dist_one_step_odom = 0.066;
}
return;
}
\ No newline at end of file