Beat Küng
c3b47b71de
temperature_compensation: use correct type for params (int -> int32_t)
2017-10-27 10:43:15 +02:00
Sugnan Prabhu
81809be7cd
Add include guard in headers files ( #8108 )
...
Signed-off-by: Sugnan Prabhu S <sugnan.prabhu.s@intel.com >
2017-10-11 09:47:52 -04:00
Mohammed Kabir
57aa41df2c
sensors : decouple maximum sensor count and allow flexible maximums
2017-04-24 12:24:11 +02:00
Beat Küng
4f6e379e50
temperature_compensation: use const for reference
2017-02-01 08:40:23 +01:00
Beat Küng
75be1abc4c
temperature_compensation: make sure to reset temperature when params change
...
Makes sure that the offsets & scales are updated and published later on.
2017-02-01 08:40:23 +01:00
Paul Riseborough
8b1a5461c4
sensors: Update documentation
2017-02-01 08:40:23 +01:00
Paul Riseborough
f2f5034832
sensors: prevent high frequency updating of sensor corrections
...
The use of a float to integer cast was causing high frequency reporting when the float value was close to the rounding boundary.
2017-02-01 08:40:23 +01:00
Paul Riseborough
170bc91587
sensors: fix bug in thermal compensation temperature limit (+2 squashed commits)
...
Squashed commits:
[2df1d9e] sensors: change definition of sensor offset and scale factor to match legacy code
[089e103] sensors: publish thermal corrections for all sensors
2017-02-01 08:40:23 +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
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
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