Lorenz Meier
8ecada3f81
Sensors: Allow more headroom for stack
2016-06-10 21:28:05 +02:00
Andreas Antener
98eeb25e45
produce 0 voltage/current if no suitable default could be set
2016-06-07 22:27:08 +02:00
Lorenz Meier
e1805dfe0c
Sensors app: Use two parameters to convert battery current and voltage to make configuring custom frames easier
2016-06-07 22:27:08 +02:00
jwilson
c6250657eb
Added mag support to the DriverFramework mpu9250 driver. Shortened parameter names for legacy drivers. Added temporary ifdef's in the calibration code for Snapdragon Flight builds.
...
Signed-off-by: jwilson <jwilson@qti.qualcomm.com >
2016-05-31 16:43:12 +02:00
Lorenz Meier
0dc36d149e
Sensors: Reinstate main stack
2016-05-27 23:12:07 +02:00
Daniel Agar
1ecdb0f6fb
adjust stack sizes
2016-05-19 21:49:34 +02:00
Daniel Agar
2487dbfc92
remove Wpacked and cleanup unused warning flags
2016-05-19 21:49:34 +02:00
Kabir Mohammed
1bd4dca266
Fix RPI2 defines
2016-05-19 15:41:50 +02:00
Lorenz Meier
0917a346e4
Mag cal: allow 6, 3 and 2 side calibrations (and anything in-between with bitfields)
2016-05-09 00:32:54 +02:00
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
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
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
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
f73af95b38
Added SYS_MC_EST_GROUP to allow fine grained algorithm selection.
2016-04-14 15:22:25 -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
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
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
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
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