demo project

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

Committer:
henryrawas
Date:
Sat Jan 23 00:20:27 2016 +0000
Revision:
19:2f0ec9ac1238
Parent:
18:224289104fc0
Child:
27:4239713d9690
licenses

Who changed what in which revision?

UserRevisionLine numberNew contents of line
henryrawas 19:2f0ec9ac1238 1 // Copyright (c) Microsoft. All rights reserved.
henryrawas 19:2f0ec9ac1238 2 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
henryrawas 18:224289104fc0 3
henryrawas 18:224289104fc0 4 #ifndef __ROBOT_ARM_CFG_H__
henryrawas 18:224289104fc0 5 #define __ROBOT_ARM_CFG_H__
henryrawas 18:224289104fc0 6
henryrawas 18:224289104fc0 7 #include "RobotNode.h"
henryrawas 18:224289104fc0 8
henryrawas 18:224289104fc0 9 // define number of joints for this arm
henryrawas 18:224289104fc0 10 #define NUMJOINTS 5
henryrawas 18:224289104fc0 11
henryrawas 18:224289104fc0 12 // used to configure each joint
henryrawas 18:224289104fc0 13 typedef struct _NodeCfg
henryrawas 18:224289104fc0 14 {
henryrawas 18:224289104fc0 15 NodePartType JointType;
henryrawas 18:224289104fc0 16 int JointId;
henryrawas 18:224289104fc0 17 } NodeCfg;
henryrawas 18:224289104fc0 18
henryrawas 18:224289104fc0 19 // specify joints in arm
henryrawas 18:224289104fc0 20 static NodeCfg ArmJoints[NUMJOINTS] = {
henryrawas 18:224289104fc0 21 { NT_AX12, 2 },
henryrawas 18:224289104fc0 22 { NT_AX12, 3 },
henryrawas 18:224289104fc0 23 { NT_AX12, 4 },
henryrawas 18:224289104fc0 24 { NT_AX12, 6 },
henryrawas 18:224289104fc0 25 { NT_AX12, 1 }
henryrawas 18:224289104fc0 26 };
henryrawas 18:224289104fc0 27
henryrawas 18:224289104fc0 28
henryrawas 18:224289104fc0 29 #endif