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

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [debugger/] [src/] [common/] [coreservices/] [imotor.h] - Blame information for rev 5

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 sergeykhbr
/**
2
 * @file
3
 * @copyright  Copyright 2017 GNSS Sensor Ltd. All right reserved.
4
 * @author     Sergey Khabarov - sergeykhbr@gmail.com
5
 * @brief      Motor with sensors interface.
6
 */
7
 
8
#ifndef __DEBUGGER_PLUGIN_IMOTOR_H__
9
#define __DEBUGGER_PLUGIN_IMOTOR_H__
10
 
11
#include <iface.h>
12
#include <inttypes.h>
13
 
14
namespace debugger {
15
 
16
static const char *const IFACE_MOTOR = "IMotor";
17
 
18
class IMotor : public IFace {
19
 public:
20
    IMotor() : IFace(IFACE_MOTOR) {}
21
 
22
    /** 0 = motor is stopped; 1.0 = maximum rpm and enabled Breaks */
23
    virtual double getPowerConsumption() = 0;
24
 
25
    /** Backward pressure: 1.0 = 100% oclusion; 0 = no backward pressure */
26
    virtual double getForceResistance() = 0;
27
    virtual void changeForceResistance(double v) = 0;
28
 
29
    /** value in a range 0 to length mm */
30
    virtual double getActuatorPos() = 0;
31
    virtual double getActuatorMax() = 0;
32
 
33
    // Debug methods:
34
    virtual double getVelocity() = 0;
35
    virtual double getCurrent() = 0;
36
};
37
 
38
}  // namespace debugger
39
 
40
#endif  // __DEBUGGER_PLUGIN_IMOTOR_H__

powered by: WebSVN 2.1.0

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