ros2_rover
Loading...
Searching...
No Matches
lx16a::MotorController Class Reference

#include <motor_controller.hpp>

Collaboration diagram for lx16a::MotorController:

Public Member Functions

 MotorController (std::string serial_port, unsigned int baud_rate)
 
void corner_to_position (std::vector< int > corner_ticks)
 
void send_motor_duty (std::vector< int > drive_ticks)
 
void kill_motors ()
 
int get_corner_position (uint8_t servo_id)
 
int get_motor_speed (uint8_t servo_id)
 
uint8_t get_mode (uint8_t servo_id)
 
uint8_t get_status (uint8_t servo_id)
 
void move (uint8_t servo_id, int position, int time)
 
void led_turn_off (uint8_t servo_id)
 
void led_turn_on (uint8_t servo_id)
 

Private Attributes

std::unique_ptr< LX16Alx16a
 

Constructor & Destructor Documentation

◆ MotorController()

MotorController::MotorController ( std::string serial_port,
unsigned int baud_rate )

Member Function Documentation

◆ corner_to_position()

void MotorController::corner_to_position ( std::vector< int > corner_ticks)

◆ get_corner_position()

int MotorController::get_corner_position ( uint8_t servo_id)

◆ get_mode()

uint8_t MotorController::get_mode ( uint8_t servo_id)

◆ get_motor_speed()

int MotorController::get_motor_speed ( uint8_t servo_id)

◆ get_status()

uint8_t MotorController::get_status ( uint8_t servo_id)

◆ kill_motors()

void MotorController::kill_motors ( )

◆ led_turn_off()

void MotorController::led_turn_off ( uint8_t servo_id)

◆ led_turn_on()

void MotorController::led_turn_on ( uint8_t servo_id)

◆ move()

void MotorController::move ( uint8_t servo_id,
int position,
int time )

◆ send_motor_duty()

void MotorController::send_motor_duty ( std::vector< int > drive_ticks)

Member Data Documentation

◆ lx16a

std::unique_ptr<LX16A> lx16a::MotorController::lx16a
private

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