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.
Dependencies: 2017NHKpin_config FEP ikarashiMDC
Fork of NHK2017_octopus2 by
Revision 44:3466b8e98fd9, committed 2017-10-23
- Comitter:
- takeuchi
- Date:
- Mon Oct 23 18:40:00 2017 +0900
- Parent:
- 43:c659cd5baa14
- Child:
- 45:a3ff2bc0574b
- Commit message:
- need 2 fix
Changed in this revision
| bot/bot.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/bot/bot.cpp Sun Oct 22 11:24:12 2017 +0900
+++ b/bot/bot.cpp Mon Oct 23 18:40:00 2017 +0900
@@ -75,7 +75,7 @@
float moment = 0;
static float beforestick = pad.getStick(2);
- if(!pad.getButton1(6)) {
+ if(!pad.getButton2(4)) {
axis.resetOffset();
debugSerial.printf("Force RESeT\n\r");
}
@@ -187,11 +187,11 @@
armMotor[ROLL].setSpeed(0.0);
}
- if(!pad.getButton1(0)) {
+ if(!pad.getButton2(3)) {
debugSerial.printf("FUKUDA\n\r");
armMotor[SWORD].setSpeed(1.0);
}
- if(pad.getButton1(0)) armMotor[SWORD].setSpeed(0.0);
+ if(pad.getButton2(3)) armMotor[SWORD].setSpeed(0.0);
slider.slide(pad.getStick(3));
@@ -213,8 +213,8 @@
void Bot::calibrate()
{
if(receiveSuccessed &&
- !pad.getButton2(0) &&
- !pad.getButton2(1)
+ !pad.getButton2(4) &&
+ !pad.getButton2(5)
){
t.start();
t.reset();
