demo project

Dependencies:   AX-12A Dynamixel mbed iothub_client EthernetInterface NTPClient ConfigFile SDFileSystem iothub_amqp_transport mbed-rtos proton-c-mbed wolfSSL

Revision:
27:4239713d9690
Parent:
19:2f0ec9ac1238
--- a/RobotArmCfg.h	Mon Feb 01 21:56:01 2016 +0000
+++ b/RobotArmCfg.h	Tue Feb 02 00:47:57 2016 +0000
@@ -7,7 +7,7 @@
 #include "RobotNode.h"
 
 // define number of joints for this arm
-#define NUMJOINTS   5
+static const int NUMJOINTS  = 5;
 
 // used to configure each joint
 typedef struct _NodeCfg
@@ -17,13 +17,20 @@
 } NodeCfg;
 
 // specify joints in arm
-static NodeCfg ArmJoints[NUMJOINTS] = {
-    { NT_AX12, 2 },
-    { NT_AX12, 3 },
-    { NT_AX12, 4 },
-    { NT_AX12, 6 },
-    { NT_AX12, 1 }
-};
+//static NodeCfg ArmJoints[NUMJOINTS] = {
+//    { NT_AX12, 2 },
+//    { NT_AX12, 3 },
+//    { NT_AX12, 4 },
+//    { NT_AX12, 6 },
+//    { NT_AX12, 1 }
+//};
 
+// specify joints in arm
+// array filled in from configuration file
+extern NodeCfg ArmJoints[NUMJOINTS];
+
+extern char* connectionString;
+
+extern bool ReadConfigValues();
 
 #endif
\ No newline at end of file