Commit Graph

3340 Commits

Author SHA1 Message Date
Andrew Tridgell 8a3a87331d mpu6000: fixed internal/external mixup in pointers
Thanks to Emile for spotting this!

Conflicts:
	mavlink/include/mavlink/v1.0
2014-07-12 16:27:39 +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 6cffa948fe device: pass CDev::ioctl() to superclass
this allows DEVIOCGDEVICEID to work.
2014-07-12 16:26:21 +02:00
Andrew Tridgell c6b0dc1ee8 lsm303d: setup device type 2014-07-12 16:26:12 +02:00
Andrew Tridgell 30a6a3d0b6 hmc5883: setup device type 2014-07-12 16:25:57 +02:00
Andrew Tridgell a2739707bb drv_mag: added devtypes for magnetometers 2014-07-12 16:25:50 +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 a2f528c5ba Merged master 2014-07-12 16:11:43 +02:00
Lorenz Meier 21ce6676a1 Merged master into airspeed_test_fix 2014-07-11 22:03:05 +02:00
Lorenz Meier f487536caf Merge pull request #1168 from PX4/gps_printing
GPS driver: Print velocity as part of status command
2014-07-11 17:33:38 +02:00
Lorenz Meier ee573fea9d GPS driver: Print velocity as part of status command 2014-07-11 14:25:16 +02:00
Lorenz Meier 7ea76336ca Better Doxygen for topics, no code changes 2014-07-11 14:24:07 +02:00
Lorenz Meier 56e1fe382b Remove voltage field for MEAS sensor 2014-07-11 09:10:15 +02:00
Lorenz Meier 50414257a8 Remove voltage field for digital sensors 2014-07-11 09:09:57 +02:00
Jean Cyr e8c5b8230d px4io_uploader cleanup and minor optimization
Remove redundant code
Cleanup error handling in program function
2014-07-10 23:01:41 -04:00
hxxnrx c97e08bcf0 Set IO PX4_I2C_BUS_ONBOARD I2C speed to 400KHz 2014-07-10 21:50:23 +02:00
Jean Cyr 12da0efbb2 Read the full buffer
sizeof wont work here since file_buf is now a pointer
2014-07-10 00:55:33 -04:00
Jean Cyr 8c6745d53f Prevent stack overflow when flashing px4io
Large local variable causing stack overflow when attempting to flash
IO!!!
2014-07-10 00:41:09 -04:00
Lorenz Meier 8f2340acaf Merge pull request #1148 from PX4/fmu_stack
Reduce excessive FMU stack usage
2014-07-08 20:55:10 +02:00
Lorenz Meier 855679f610 Merge pull request #1131 from PX4/pr-1131
Fix SPI struct unitialized use warning
2014-07-08 18:02:13 +02:00
Lorenz Meier 83f343f196 LL40LS: Fix initialiser order in class 2014-07-08 13:53:25 +02:00
Lorenz Meier f2cbc7fe27 MB12xx: Fix initialiser order in class 2014-07-08 13:53:10 +02:00
Lorenz Meier 812d326912 L3GD20: Fix usage function call to fit existing structure. 2014-07-08 13:52:42 +02:00
Lorenz Meier 875be65242 MPU6000: Fix usage function call to fit existing structure. 2014-07-08 13:52:28 +02:00
Lorenz Meier 7d15e999f1 LSM303: Fix usage function call to fit existing structure. 2014-07-08 13:52:10 +02:00
Lorenz Meier 92426c5cfc LSM303D: deal with missing external bus 2014-07-08 13:51:33 +02:00
Lorenz Meier a42ec7df1b MS5611: Deal with missing external bus 2014-07-08 13:50:24 +02:00
Lorenz Meier 369c7d277f Board config cleanup for external bus support 2014-07-08 13:50:00 +02:00
Lorenz Meier a6b52f1c9f HMC5883 post merge cleanup 2014-07-08 13:49:24 +02:00
akdslr ba54983cdf MB12XX Driver: Added a class instance and device specific path 2014-07-08 12:03:47 +02:00
akdslr 67b7a85888 LL40LS driver: Changes from the May 4th plane test flight 2014-07-08 12:03:40 +02:00
akdslr 7f91f0cc3e LL40LS driver: Updated the value to write to the register to trigger a measurement 2014-07-08 12:03:31 +02:00
akdslr 36a9123822 LL40LS driver: adding new range finder driver 2014-07-08 12:03:24 +02:00
Andrew Tridgell 4271634585 l3gd20: fixed a build warning 2014-07-08 12:03:09 +02:00
Andrew Tridgell 1c6ea06790 hmc5883: fixed build warnings 2014-07-08 12:03:02 +02:00
Andrew Tridgell dfee93f3b1 hmc5883: fixed driver startup when trying both buses 2014-07-08 12:02:53 +02:00
Andrew Tridgell 5e62ae7a9e hmc5883: added -C option to calibrate on startup
Conflicts:
	src/drivers/hmc5883/hmc5883.cpp
2014-07-08 12:01:50 +02:00
Andrew Tridgell d952e81ab7 added support for two instances of hmc5883 driver 2014-07-08 12:00:20 +02:00
Andrew Tridgell d2487e7718 hmc5883: added support for -R rotation option 2014-07-08 11:57:02 +02:00
Andrew Tridgell a049f0841d Merged L3GD20 orientation flag while keeping original bus speed 2014-07-08 11:56:45 +02:00
Andrew Tridgell 1dfc7bad7b Merged lsm303d update, keeping default frequency 2014-07-08 11:51:46 +02:00
Andrew Tridgell c681d6621d mpu6000: added -R rotation option 2014-07-08 11:46:47 +02:00
Andrew Tridgell e4e152a85b FMUv2: added define for PX4_I2C_BUS_ONBOARD
needed for hmc5883 on main bus (for FMUv3)
2014-07-08 11:45:11 +02:00
Andrew Tridgell 19dbbf17e8 mpu6000: allow for two mpu6000 instances, one internal, one external
split g_dev into g_dev_int and g_dev_ext
2014-07-08 11:44:58 +02:00
Andrew Tridgell ab90fe7832 ms5611: added -X option for external SPI bus 2014-07-08 11:44:32 +02:00
Andrew Tridgell 541dc1825c mpu6000: added -X option for external bus 2014-07-08 11:44:22 +02:00
Andrew Tridgell e0dbc82d84 lsm303d: added -X option for external bus 2014-07-08 11:44:13 +02:00
Andrew Tridgell e7360f4016 l3gd20: added -X switch for external bus 2014-07-08 11:44:06 +02:00
Andrew Tridgell fea4845ed9 SPI: make _bus protected
this allows runtime use of internal/external bus to determine if DRDY
should be used on the L3GD20
2014-07-08 11:43:58 +02:00
Andrew Tridgell 644d4bb3dc FMUv2: added defines for FMUv3 sensors
this enables EXT0 to EXT3 on external SPI bus, and gives correct names
for FMUv3 board
2014-07-08 11:43:37 +02:00