Commit Graph
9 Commits
Author SHA1 Message Date
Lorenz Meier 9e97994ef9 drivers: Up to three units support 2014-07-15 23:20:02 +02:00
Lorenz Meier e696ed5509 Merged master 2014-07-15 22:07:03 +02:00
Andrew Tridgell 20cd5026d8 device: use bitfields to keep DeviceStructure small
this keeps it small enough to fit in a float, which makes it possible
to see the full value in a MAVLink tlog

Conflicts:
	mavlink/include/mavlink/v1.0
2014-07-12 16:27:19 +02:00
Andrew Tridgell 93d444d1aa device: added a _device_id to all drivers
this device ID identifies a specific device via the tuple of (bus, bus
type, address, devtype). This allows device specific configuration
data to be stored along with a device ID, so the code can know when
the user has changed device configuration (such as removing an
external compass), and either invalidate the device configuration or
force the user to re-calibrate
2014-07-12 16:25:43 +02:00
Lorenz Meier a2ef04146a Introduce enum / define for multiple devices 2014-06-10 15:05:22 +02:00
Lorenz Meier 9bf512cac8 Framework to support disabling publications via IOCTL 2014-01-12 11:52:41 +01:00
Andrew Tridgell b2b9665e44 device: added register_class_devname() API
this allows drivers to register generic device names for a device
class, with automatic class instance handling
2013-12-10 11:31:04 +01:00
px4dev 4b4f33e6a4 Add direct-access methods to the base Device class, so that there's a common way of talking to drivers regardless of which of the specialised classes they derive from.
Make the Device destructor public and virtual, so that arbitrary devices can be deleted. Likewise for classes that derive from it.

Make Device::init public so that arbitrary devices can be initialised after being returned by factories.
2013-08-04 19:48:20 -07:00
Lorenz Meier 13fc670386 Moved last libs, drivers and headers, cleaned up IO build 2013-04-28 09:54:11 +02:00