Beat Küng
e31958cad1
voted_sensors_update: don't report failover if previous index is invalid
8 years ago
Paul Riseborough
f9b75e68c9
Tools: Change sign convention used by thermal calibrator
...
The flight code assumes corrections have the same sign as the sensor bias error and are subtracted from the raw reading
8 years ago
Beat Küng
c829e27a02
temperature_calibration: refactor variable names: remove preceding _
8 years ago
Beat Küng
b5b6fb24e3
temperature_calibration: exit task when complete, set TC_G_ENABLE & use param_set_no_notification
8 years ago
Beat Küng
4a8d29800c
voted_sensors_update: cleanup & remove some attributes
...
since the correction topic now contains data from all sensors, we don't
need additional fields in voted_sensors_update
8 years ago
Beat Küng
4763a119bc
calibration: make sure to notify the system when temp calibration changes
...
This is needed so that temperature compensation reads in the updated values
and publishes the updated sensor_correction topic.
8 years ago
Beat Küng
7ebe2ac017
gyro_calibration: take into account temperature compensation when storing the scale
8 years ago
Beat Küng
fbef2b7a6a
accelerometer_calibration: avoid using accel_mapping
...
This is not needed, as s is an uORB instance and accel_offset_0
contains data from uORB instance 0.
8 years ago
Beat Küng
97d7164b64
logger: remove actuator_controls from list of default topics
...
this was actually never published, only _0, _1, ... get published
8 years ago
Beat Küng
6ee3c1a117
temperature_compensation: fix copy-paste error (max_temp was not initialized)
8 years ago
Beat Küng
21070b069b
mc_att_control_main: fix {x,y,z} variables (copy-paste mistake)
8 years ago
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.
8 years ago
Beat Küng
fdb75dbba2
accelerometer_calibration: simplify & fix if temp compensation is enabled
...
if compensation enabled, scale & offsets for the drivers should be reset,
but actually only the params were reset and accel_scale was still applied
to the driver via ioctl.
8 years ago
Beat Küng
d0ea4e8876
accelerometer_calibration: cleanup
8 years ago
Beat Küng
69fd8447ae
accelerometer_calibration: make sure to initialize sensor_correction properly
8 years ago
Beat Küng
51def4fc60
gyro_calibration: make sure to initialize sensor_correction properly
...
if it's not published yet or published with low frequency, this makes sure
we have valid data.
also:
- _sensor_correction -> sensor_correction
- remove unnecessary init of sensor_correction_sub
8 years ago
Beat Küng
f890c82c97
mc_att_control_main: remove unnecessary memset for _sensor_correction
8 years ago
Paul Riseborough
c00c638b77
Remove IMU calibration parameter checks
8 years ago
Paul Riseborough
fb774bef67
commander: enable accel cal to adjust thermal compensation parameters
8 years ago
Paul Riseborough
bdd3b094a7
sensors: report mapping from uORB to compensation parameter index
8 years ago
Paul Riseborough
8b1a5461c4
sensors: Update documentation
8 years ago
Paul Riseborough
ba9e8741c0
msg: Add mapping from uORB index to compensation parameter index
...
This mapping is required so other applications can use the correct compensation data, even if the uORB ordering changes.
8 years ago
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.
8 years ago
Paul Riseborough
62694d92d2
commander: rework IMU cal for compatibility with temperature compensation
8 years ago
Paul Riseborough
add298c0b5
mc_att_control: use legacy offset and scale definition (+2 squashed commits)
...
Squashed commits:
[f81a8b0] mc_att_control: remove unnecessary initialisers
[f3d3f48] mc_att_control: accommodate changes to sensor_correction topic
8 years ago
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
8 years ago
Paul Riseborough
1dd9a10260
msg: publish thermal corrections for all sensors
8 years ago
pixhawk
ef2a5599a1
mag_calibration: Make sure calibration fails if any mag fails; More checks on calibration results
8 years ago
pixhawk
fded02220b
calibration_routines: use PX4_ISFINITE() instead of isnan()
8 years ago
Beat Küng
1da934049c
matrix_alg: use PX4_ISFINITE() instead if isnan() & isinf()
8 years ago
pixhawk
5c96c8c1b3
Removed std::fill_n since it is not supported
8 years ago
pixhawk
9fe65d0957
Fix array initialization bug
8 years ago
Siddharth Bharat Purohit
2c831c314e
commander: correct mag cal offset direction
8 years ago
Siddharth Bharat Purohit
c6f8bcf8b3
commander: use mathlib matrix_alg functions
8 years ago
Siddharth Bharat Purohit
b46b7a3ca3
mathlib: add matrix eval funcs for raw arrays
8 years ago
Siddharth Bharat Purohit
78b8deda15
commander: add ellipsoid 9 param fit for magnetometer corrections
8 years ago
Siddharth Bharat Purohit
c9ac15f0dd
commander: fix code style
8 years ago
Siddharth Bharat Purohit
f811777789
commander: add new math for sphere fit for compass calibration
8 years ago
Beat Küng
f746141afe
mpu6000: add & check for the device_type on driver startup
...
Fixes the following case: a board that has several bus_options enabled,
and wants to start a specific device (eg mpu6000 -T 20608 start). In that
case the given device_type is never actually checked, and since the start
routine iterates over all bus_options, several can match, and thus start
multiple instances of the driver (note that the whoami check is performed
against the value provided with -T and thus the check will pass).
This happens on Pixracer (PX4_SPIDEV_MPU and PX4_SPIDEV_ICM_20608 are both
set).
8 years ago
Beat Küng
7c47991504
px4fmu-v4 board config: use PX4_SPIDEV_ICM_20608 instead of PX4_SPIDEV_ICM_20602
...
This is what's used according to https://pixhawk.org/modules/pixracer .
8 years ago
Lucas De Marchi
d6ef703fa4
aerofc: disable internal compass ( #6485 )
...
It uses a shared I2C bus with MS65611 which causes noise on the baro
reads. This will rely on the external compass instead of the internal
one.
8 years ago
Daniel Agar
899e406005
cmake optionally find and use ccache
8 years ago
Daniel Agar
dcddcdd28e
cmake git ver depend on index and HEAD
8 years ago
Daniel Agar
159b35919a
cmake nuttx build use full path to copy stamp
...
- fixes #6469
8 years ago
Lorenz Meier
40aa785720
DSM: Report zero channel count / decode fail through correct data path
8 years ago
Daniel Agar
de128aaa6e
dsm rctest fix num_values return
8 years ago
Daniel Agar
93b0f07b43
travis-ci run tests
8 years ago
Lorenz Meier
d1372ddb67
Snapdragon RC driver: Move RC struct out of main loop to preserve channel values. Initialize raw rc count.
8 years ago
Lorenz Meier
2c24900b9d
FMU: Initialize raw RC count
8 years ago
Lorenz Meier
e7a0089340
9250: Fill device ID for mag correctly
8 years ago