ArPiRobot-CoreLib C++
C++ library for ArPiRobot robots
|
#include <AdafruitMotorHatMotor.hpp>
Public Member Functions | |
LowLevelDCMotor (AdafruitMotorHat *hat, int num) | |
void | run (MotorCommand cmd) |
void | setSpeed (double speed) |
Motor object instantiated by the motor hat
void arpirobot::internal::AdafruitMotorHat::LowLevelDCMotor::run | ( | MotorCommand | cmd | ) |
Set the motor's mode (MotorCommand)
cmd | The MotorCommand for the motor |
void arpirobot::internal::AdafruitMotorHat::LowLevelDCMotor::setSpeed | ( | double | speed | ) |
Set the speed of the motor
speed | The motor speed (-1.0 to 1.0) |