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:
Thu Feb 04 20:10:33 2016 +0000
Revision:
33:8b9dcbf6d8ec
Parent:
19:2f0ec9ac1238
update libs

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 13:ffeff9b5e513 3
henryrawas 13:ffeff9b5e513 4 #ifndef __NODE_Emul_H__
henryrawas 13:ffeff9b5e513 5 #define __NODE_Emul_H__
henryrawas 13:ffeff9b5e513 6
henryrawas 13:ffeff9b5e513 7 #include "RobotNode.h"
henryrawas 13:ffeff9b5e513 8
henryrawas 13:ffeff9b5e513 9
henryrawas 13:ffeff9b5e513 10
henryrawas 13:ffeff9b5e513 11 class NodeEmul : public RobotNode
henryrawas 13:ffeff9b5e513 12 {
henryrawas 13:ffeff9b5e513 13 public:
henryrawas 13:ffeff9b5e513 14 NodeEmul(int id);
henryrawas 13:ffeff9b5e513 15
henryrawas 13:ffeff9b5e513 16 virtual bool HasMeasure(int measureId);
henryrawas 13:ffeff9b5e513 17
henryrawas 13:ffeff9b5e513 18 virtual float GetMeasure(int measureId);
henryrawas 13:ffeff9b5e513 19
henryrawas 15:4bd10f531cdc 20 virtual void ClearMeasureCache();
henryrawas 13:ffeff9b5e513 21
henryrawas 13:ffeff9b5e513 22 virtual bool HasAction(int actionId);
henryrawas 13:ffeff9b5e513 23
henryrawas 13:ffeff9b5e513 24 virtual bool DoAction(int actionId, float actionValue);
henryrawas 13:ffeff9b5e513 25
henryrawas 13:ffeff9b5e513 26 virtual int GetLastError();
henryrawas 13:ffeff9b5e513 27
henryrawas 13:ffeff9b5e513 28 virtual bool HasError();
henryrawas 13:ffeff9b5e513 29
henryrawas 13:ffeff9b5e513 30 virtual NodePartType GetNodeType();
henryrawas 13:ffeff9b5e513 31
henryrawas 13:ffeff9b5e513 32 private:
henryrawas 13:ffeff9b5e513 33
henryrawas 13:ffeff9b5e513 34 // last read temperature
henryrawas 13:ffeff9b5e513 35 int _LastTemperature;
henryrawas 13:ffeff9b5e513 36
henryrawas 13:ffeff9b5e513 37 // last read position
henryrawas 13:ffeff9b5e513 38 float _LastPosition;
henryrawas 13:ffeff9b5e513 39
henryrawas 13:ffeff9b5e513 40 // last read voltage
henryrawas 13:ffeff9b5e513 41 float _LastVoltage;
henryrawas 13:ffeff9b5e513 42
henryrawas 13:ffeff9b5e513 43 // last read load
henryrawas 13:ffeff9b5e513 44 float _LastLoad;
henryrawas 13:ffeff9b5e513 45 };
henryrawas 13:ffeff9b5e513 46
henryrawas 13:ffeff9b5e513 47 #endif