Commit Graph

441 Commits

Author SHA1 Message Date
Lorenz Meier ebaca071f6 Battery charge estimation: Factor in voltage drop for idle props 2016-05-06 18:14:34 +02:00
Lorenz Meier 5e099d8d16 sensors: Reduce perf counters 2016-05-05 20:09:09 +02:00
Lorenz Meier be467f606b Sensors: Use C++ init style 2016-05-01 16:25:25 +02:00
Lorenz Meier 088ee74591 Sensor params: Add two param handles that should have been there for a long time 2016-05-01 16:25:14 +02:00
Lorenz Meier bdd2070dd7 FMU driver: Report RSSI for RC
Move RSSI sampling into FMU driver from sensors
2016-05-01 15:48:50 +02:00
Lorenz Meier b5b4769d1f Enable RSSI sampling on Pixracer 2016-05-01 14:23:25 +02:00
Lorenz Meier d0dd52c0d6 Better param meta 2016-05-01 11:40:11 +02:00
Julian Oes eb1ab4011a sensors: the ifdef logic was inverted (#4401) 2016-04-29 16:21:52 +02:00
Julian Oes 234068989b sensors: treat RPi like QURT 2016-04-29 13:50:18 +02:00
Lorenz Meier 4a94835880 Fix formatting in sensors 2016-04-29 11:16:27 +02:00
Lorenz Meier 343b8fb50f Sensors app: Send proper throttle setting to battery charge level estimator 2016-04-29 11:02:51 +02:00
Julian Oes 08f88d006f sensors: use the empty sensor init for RPi as well
The RPi build is based on the same DriverFramework base like the QURT
build, therefore it should use the same empty sensor init function.
2016-04-29 10:02:53 +02:00
Lorenz Meier 4441b74020 sensors: Default battery to a 50% setting 2016-04-28 13:06:02 +02:00
Daniel Agar 41c1e56075 FW stabalized mode properly initialize att_sp 2016-04-23 15:50:43 +02:00
Lorenz Meier a49ba1a383 Sensors: Code style 2016-04-23 14:45:12 +02:00
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