YARP
Yet Another Robot Platform
ControlBoardWrapperAmplifierControl.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERAMPLIFIERCONTROL_H
7#define YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERAMPLIFIERCONTROL_H
8
10
12
14 virtual public ControlBoardWrapperCommon,
16{
17public:
18 bool enableAmp(int j) override;
19 bool disableAmp(int j) override;
20 bool getAmpStatus(int* st) override;
21 bool getAmpStatus(int j, int* v) override;
22 inline bool getCurrent(int m, double *curr) override { return ControlBoardWrapperCommon::getCurrent(m, curr); }
23 inline bool getCurrents(double *currs) override { return ControlBoardWrapperCommon::getCurrents(currs); }
24 bool setMaxCurrent(int j, double v) override;
25 bool getMaxCurrent(int j, double* v) override;
26 bool getNominalCurrent(int m, double* val) override;
27 bool setNominalCurrent(int m, const double val) override;
28 bool getPeakCurrent(int m, double* val) override;
29 bool setPeakCurrent(int m, const double val) override;
30 bool getPWM(int m, double* val) override;
31 bool getPWMLimit(int m, double* val) override;
32 bool setPWMLimit(int m, const double val) override;
33 bool getPowerSupplyVoltage(int m, double* val) override;
34};
35
36#endif // YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERAMPLIFIERCONTROL_H
define control board standard interfaces
bool setPeakCurrent(int m, const double val) override
bool setNominalCurrent(int m, const double val) override
bool disableAmp(int j) override
Disable the amplifier on a specific joint.
bool enableAmp(int j) override
Enable the amplifier on a specific joint.
bool getMaxCurrent(int j, double *v) override
Returns the maximum electric current allowed for a given motor.
bool setPWMLimit(int m, const double val) override
bool getCurrent(int m, double *curr)
Interface for control devices, amplifier commands.