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: Dynamixel Protocol Utilities mbed
Fork of Nucleo_Dynamixel_18V by
Revision 8:ae31c62ed181, committed 2016-07-10
- Comitter:
- Mirthilon
- Date:
- Sun Jul 10 05:18:09 2016 +0000
- Parent:
- 7:761930a5373d
- Commit message:
- 18 V RX-28 only load test
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sun Jul 10 05:17:04 2016 +0000
+++ b/main.cpp Sun Jul 10 05:18:09 2016 +0000
@@ -164,8 +164,8 @@
Base.setMovingSpeed(1024+speed);
Elbow.setMovingSpeed(1024+2.3*speed); // was 1024+2.2*speed
Wrist.setMovingSpeed(1024+1.4*speed);
- Pan.setMovingSpeed(1024+0.3*speed);
- Tilt.setMovingSpeed(1024+0.3*speed);
+ //Pan.setMovingSpeed(1024+0.3*speed);
+ //Tilt.setMovingSpeed(1024+0.3*speed);
}
void setLimits() {
@@ -227,10 +227,10 @@
setSpeed(100);
uint16_t currentPosTilt;
uint16_t currentPosPan;
- Pan.setCWAngleLimit(0);
- Pan.setCCWAngleLimit(4095);
- Pan.setGoalPosition(1850);
- Tilt.setGoalPosition(195);
+ //Pan.setCWAngleLimit(0);
+ //Pan.setCCWAngleLimit(4095);
+ //Pan.setGoalPosition(1850);
+ //Tilt.setGoalPosition(195);
Base.setGoalPosition(60);
Elbow.setGoalPosition(350);
@@ -256,16 +256,17 @@
else if (echo == 97) { panIncrementLeft(); }
else if (echo == 100) { panIncrementRight(); }
else {
+ continue;
//Tilt.setMovingSpeed(1024);
//Pan.setMovingSpeed(1024);
- currentPosPan = Pan.getPresentPosition();
- Pan.setGoalPosition(currentPosPan);
+ //currentPosPan = Pan.getPresentPosition();
+ //Pan.setGoalPosition(currentPosPan);
}
- currentPosTilt = Tilt.getPresentPosition();
- pc.printf("Tilt Position: %d\r\n",currentPosTilt);
- currentPosPan = Pan.getPresentPosition();
- pc.printf("Pan Position: %d\r\n",currentPosPan);
+ //currentPosTilt = Tilt.getPresentPosition();
+ //pc.printf("Tilt Position: %d\r\n",currentPosTilt);
+ //currentPosPan = Pan.getPresentPosition();
+ //pc.printf("Pan Position: %d\r\n",currentPosPan);
/*
