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.
chassis_mode.cpp@6:ab9f3695633f, 2019-09-29 (annotated)
- Committer:
- GaspardD
- Date:
- Sun Sep 29 20:07:54 2019 +0000
- Revision:
- 6:ab9f3695633f
- Child:
- 8:f23601373e8b
jules guesde mc gyver;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
GaspardD | 6:ab9f3695633f | 1 | #include "chassis_mode.h" |
GaspardD | 6:ab9f3695633f | 2 | |
GaspardD | 6:ab9f3695633f | 3 | double d_dist_one_step_odom; |
GaspardD | 6:ab9f3695633f | 4 | |
GaspardD | 6:ab9f3695633f | 5 | void init_chassis_mode() |
GaspardD | 6:ab9f3695633f | 6 | { |
GaspardD | 6:ab9f3695633f | 7 | chassisMode.mode(PullUp); |
GaspardD | 6:ab9f3695633f | 8 | if(chassisMode.read()) { |
GaspardD | 6:ab9f3695633f | 9 | b_chassis_with_pushbutton = false; |
GaspardD | 6:ab9f3695633f | 10 | d_dist_one_step_odom = 0.06; |
GaspardD | 6:ab9f3695633f | 11 | } else { |
GaspardD | 6:ab9f3695633f | 12 | b_chassis_with_pushbutton = true; |
GaspardD | 6:ab9f3695633f | 13 | d_dist_one_step_odom = 0.08; |
GaspardD | 6:ab9f3695633f | 14 | } |
GaspardD | 6:ab9f3695633f | 15 | return; |
GaspardD | 6:ab9f3695633f | 16 | } |