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:
Wed Jan 06 22:25:51 2016 +0000
Revision:
11:3a2e6eb9fbb8
Parent:
9:a0fb6c370dbb
Child:
12:ac6c9d7f8c40
error reset. Better sequences;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
henryrawas 4:36a4eceb1b7f 1 /*
henryrawas 4:36a4eceb1b7f 2 Copyright (c) 2015 Jonathan Pickett & Microsoft. Some appropriate open source license.
henryrawas 4:36a4eceb1b7f 3 */
henryrawas 4:36a4eceb1b7f 4
henryrawas 4:36a4eceb1b7f 5 #ifndef __ROBOT_NODE_H__
henryrawas 4:36a4eceb1b7f 6 #define __ROBOT_NODE_H__
henryrawas 4:36a4eceb1b7f 7
henryrawas 4:36a4eceb1b7f 8 enum NodeMeasure
henryrawas 4:36a4eceb1b7f 9 {
henryrawas 8:d98e2dec0f40 10 NM_Temperature = 0x1,
henryrawas 8:d98e2dec0f40 11 NM_Voltage = 0x2,
henryrawas 8:d98e2dec0f40 12 NM_Degrees = 0x3,
henryrawas 8:d98e2dec0f40 13 NM_Load = 0x4
henryrawas 4:36a4eceb1b7f 14 };
henryrawas 4:36a4eceb1b7f 15
henryrawas 4:36a4eceb1b7f 16 enum NodeAction
henryrawas 4:36a4eceb1b7f 17 {
henryrawas 11:3a2e6eb9fbb8 18 NA_Rotate = 0x1,
henryrawas 11:3a2e6eb9fbb8 19 NA_ClearError = 0x2
henryrawas 4:36a4eceb1b7f 20 };
henryrawas 4:36a4eceb1b7f 21
henryrawas 4:36a4eceb1b7f 22 enum NodePartType
henryrawas 4:36a4eceb1b7f 23 {
henryrawas 7:6723f6887d00 24 NT_AX12 = 0x1
henryrawas 4:36a4eceb1b7f 25 };
henryrawas 4:36a4eceb1b7f 26
henryrawas 4:36a4eceb1b7f 27
henryrawas 4:36a4eceb1b7f 28 class RobotNode
henryrawas 4:36a4eceb1b7f 29 {
henryrawas 4:36a4eceb1b7f 30 public:
henryrawas 4:36a4eceb1b7f 31 virtual bool HasMeasure(int measureId) = 0;
henryrawas 4:36a4eceb1b7f 32
henryrawas 4:36a4eceb1b7f 33 virtual float GetMeasure(int measureId) = 0;
henryrawas 4:36a4eceb1b7f 34
henryrawas 4:36a4eceb1b7f 35 virtual float GetLastMeasure(int measureId) = 0;
henryrawas 4:36a4eceb1b7f 36
henryrawas 4:36a4eceb1b7f 37 virtual bool HasAction(int actionId) = 0;
henryrawas 4:36a4eceb1b7f 38
henryrawas 4:36a4eceb1b7f 39 virtual bool DoAction(int actionId, float actionValue) = 0;
henryrawas 4:36a4eceb1b7f 40
henryrawas 7:6723f6887d00 41 virtual int GetLastError() = 0;
henryrawas 4:36a4eceb1b7f 42
henryrawas 9:a0fb6c370dbb 43 virtual bool HasError() = 0;
henryrawas 9:a0fb6c370dbb 44
henryrawas 4:36a4eceb1b7f 45 virtual NodePartType GetNodeType() = 0;
henryrawas 4:36a4eceb1b7f 46 };
henryrawas 4:36a4eceb1b7f 47
henryrawas 4:36a4eceb1b7f 48 #endif