ArPiRobot-CoreLib C++
C++ library for ArPiRobot robots
Public Member Functions | List of all members
arpirobot::internal::AdafruitMotorHat::LowLevelDCMotor Class Reference

#include <AdafruitMotorHatMotor.hpp>

Public Member Functions

 LowLevelDCMotor (AdafruitMotorHat *hat, int num)
 
void run (MotorCommand cmd)
 
void setSpeed (double speed)
 

Detailed Description

Motor object instantiated by the motor hat

Member Function Documentation

◆ run()

void arpirobot::internal::AdafruitMotorHat::LowLevelDCMotor::run ( MotorCommand  cmd)

Set the motor's mode (MotorCommand)

Parameters
cmdThe MotorCommand for the motor

◆ setSpeed()

void arpirobot::internal::AdafruitMotorHat::LowLevelDCMotor::setSpeed ( double  speed)

Set the speed of the motor

Parameters
speedThe motor speed (-1.0 to 1.0)

The documentation for this class was generated from the following file: