![]() |
Laelaps
2.3.5
RoadNarrows Robotics Small Outdoor Mobile Robot Project
|
RoboClaw motor controller chip select class. More...
#include <laeMotor.h>
Public Member Functions | |
| LaeMotorCtlrChipSelect () | |
| Default constructor. | |
| virtual | ~LaeMotorCtlrChipSelect () |
| Destructor. | |
| virtual int | open (int pinGpio) |
| Open GPIO pin interface. More... | |
| virtual int | close () |
| Close GPIO pin interface. More... | |
| virtual bool | isOpen () |
| Test if connection is open. More... | |
| virtual void | select (int fd, byte_t addrSel) |
| Motor controller select function. More... | |
Public Member Functions inherited from motor::roboclaw::RoboClawChipSelect | |
| RoboClawChipSelect () | |
| Default constructor. | |
| virtual | ~RoboClawChipSelect () |
| Destructor. | |
Static Public Attributes | |
| static const byte_t | LaeMotorCtlrCsHigh = LaeMotorCtlrAddrFront |
| motor controller address associated with high signal | |
| static const byte_t | LaeMotorCtlrCsLow = LaeMotorCtlrAddrRear |
| motor controller address associated with low signal | |
Protected Attributes | |
| int | m_pinGpio |
| int | m_fdGpio |
Protected Attributes inherited from motor::roboclaw::RoboClawChipSelect | |
| 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.
For Laelaps, this is accomplished through a digital GPIO pin.
With the new RoboClaw firmware, chip select is no longer necessary. This class is deprecated.
Definition at line 190 of file laeMotor.h.