Marco Newman / Mbed 2 deprecated CartesianRobot_Demo

Dependencies:   mbed mbed-rtos 4DGL-uLCD-SE CartesianRobot

Revision:
1:43d89b9cf36a
Parent:
0:1416f2304218
--- 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();