YARP
Yet Another Robot Platform
ControlBoardWrapperPWMControl.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_CONTROLBOARDWRAPPERPWMCONTROL_H
7#define YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERPWMCONTROL_H
8
10
12
13
15 virtual public ControlBoardWrapperCommon,
17{
18public:
19 inline bool getNumberOfMotors(int* num) override { return ControlBoardWrapperCommon::getNumberOfMotors(num); }
20 bool setRefDutyCycle(int j, double v) override;
21 bool setRefDutyCycles(const double* v) override;
22 bool getRefDutyCycle(int j, double* v) override;
23 bool getRefDutyCycles(double* v) override;
24 bool getDutyCycle(int j, double* v) override;
25 bool getDutyCycles(double* v) override;
26};
27
28#endif // YARP_DEV_CONTROLBOARDWRAPPER_CONTROLBOARDWRAPPERPWMCONTROL_H
bool getRefDutyCycle(int j, double *v) override
Gets the last reference sent using the setRefDutyCycle function.
bool getDutyCycles(double *v) override
Gets the current dutycycle of the output of the amplifier (i.e.
bool getDutyCycle(int j, double *v) override
Gets the current dutycycle of the output of the amplifier (i.e.
bool getNumberOfMotors(int *num) override
Retrieves the number of controlled motors from the current physical interface.
bool setRefDutyCycle(int j, double v) override
Sets the reference dutycycle to a single motor.
bool getRefDutyCycles(double *v) override
Gets the last reference sent using the setRefDutyCycles function.
bool setRefDutyCycles(const double *v) override
Sets the reference dutycycle for all the motors.
Interface for controlling an axis, by sending directly a PWM reference signal to a motor.
Definition: IPWMControl.h:23