![]() |
Laelaps
2.3.5
RoadNarrows Robotics Small Outdoor Mobile Robot Project
|
Laelaps Odroid GPIO control. More...
Go to the source code of this file.
Functions | |
def | Laelaps.Gpio.gpioReadValue (gpio) |
Read value of a GPIO pin. More... | |
def | Laelaps.Gpio.gpioWriteValue (gpio, value) |
Write a value to a GPIO pin. More... | |
def | Laelaps.Gpio.MotorCtlrChipSelectGpio (port, addrSel, addrLast) |
Laelaps specific chip select function using digital GPIO. More... | |
def | Laelaps.Gpio.MotorCtlrChipselectRts (port, addrSel, addrLast) |
Laelaps specific chip select function using RTS. More... | |
def | Laelaps.Gpio.enableMotorCtlrsPower (state) |
Enable/disable power to Laelaps motor controllers. More... | |
def | Laelaps.Gpio.areMotorCtlrsPowered () |
Test if the motor controllers are powered. More... | |
Laelaps Odroid GPIO control.
Permission is hereby granted, without written agreement and without license or royalty fees, to use, copy, modify, and distribute this software and its documentation for any purpose, provided that (1) The above copyright notice and the following two paragraphs appear in all copies of the source code and (2) redistributions including binaries reproduces these notices in the supporting documentation. Substantial modifications to this software may be copyrighted by their authors and need not follow the licensing terms described here, provided that the new terms are clearly indicated in all files where they apply.
IN NO EVENT SHALL THE AUTHOR, ROADNARROWS LLC, OR ANY MEMBERS/EMPLOYEES OF ROADNARROW LLC OR DISTRIBUTORS OF THIS SOFTWARE BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE AUTHORS OR ANY OF THE ABOVE PARTIES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THE AUTHOR AND ROADNARROWS LLC SPECIFICALLY DISCLAIM ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
—@
Definition in file Gpio.py.
def Laelaps.Gpio.areMotorCtlrsPowered | ( | ) |
Test if the motor controllers are powered.
def Laelaps.Gpio.enableMotorCtlrsPower | ( | state | ) |
def Laelaps.Gpio.gpioReadValue | ( | gpio | ) |
def Laelaps.Gpio.gpioWriteValue | ( | gpio, | |
value | |||
) |
def Laelaps.Gpio.MotorCtlrChipSelectGpio | ( | port, | |
addrSel, | |||
addrLast | |||
) |
Laelaps specific chip select function using digital GPIO.
The Laelaps uses GPIO 173 to select the front or rear motor controllers. For the Odroid, this pin is also the RTS line. Hardware flow control is not used, so this pin is available for signalling.
port | Opened serial port (not used). |
addrSel | Address of motor controller to be selected. |
addrLast | Address of last motor controller selected. |
def Laelaps.Gpio.MotorCtlrChipselectRts | ( | port, | |
addrSel, | |||
addrLast | |||
) |
Laelaps specific chip select function using RTS.
port | Opened serial port. |
addrSel | Address of motor controller to be selected. |
addrLast | Address of last motor controller selected. |