demo project
Dependencies: AX-12A Dynamixel mbed iothub_client EthernetInterface NTPClient ConfigFile SDFileSystem iothub_amqp_transport mbed-rtos proton-c-mbed wolfSSL
RobotArmCfg.h@27:4239713d9690, 2016-02-02 (annotated)
- Committer:
- henryrawas
- Date:
- Tue Feb 02 00:47:57 2016 +0000
- Revision:
- 27:4239713d9690
- Parent:
- 19:2f0ec9ac1238
use config file
Who changed what in which revision?
User | Revision | Line number | New 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 | 27:4239713d9690 | 10 | static const int 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 | 27:4239713d9690 | 20 | //static NodeCfg ArmJoints[NUMJOINTS] = { |
henryrawas | 27:4239713d9690 | 21 | // { NT_AX12, 2 }, |
henryrawas | 27:4239713d9690 | 22 | // { NT_AX12, 3 }, |
henryrawas | 27:4239713d9690 | 23 | // { NT_AX12, 4 }, |
henryrawas | 27:4239713d9690 | 24 | // { NT_AX12, 6 }, |
henryrawas | 27:4239713d9690 | 25 | // { NT_AX12, 1 } |
henryrawas | 27:4239713d9690 | 26 | //}; |
henryrawas | 18:224289104fc0 | 27 | |
henryrawas | 27:4239713d9690 | 28 | // specify joints in arm |
henryrawas | 27:4239713d9690 | 29 | // array filled in from configuration file |
henryrawas | 27:4239713d9690 | 30 | extern NodeCfg ArmJoints[NUMJOINTS]; |
henryrawas | 27:4239713d9690 | 31 | |
henryrawas | 27:4239713d9690 | 32 | extern char* connectionString; |
henryrawas | 27:4239713d9690 | 33 | |
henryrawas | 27:4239713d9690 | 34 | extern bool ReadConfigValues(); |
henryrawas | 18:224289104fc0 | 35 | |
henryrawas | 18:224289104fc0 | 36 | #endif |