PX4Flow - a Python class for collecting data from the PX4Flow sensor
Copyright (C) 2014 Simon D. Levy
This code is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This code is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this code. If not, see <http://www.gnu.org/licenses/>.
Classes |
|
|
- px4flow.mavlink_parser.MAVLinkParser(__builtin__.object)
-
- PX4Flow
class PX4Flow(px4flow.mavlink_parser.MAVLinkParser) |
|
An abstract class for reading from the PX4Flow optical flow sensor. Your subclass should provide an
update(self) method that calls one or more of the accessor methods below.
|
|
- Method resolution order:
- PX4Flow
- px4flow.mavlink_parser.MAVLinkParser
- __builtin__.object
Methods defined here:
- __init__(self, port)
- Creates a new PX4Flow object on the specified port.
- close(self)
- Closes the port on which the sensor was opened.
- getFlow(self)
- Returns raw sensor X,Y.
- getFlowComp(self)
- Returns computed X,Y in meters.
- getGroundDistance(self)
- Returns ground distance (height) in meters.
- getQuality(self)
- Returns quality in percent.
- getTime(self)
- Returns current time in microseconds.
- refresh(self)
- Refreshes the optical flow reading.
Methods inherited from px4flow.mavlink_parser.MAVLinkParser:
- process(self, buf)
- unpack(self, fmt, lo, hi, n)
- unpack1(self, fmt, lo, hi)
- unpack_uint8(self, lo)
Data descriptors inherited from px4flow.mavlink_parser.MAVLinkParser:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
|
Data |
|
|
MSG_OPTICAL_FLOW = 100 |