Roman Bapst
571798c318
Pr external battery monitoring ( #4881 )
...
* mavlink receiver: added handling of battery status
handle incoming battery status messages in order to support external
battery monitoring
Signed-off-by: Roman <bapstr@ethz.ch >
* sensor params: added parameter for battery monitoring source
Signed-off-by: Roman <bapstr@ethz.ch >
* sensors: only publish battery status if we don't have external battery
monitoring activated
Signed-off-by: Roman <bapstr@ethz.ch >
2016-06-23 18:41:38 +02:00
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
0354ada5d3
Sensors: be more efficient
2016-05-29 16:27:39 +02:00
Lorenz Meier
0dc36d149e
Sensors: Reinstate main stack
2016-05-27 23:12:07 +02:00
Lorenz Meier
24622131c9
Sensors: Reinstate boot stack
2016-05-27 23:11:51 +02:00
Lorenz Meier
761d02d433
Sensors: return stack handler to default stack size
2016-05-19 22:01:12 +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
Daniel Agar
119fa8ed1b
sensor_params.c param metadata
2016-05-13 21:15:34 -04: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
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