Demo program for a serial controlled cartesian robot with pushbutton and uLCD interfaces.
Dependencies: mbed mbed-rtos 4DGL-uLCD-SE CartesianRobot
Documentation: https://github.com/MarcoNewman/MbedCartesianRobot
Revision 1:43d89b9cf36a, committed 2021-12-16
- Comitter:
- marcoanewman
- Date:
- Thu Dec 16 04:34:03 2021 +0000
- Parent:
- 0:1416f2304218
- Commit message:
- fixed errors
Changed in this revision
| CartesianRobot.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/CartesianRobot.lib Thu Dec 16 02:55:00 2021 +0000 +++ b/CartesianRobot.lib Thu Dec 16 04:34:03 2021 +0000 @@ -1,1 +1,1 @@ -https://os.mbed.com/users/marcoanewman/code/CartesianRobot/#5af6295f4ec9 +https://os.mbed.com/users/marcoanewman/code/CartesianRobot/#0b705e9f84ce
--- a/main.cpp Thu Dec 16 02:55:00 2021 +0000
+++ b/main.cpp Thu Dec 16 04:34:03 2021 +0000
@@ -57,12 +57,12 @@
robot.setXSpeed(1200);
robot.setYSpeed(1200);
robot.setZSpeed(2400);
- robot.setXAcceleration(0);
- robot.setYAcceleration(0);
- robot.setZAcceleration(0);
- robot.setXDeceleration(0);
- robot.setYDeceleration(0);
- robot.setZDeceleration(0);
+ robot.setXAcc(0);
+ robot.setYAcc(0);
+ robot.setZAcc(0);
+ robot.setXDec(0);
+ robot.setYDec(0);
+ robot.setZDec(0);
// baud rate to max for fast display
uLCD.baudrate(3000000);
@@ -70,8 +70,8 @@
// start robot, enable, and position monitoring threads
robot.startManager();
- Thread t1(thread1);
- Thread t2(thread2);
+ Thread t1(enable_switch);
+ Thread t2(position_monitor);
// set the origin position
lcd_mutex.lock();