robot arm demo team / Mbed 2 deprecated RobotArmDemo Featured

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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers RobotArmCfg.h Source File

RobotArmCfg.h

00001 // Copyright (c) Microsoft. All rights reserved.
00002 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
00003 
00004 #ifndef __ROBOT_ARM_CFG_H__
00005 #define __ROBOT_ARM_CFG_H__
00006 
00007 #include "RobotNode.h"
00008 
00009 // define number of joints for this arm
00010 static const int NUMJOINTS  = 5;
00011 
00012 // used to configure each joint
00013 typedef struct _NodeCfg
00014 {
00015     NodePartType    JointType;
00016     int             JointId;
00017 } NodeCfg;
00018 
00019 // specify joints in arm
00020 //static NodeCfg ArmJoints[NUMJOINTS] = {
00021 //    { NT_AX12, 2 },
00022 //    { NT_AX12, 3 },
00023 //    { NT_AX12, 4 },
00024 //    { NT_AX12, 6 },
00025 //    { NT_AX12, 1 }
00026 //};
00027 
00028 // specify joints in arm
00029 // array filled in from configuration file
00030 extern NodeCfg ArmJoints[NUMJOINTS];
00031 
00032 extern char* connectionString;
00033 
00034 extern bool ReadConfigValues();
00035 
00036 #endif