RBControl
Library for the RB3201-RBControl board with the ESP32 by RoboticsBrno.
Classes | Public Member Functions | Friends | List of all members
rb::SmartServoBus Class Reference

#include <RBControl_servo.hpp>

Public Member Functions

 SmartServoBus ()
 
 ~SmartServoBus ()
 
void set (uint8_t id, Angle ang, float speed=180.f, float speed_raise=0.0015f)
 
void limit (uint8_t id, Angle bottom, Angle top)
 
Angle pos (uint8_t id)
 
Angle posOffline (uint8_t id)
 
void setAutoStop (uint8_t id, bool enable=true)
 
void setId (uint8_t newId, uint8_t destId=254)
 
uint8_t getId (uint8_t destId=254)
 

Friends

class Manager
 

Constructor & Destructor Documentation

◆ SmartServoBus()

rb::SmartServoBus::SmartServoBus ( )

◆ ~SmartServoBus()

rb::SmartServoBus::~SmartServoBus ( )
inline

Member Function Documentation

◆ getId()

uint8_t rb::SmartServoBus::getId ( uint8_t  destId = 254)

◆ limit()

void rb::SmartServoBus::limit ( uint8_t  id,
Angle  bottom,
Angle  top 
)

◆ pos()

Angle rb::SmartServoBus::pos ( uint8_t  id)

◆ posOffline()

Angle rb::SmartServoBus::posOffline ( uint8_t  id)

◆ set()

void rb::SmartServoBus::set ( uint8_t  id,
Angle  ang,
float  speed = 180.f,
float  speed_raise = 0.0015f 
)

◆ setAutoStop()

void rb::SmartServoBus::setAutoStop ( uint8_t  id,
bool  enable = true 
)

◆ setId()

void rb::SmartServoBus::setId ( uint8_t  newId,
uint8_t  destId = 254 
)

Friends And Related Function Documentation

◆ Manager

friend class Manager
friend

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