Add ability to drive the wheels with direct pwm duty
This commit is contained in:
parent
4432e3cca3
commit
3906d7954d
2 changed files with 29 additions and 0 deletions
|
@ -191,6 +191,14 @@ namespace create {
|
|||
*/
|
||||
bool driveWheels(const float& leftWheel, const float& rightWheel);
|
||||
|
||||
/**
|
||||
* \brief Set the direct for the left and right wheels.
|
||||
* \param leftWheel pwm in the range [-1, 1]
|
||||
* \param rightWheel pwm in the range [-1, 1]
|
||||
* \return true if successful, false otherwise
|
||||
*/
|
||||
bool driveWheelsPwm(const float& leftWheel, const float& rightWheel);
|
||||
|
||||
/**
|
||||
* \brief Set the forward and angular velocity of Create.
|
||||
* \param xVel in m/s
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue