libkipr  1.0.0
kipr::motor::Motor Class Reference

#include <motor.hpp>

Public Member Functions

 Motor (int port)
 
void clearPositionCounter ()
 
void moveAtVelocity (short velocity)
 
void moveToPosition (short speed, int goalPos)
 
void moveRelativePosition (short speed, int deltaPos)
 
void setPidGains (short p, short i, short d, short pd, short id, short dd)
 
void pidGains (short &p, short &i, short &d, short &pd, short &id, short &dd)
 
void freeze ()
 
bool isMotorDone () const
 
void blockMotorDone () const
 
void forward ()
 
void backward ()
 
void motor (int percent)
 
void baasbennaguui (int percent)
 
void motorPower (int percent)
 
void off ()
 
int port () const
 

Constructor & Destructor Documentation

◆ Motor()

kipr::motor::Motor::Motor ( int  port)

Member Function Documentation

◆ baasbennaguui()

void kipr::motor::Motor::baasbennaguui ( int  percent)

◆ backward()

void kipr::motor::Motor::backward ( )

◆ blockMotorDone()

void kipr::motor::Motor::blockMotorDone ( ) const

◆ clearPositionCounter()

void kipr::motor::Motor::clearPositionCounter ( )

◆ forward()

void kipr::motor::Motor::forward ( )

◆ freeze()

void kipr::motor::Motor::freeze ( )

◆ isMotorDone()

bool kipr::motor::Motor::isMotorDone ( ) const

◆ motor()

void kipr::motor::Motor::motor ( int  percent)

◆ motorPower()

void kipr::motor::Motor::motorPower ( int  percent)

◆ moveAtVelocity()

void kipr::motor::Motor::moveAtVelocity ( short  velocity)

◆ moveRelativePosition()

void kipr::motor::Motor::moveRelativePosition ( short  speed,
int  deltaPos 
)

◆ moveToPosition()

void kipr::motor::Motor::moveToPosition ( short  speed,
int  goalPos 
)

◆ off()

void kipr::motor::Motor::off ( )

◆ pidGains()

void kipr::motor::Motor::pidGains ( short &  p,
short &  i,
short &  d,
short &  pd,
short &  id,
short &  dd 
)

◆ port()

int kipr::motor::Motor::port ( ) const

◆ setPidGains()

void kipr::motor::Motor::setPidGains ( short  p,
short  i,
short  d,
short  pd,
short  id,
short  dd 
)

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