OpenCores
URL https://opencores.org/ocsvn/riscv_vhdl/riscv_vhdl/trunk

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [debugger/] [src/] [common/] [coreservices/] [imotor.h] - Rev 5

Compare with Previous | Blame | View Log

/**
 * @file
 * @copyright  Copyright 2017 GNSS Sensor Ltd. All right reserved.
 * @author     Sergey Khabarov - sergeykhbr@gmail.com
 * @brief      Motor with sensors interface.
 */
 
#ifndef __DEBUGGER_PLUGIN_IMOTOR_H__
#define __DEBUGGER_PLUGIN_IMOTOR_H__
 
#include <iface.h>
#include <inttypes.h>
 
namespace debugger {
 
static const char *const IFACE_MOTOR = "IMotor";
 
class IMotor : public IFace {
 public:
    IMotor() : IFace(IFACE_MOTOR) {}
 
    /** 0 = motor is stopped; 1.0 = maximum rpm and enabled Breaks */
    virtual double getPowerConsumption() = 0;
 
    /** Backward pressure: 1.0 = 100% oclusion; 0 = no backward pressure */
    virtual double getForceResistance() = 0;
    virtual void changeForceResistance(double v) = 0;
 
    /** value in a range 0 to length mm */
    virtual double getActuatorPos() = 0;
    virtual double getActuatorMax() = 0;
 
    // Debug methods:
    virtual double getVelocity() = 0;
    virtual double getCurrent() = 0;
};
 
}  // namespace debugger
 
#endif  // __DEBUGGER_PLUGIN_IMOTOR_H__
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.