demo project
Dependencies: AX-12A Dynamixel mbed iothub_client EthernetInterface NTPClient ConfigFile SDFileSystem iothub_amqp_transport mbed-rtos proton-c-mbed wolfSSL
Diff: RobotArmCfg.h
- Revision:
- 18:224289104fc0
- Child:
- 19:2f0ec9ac1238
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RobotArmCfg.h Sat Jan 23 00:08:30 2016 +0000 @@ -0,0 +1,30 @@ +/* +Copyright (c) 2015 Jonathan Pickett & Microsoft. Some appropriate open source license. +*/ + +#ifndef __ROBOT_ARM_CFG_H__ +#define __ROBOT_ARM_CFG_H__ + +#include "RobotNode.h" + +// define number of joints for this arm +#define NUMJOINTS 5 + +// used to configure each joint +typedef struct _NodeCfg +{ + NodePartType JointType; + int JointId; +} NodeCfg; + +// specify joints in arm +static NodeCfg ArmJoints[NUMJOINTS] = { + { NT_AX12, 2 }, + { NT_AX12, 3 }, + { NT_AX12, 4 }, + { NT_AX12, 6 }, + { NT_AX12, 1 } +}; + + +#endif \ No newline at end of file