Daniel Agar
019c6647f2
astyle src/modules/sensors
2017-01-29 01:18:32 +01:00
Lorenz Meier
63057d7b60
Ensure that manual control is only sent by sensors app if signal is valid and initialized
2017-01-25 07:43:45 +01:00
Lorenz Meier
42c5684a06
Fix temperature clipping for temperature calibration. Fixes #6412
2017-01-21 12:08:18 +01:00
David Sidrane
df6b46d0ba
FMUV1 Moved magic numbers for battery V div and A per V to board_config.h
2017-01-21 11:45:36 +01:00
David Sidrane
894b41e313
AEROCORE Moved magic numbers for battery V div and A per V to board_config.h
2017-01-21 11:45:36 +01:00
David Sidrane
f86a8c0e5e
MINDPX_V2 Moved magic numbers for battery V div and A per V to board_config.h
2017-01-21 11:45:36 +01:00
David Sidrane
e0fa53f444
FMUV2 Moved magic numbers for battery V div and A per V to board_config.h
2017-01-21 11:45:36 +01:00
David Sidrane
0baefec09f
FMUV4 Moved magic numbers for battery V div and A per V to board_config.h
2017-01-21 11:45:36 +01:00
David Sidrane
e9ca626e19
TAP_V1 Moved magic numbers for battery V div and A per V to board_config.h
2017-01-21 11:45:36 +01:00
David Sidrane
fd25f0a594
AEROFC_V1 Moved magic numbers for battery V div and A per V to board_config.h
2017-01-21 11:45:36 +01:00
David Sidrane
99902807c9
SITL Moved magic numbers for battery V div and A per V to px4_config.h
2017-01-21 11:45:36 +01:00
David Sidrane
a8b9c906f6
Board_config.h will provide the BOARD_BATTERYx_V_DIV
...
Prep to distrubte the magic numbers assgined in parameters.cpp
to the board_config.h
common/board_common.h will define:
1) BOARD_BATTERY[1|2]_V_DIV as 0.0f if not defined to ensure
the missing default trips a low voltage lockdown
2) BOARD_BATTERY[1|2]_A_PER_V as 0.0f if not defined to ensure
the default leads to an unrealistic current value.
2017-01-21 11:45:36 +01:00
Paul Riseborough
1d66d4b051
sensors: Allow for difference in temperature readings across sensors
...
We need to track the temperature change in each sensor instance individually when using it as basis for publication.
2017-01-21 08:31:56 +01:00
Beat Küng
ab9e0aa524
sensors temp compensation: do an orb_copy to get the driver ID
...
This removes the necessity, that the driver class ID matches the uorb topic
instance.
Also improve error handling & reporting
2017-01-19 19:24:52 +01:00
Beat Küng
41d220ac2d
sensors: reorder initialization calls
...
needed for the next commit
2017-01-19 19:24:52 +01:00
Beat Küng
f6f145cbe8
sensors & mc_att_control: increase stack sizes due to recent changes
2017-01-19 19:24:52 +01:00
Beat Küng
fd48d9c190
sensors: print status of temp compensation with 'sensors status'
2017-01-19 19:24:52 +01:00
Beat Küng
916a04bc56
sensors temp compensation: use SENSOR_COUNT_MAX instead of just 3
2017-01-19 19:24:52 +01:00
Beat Küng
117826a31f
sensors temp compensation: refactor into a separate class
...
- reduces some code duplication
- provides clear API & separation for temp compensation
additional changes:
- added timestamp to sensor_correction topic
- reduced its publication rate, to only when voting index or scales or
offsets change (if there is more than 1deg change in temperature)
2017-01-19 19:24:52 +01:00
Beat Küng
23d278cc43
sensors temp compensation: minor cleanup
2017-01-19 19:24:52 +01:00
Beat Küng
f38843278d
voted_sensors_update: make msl_pressure static const
2017-01-19 19:24:52 +01:00
Beat Küng
535b1ea0dd
voted_sensors_update: simplify accel & gyro poll methods
2017-01-19 19:24:52 +01:00
Beat Küng
bbd47389e0
voted_sensors_update: fix copy paste naming mistake
2017-01-19 19:24:52 +01:00
Beat Küng
0765ed552c
sensor_correction.msg rename {gyro,accel,baro}_select to match uORB convention
2017-01-19 19:24:52 +01:00
Paul Riseborough
0485c2b94a
sensors: add baro pressure temperature compensation and reporting
2017-01-19 19:24:52 +01:00
Paul Riseborough
c2fc283fdb
sensors: Update single axis temp comp method to 5th order
...
This allows future use with baro sensors that require a higher fit order
2017-01-19 19:24:52 +01:00
Paul Riseborough
63f032832f
Add prototype IMU temperature compensation
...
Enabled using TC_A_ENABLE and TC_G_ENABLE parameters
Disabled by default.
IMU offsets and scale factors for selected sensor published to sensor_correction topic
TODO Parameter storage method is cumbersome
2017-01-19 19:24:52 +01:00
Lorenz Meier
b8598c4407
Sensors: Adjust airspeed fail checks
2017-01-16 08:26:37 -08:00
Lorenz Meier
a8902472e4
Params: Fix the description text
...
The MAIN and AUX outputs had the same description which could confuse users.
2017-01-12 02:40:56 +01:00
Paul Riseborough
94ce6e12c1
sensor: update default flow sensor rotation
...
The SENS_FLOW_ROT parameter is used in the px4flow and mavlink receiver to perform the rotation from sensor frame to body frame.
2016-12-30 10:39:10 +01:00
Lorenz Meier
a6696d339d
Sensors app: Fix consistency checks.
...
The sensors app assumed that all topics are published on boot which is not necessarily true and it assumed that all publications had valid data. This change ensures that topics are initialized as they update the first time and that the consistency check only runs on topics which carry valid data.
2016-12-30 00:06:04 +01:00
Lorenz Meier
c2af93d1a5
sensors: Add missing headers
2016-12-27 21:00:51 +01:00
Lucas De Marchi
1fafa2069c
sensors: aerofc: set default voltage divider
2016-12-26 16:11:33 +01:00
Matthias Grob
f9da41fcf2
fixed rebase errors in arm switch implementation
2016-12-20 09:46:36 +01:00
Matthias Grob
aa984edd90
added an rc switch for arming and disarming with the option to use it as a button
2016-12-20 09:46:36 +01:00
Lorenz Meier
c91f827072
sensors app: Always run validator so it gets updated and can detect timeouts
2016-12-19 20:34:52 +01:00
Lorenz Meier
fe5cc5622b
Failover logging in sensors app: Trim down strings
2016-12-19 20:34:52 +01:00
Lorenz Meier
cc7db94edc
Sensors app mag voter: Increase stale value detection threshold to accomodate low-noise mag setups
2016-12-19 20:34:52 +01:00
Mark Whitehorn
bad2dc80a4
change default THR_MDL_FAC to zero (disabled)
2016-12-16 18:12:17 +01:00
Roman
d221313dfb
implemented mapping between desired thrust and applied pwm in
...
multirotor mixer.
Signed-off-by: Roman <bapstroman@gmail.com >
2016-12-15 23:39:53 +01:00
Beat Küng
66925bc065
voted_senors_update: fix style after rebase
2016-12-14 19:57:54 +01:00
Beat Küng
d4da626e78
sensors: move sensors with voting into a separate class
2016-12-14 19:57:54 +01:00
Beat Küng
f9b3b5a799
sensors: break off parameters initialization into separate source file
2016-12-14 19:57:54 +01:00
Beat Küng
c5e485bdd7
sensors: break off RC handling into its own class
2016-12-14 19:57:54 +01:00
Beat Küng
4e2d0500a1
sensors: use orb_publish_auto where possible
2016-12-14 19:57:54 +01:00
Lorenz Meier
7d0db35e90
Update PWM params to match standard usage in system
2016-12-13 09:18:59 +01:00
James Goppert
fa834497bf
Setup sf0x driver to handle all lightware lidars. ( #5957 )
2016-12-06 12:19:13 -05:00
Daniel Agar
a8747a01fe
pixhawk 2.1 add 2nd ms5611
2016-12-05 15:27:11 +01:00
Lorenz Meier
b229dd891f
Senssors app: Introduce thermal setting
2016-12-05 10:23:46 +01:00
Andreas Antener
f772fc2d02
Airspeed: preflight check for bad offset, fixed calls to preflight checks (vtol & airspeed)
2016-12-02 22:56:48 +01:00