![]() |
Laelaps
2.3.5
RoadNarrows Robotics Small Outdoor Mobile Robot Project
|
RoboClaw motor controller chip select class. More...
#include <RoboClaw.h>
Public Member Functions | |
RoboClawChipSelect () | |
Default constructor. | |
virtual | ~RoboClawChipSelect () |
Destructor. | |
virtual void | select (int fd, byte_t addrSel) |
Motor controller select function. More... | |
Protected Attributes | |
byte_t | m_addrLast |
last selected motor controller, id'd by address | |
RoboClaw motor controller chip select class.
The RoboClawChipSelect class instance is used to select the motor controller, given its address.
Definition at line 444 of file RoboClaw.h.
|
virtual |
Motor controller select function.
The motor controllers are on a multi-drop serial bus. Serial does not support multiple tx drivers on the same bus. Since there are two motor controllers, each with a transmit line (odroid receive), the select function disconnects one tx while connects the target tx.
fd | Open serial file descriptor. |
addrSel | Target motor controller to be selected. Controllers are identified by their address. |
Reimplemented in laelaps::LaeMotorCtlrChipSelect.
Definition at line 196 of file RoboClaw.cxx.