Commit Graph

426 Commits

Author SHA1 Message Date
Lorenz Meier 19f2a7bff0 Only publish battery if we can measure something, initialize battery topic in commander correctly 2016-04-23 14:29:25 +02:00
Lorenz Meier 7dae3abac9 Sensors: Adjust mode switch ranges 2016-04-18 18:29:21 +02:00
James Goppert 372de3fca9 Added LPE to testing, fix LPE logging, add SENS_EN_SF0X 2016-04-14 18:17:58 -04:00
James Goppert f73af95b38 Added SYS_MC_EST_GROUP to allow fine grained algorithm selection. 2016-04-14 15:22:25 -04:00
James Goppert 967e4dd127 Modified cmake to use STACK_MAX and STACK_MAIN 2016-04-14 13:36:36 -04:00
Julian Oes 315c202824 sensors: removed more leftover variables 2016-04-11 18:01:48 +02:00
Julian Oes c87fa43b68 sensors: removed unused variable 2016-04-11 18:01:48 +02:00
Julian Oes 2dfc644f17 sensors: only publish battery topic if valid 2016-04-11 18:01:47 +02:00
Julian Oes 32c3135788 commander: move battery calculations to systemlib
The commander used to consume the battery_status topic and write the
contents after some calculations into the system state. Instead, the
calculations now happen in library calls in systemlib/battery.

This moves the battery fields out of the vehicle_status message into the
battery_status topic.

This brought quite some changes in all modules that need battery
information. The current state is compiling but untested.
2016-04-11 18:01:47 +02:00
Mark Whitehorn 2f057939ad fix bug in handling of missing default current scaling parameter 2016-04-02 21:40:34 +01:00
Andreas Antener ffb72d3fae added battery current sensor offset 2016-03-30 21:07:31 +02:00
Felix Hu bd580e09bf supports MindPXv2 borad which is a product from AirMind. 2016-03-30 19:45:39 +02:00
Daniel Agar 6888545037 remove @unit enum 2016-03-25 20:33:25 -04:00
Daniel Agar 70a68def83 params correct boolean tag 2016-03-25 20:25:17 -04:00
Julian Oes 1b5210ca13 sensors/calibration: use params in DF wrappers
Instead of using a uORB topic with the calibration values published in
sensors and consumed by the DriverFramework driver wrappers, let's just
use the the params directly. This is quite a rough change and needs
definitely some cleanup and refactoring.
2016-03-24 13:08:31 +01:00
Julian Oes b9cc0b74e2 drivers: re-use calibration topic
E.g. instead of defining a gyro_scale struct in drv_gyro.h, use the
gyro_calibration message.
2016-03-24 13:08:30 +01:00
Julian Oes f24b2a701f sensors: first part of a calibration refactor
This adds uORB messages to publish calibration data by sensors which is
then consumed by the sensors. Currently this is only used on Snapdragon
and guarded by QURT ifdefs.
2016-03-24 13:08:30 +01:00
Lorenz Meier 6708069a97 Sensors app: Remove flow rotation setup 2016-03-14 09:29:34 +01:00
Lorenz Meier 5c810eef11 Set reboot required param for flow sensor 2016-03-14 09:21:18 +01:00
Daniel Agar d840eac923 sensors param @unit 2016-03-14 09:12:34 +01:00
Lorenz Meier 6b10d2b8e1 Sensors: Remove debug output 2016-03-13 15:42:34 +01:00
Lorenz Meier 475bdb7212 Sensors: Fix white space 2016-03-13 15:41:02 +01:00
Lorenz Meier 8373f41d42 Clean up new mode switching 2016-03-13 15:38:56 +01:00
Lorenz Meier 99e686ea08 Sensors: Add integer rounding prottection, add comments so people less familiar with integer arithmetic can follow 2016-03-13 11:49:27 +01:00
Lorenz Meier 6bcf38c4bb Fix mode switching 2016-03-13 11:49:27 +01:00
Lorenz Meier 3f1ba686a7 Meta data update 2016-03-12 16:15:04 +01:00
Lorenz Meier 9e7837fc31 Update sensor meta data 2016-03-06 16:28:42 +01:00
Lorenz Meier b338ba439c Sensors: Update param meta data 2016-03-06 14:27:05 +01:00
Lorenz Meier b766213b20 Format fix for sensors 2016-03-06 12:57:39 +01:00
Lorenz Meier 351ab38179 Fix additional switch eval 2016-03-06 12:48:14 +01:00
Lorenz Meier 2e5a41e8c9 Sensors: Use correct ranges for mode slots 2016-03-06 12:34:07 +01:00
Lorenz Meier 1c21a63101 Sensors: Support single channel flight mode selection 2016-03-05 20:41:02 +01:00
Lorenz Meier 326389d04b Add sensor meta data for RC mapping 2016-02-27 00:42:46 +01:00
Julian Oes 0287ff9e13 sensors: astyle 2016-02-19 16:59:49 +01:00
Julian Oes c99402b04c sensors: get it to compile on NuttX and POSIX 2016-02-19 16:59:49 +01:00
jwilson ebfcf32323 Added build specific sensor initialization. 2016-02-19 16:59:49 +01:00
jwilson 4adfea7fa9 Resolved shared memory parameter problems and removed additional debug code. 2016-02-19 16:59:49 +01:00
jwilson d84639f8c4 This code is flyable, but a few problems exist which cause values in the .config files to be overwritten by the defaults in the .XML file. 2016-02-19 16:59:49 +01:00
jwilson 80a2eb9dff Adding additional warnings to indicate that the secondary and tertiary gyros are unavailable. 2016-02-19 16:59:49 +01:00
jwilson 9a97140ad8 Removing test code. 2016-02-19 16:59:49 +01:00
jwilson b31472af0c Cherry-picked i22438c8
Original description:
Modified the sensor module to prevent the selection of an invalid
secondary/tertiary gyro if the primary gyro times out
2016-02-19 16:59:49 +01:00
Julian Oes fcf98d07e0 sensors: astyle 2016-02-19 16:59:48 +01:00
Julian Oes 4e4f22428e sensors: use QURT ifdefs instead of commenting out 2016-02-19 16:59:48 +01:00
Julian Oes 0c37716c18 sensors: remove merge leftover 2016-02-19 16:59:47 +01:00
Julian Oes 8794aacf59 sensors: HACK to stop init calls for sensors 2016-02-19 16:59:47 +01:00
Julian Oes 160400c611 sensors: don't just blindly switch to another gyro
Failover is good but failover to garbage doesn't help.
2016-02-19 16:59:47 +01:00
Julian Oes 9c18c9aea4 sensors: header comment changes 2016-02-19 16:59:46 +01:00
Daniel Agar 7fbd4a0b5b sensors fix code style 2016-02-18 21:25:49 -05:00
Lorenz Meier eb11c91733 Fix airspeed check in simulation 2016-02-18 22:53:43 +01:00
Lorenz Meier 854660bd36 Sensors: Fix code style 2016-02-18 18:48:50 +01:00