demo project

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

RobotNode/NodeEmul.h

Committer:
henryrawas
Date:
2016-02-04
Revision:
33:8b9dcbf6d8ec
Parent:
19:2f0ec9ac1238

File content as of revision 33:8b9dcbf6d8ec:

// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

#ifndef __NODE_Emul_H__
#define __NODE_Emul_H__

#include "RobotNode.h"



class NodeEmul : public RobotNode
{
public:
    NodeEmul(int id);
    
    virtual bool HasMeasure(int measureId);
    
    virtual float GetMeasure(int measureId);
    
    virtual void ClearMeasureCache();
    
    virtual bool HasAction(int actionId);
    
    virtual bool DoAction(int actionId, float actionValue);
    
    virtual int GetLastError();
    
    virtual bool HasError();
    
    virtual NodePartType GetNodeType();
    
private:
    
    // last read temperature
    int _LastTemperature;
    
    // last read position
    float _LastPosition;
    
    // last read voltage
    float _LastVoltage;
    
    // last read load
    float _LastLoad;
};

#endif