YARP
Yet Another Robot Platform
ControlBoardWrapperAmplifierControl.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 #ifndef YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERAMPLIFIERCONTROL_H
10 #define YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERAMPLIFIERCONTROL_H
11 
13 
15 
17  virtual public ControlBoardWrapperCommon,
19 {
20 public:
21  bool enableAmp(int j) override;
22  bool disableAmp(int j) override;
23  bool getAmpStatus(int* st) override;
24  bool getAmpStatus(int j, int* v) override;
25  inline bool getCurrent(int m, double *curr) override { return ControlBoardWrapperCommon::getCurrent(m, curr); }
26  inline bool getCurrents(double *currs) override { return ControlBoardWrapperCommon::getCurrents(currs); }
27  bool setMaxCurrent(int j, double v) override;
28  bool getMaxCurrent(int j, double* v) override;
29  bool getNominalCurrent(int m, double* val) override;
30  bool setNominalCurrent(int m, const double val) override;
31  bool getPeakCurrent(int m, double* val) override;
32  bool setPeakCurrent(int m, const double val) override;
33  bool getPWM(int m, double* val) override;
34  bool getPWMLimit(int m, double* val) override;
35  bool setPWMLimit(int m, const double val) override;
36  bool getPowerSupplyVoltage(int m, double* val) override;
37 };
38 
39 #endif // YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERAMPLIFIERCONTROL_H
ControlBoardWrapperAmplifierControl::getAmpStatus
bool getAmpStatus(int *st) override
Definition: ControlBoardWrapperAmplifierControl.cpp:70
ControlBoardWrapperAmplifierControl::setNominalCurrent
bool setNominalCurrent(int m, const double val) override
Definition: ControlBoardWrapperAmplifierControl.cpp:220
ControlBoardWrapperAmplifierControl::getCurrents
bool getCurrents(double *currs) override
Definition: ControlBoardWrapperAmplifierControl.h:26
ControlBoardWrapperAmplifierControl::getPowerSupplyVoltage
bool getPowerSupplyVoltage(int m, double *val) override
Definition: ControlBoardWrapperAmplifierControl.cpp:295
ControlBoardWrapperCommon::getCurrent
bool getCurrent(int m, double *curr)
Definition: ControlBoardWrapperCommon.cpp:327
ControlBoardWrapperAmplifierControl::setMaxCurrent
bool setMaxCurrent(int j, double v) override
Definition: ControlBoardWrapperAmplifierControl.cpp:117
ControlBoardWrapperAmplifierControl::getPeakCurrent
bool getPeakCurrent(int m, double *val) override
Definition: ControlBoardWrapperAmplifierControl.cpp:184
ControlBoardWrapperAmplifierControl::getMaxCurrent
bool getMaxCurrent(int j, double *v) override
Returns the maximum electric current allowed for a given motor.
Definition: ControlBoardWrapperAmplifierControl.cpp:140
ControlBoardWrapperAmplifierControl::enableAmp
bool enableAmp(int j) override
Enable the amplifier on a specific joint.
Definition: ControlBoardWrapperAmplifierControl.cpp:16
IAmplifierControl.h
define control board standard interfaces
ControlBoardWrapperAmplifierControl::disableAmp
bool disableAmp(int j) override
Disable the amplifier on a specific joint.
Definition: ControlBoardWrapperAmplifierControl.cpp:39
ControlBoardWrapperAmplifierControl::getPWM
bool getPWM(int m, double *val) override
Definition: ControlBoardWrapperAmplifierControl.cpp:237
ControlBoardWrapperAmplifierControl::getNominalCurrent
bool getNominalCurrent(int m, double *val) override
Definition: ControlBoardWrapperAmplifierControl.cpp:165
ControlBoardWrapperAmplifierControl
Definition: ControlBoardWrapperAmplifierControl.h:19
ControlBoardWrapperCommon.h
ControlBoardWrapperCommon
Definition: ControlBoardWrapperCommon.h:19
ControlBoardWrapperAmplifierControl::getCurrent
bool getCurrent(int m, double *curr) override
Definition: ControlBoardWrapperAmplifierControl.h:25
ControlBoardWrapperAmplifierControl::setPeakCurrent
bool setPeakCurrent(int m, const double val) override
Definition: ControlBoardWrapperAmplifierControl.cpp:203
yarp::dev::IAmplifierControl
Interface for control devices, amplifier commands.
Definition: IAmplifierControl.h:33
ControlBoardWrapperCommon::getCurrents
bool getCurrents(double *currs)
Definition: ControlBoardWrapperCommon.cpp:296
ControlBoardWrapperAmplifierControl::getPWMLimit
bool getPWMLimit(int m, double *val) override
Definition: ControlBoardWrapperAmplifierControl.cpp:257
ControlBoardWrapperAmplifierControl::setPWMLimit
bool setPWMLimit(int m, const double val) override
Definition: ControlBoardWrapperAmplifierControl.cpp:278