YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
ImplementPWMControl.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-FileCopyrightText: 2006-2010 RobotCub Consortium
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef YARP_DEV_IMPLEMENTPWMCONTROL_H
8#define YARP_DEV_IMPLEMENTPWMCONTROL_H
9
11#include <yarp/dev/api.h>
12#include <yarp/conf/system.h>
13
14namespace yarp::dev {
15class ImplementPWMControl;
16}
17
18namespace yarp::dev::impl {
19
20template <typename T>
21class FixedSizeBuffersManager;
22
23} // namespace yarp::dev::impl
24
26{
27 void *helper;
30public:
31 bool initialize(int k, const int *amap, const double* dutyToPWM);
32 bool uninitialize();
35 bool getNumberOfMotors(int *ax) override;
36 bool setRefDutyCycle(int j, double v) override;
37 bool setRefDutyCycles(const double *v) override;
38 bool getRefDutyCycle(int j, double *v) override;
39 bool getRefDutyCycles(double *v) override;
40 bool getDutyCycle(int j, double *v) override;
41 bool getDutyCycles(double *v) override;
42
43};
44
45#endif // YARP_DEV_IMPLEMENTPWMCONTROL_H
Interface for controlling an axis, by sending directly a PWM reference signal to a motor.
Definition IPWMControl.h:84
Interface for controlling an axis, by sending directly a PWM reference signal to a motor.
Definition IPWMControl.h:23
bool initialize(int k, const int *amap, const double *dutyToPWM)
bool getDutyCycle(int j, double *v) override
Gets the current dutycycle of the output of the amplifier (i.e.
bool getDutyCycles(double *v) override
Gets the current dutycycle of the output of the amplifier (i.e.
bool getNumberOfMotors(int *ax) override
Retrieves the number of controlled motors from the current physical interface.
bool getRefDutyCycle(int j, double *v) override
Gets the last reference sent using the setRefDutyCycle function.
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.
bool setRefDutyCycle(int j, double v) override
Sets the reference dutycycle to a single motor.
A manager of fixed size buffers in multi-thread environment.
For streams capable of holding different kinds of content, check what they actually have.
The main, catch-all namespace for YARP.
Definition dirs.h:16
#define YARP_dev_API
Definition api.h:18