Andrew Tridgell
a1fb0592a9
AP_Math: specialise polyfit for vectors
...
this is needed to get the precision good enough for wide temperature
ranges when summing the resulting polygon coefficients
4 years ago
Andrew Tridgell
c8aaceb6ac
AP_LeakDetector: remove warning message on all non-sub builds
...
pointless pragma
4 years ago
Andrew Tridgell
d0d480e858
AP_Compass: fixed matrix inverse for new name
4 years ago
Andrew Tridgell
8278a8a00b
AP_AccelCal: rename from review feedback
4 years ago
Andrew Tridgell
2e2ccb40b2
AP_AccelCal: fixed inverse matrix call for new name
4 years ago
Andrew Tridgell
999268cbba
AP_Math: fixup matrix algorithms to be in cpp file
...
this fixes an issue where optimize O2 was forced on any file that
included AP_Math.h. It also fixes the test suite for matrix_alg, and
fixes the type handling to be consistent
4 years ago
bugobliterator
3b3e2c01f8
AP_Math: templatize matrix_alg methods
4 years ago
Andrew Tridgell
ffe20f7958
AP_InertialSensor: use a fixed reference temperature of 35C
...
this allows us to timeout the calibration when the temperature stops
rising as the polynomial no longer depends on the maximum temperature
4 years ago
Andrew Tridgell
dc58b0b950
AP_InertialSensor: changes from review feedback
...
thanks Sid!
4 years ago
Andrew Tridgell
9561f24c0e
AP_Filesystem: added @SYS/persistent.parm
4 years ago
Andrew Tridgell
5ed19c764e
HAL_ChibiOS: expose load_persistent_params for @SYS
4 years ago
Andrew Tridgell
1680e6e7d6
AP_HAL: expose load_persistent_params() in hal.util
4 years ago
Andrew Tridgell
c9a83c8127
AP_InertialSensor: added INS_TCAL_OPTIONS
...
make persistent params optional, and allow save of accelcal
4 years ago
Andrew Tridgell
5c823debc0
HAL_ChibiOS: support saving persistent parameters to bootloader sector
...
when we flash the bootloader we can save key peristent parameters to
the end of the bootloader sector, allowing them to persistent across
changes of firmware type
This allows for factory temperature calibration
4 years ago
Andrew Tridgell
504f500fae
AP_Common: added get_writeable_string to ExpandingString
4 years ago
Andrew Tridgell
1ddc21c9bb
AP_InertialSensor: support saving tempcal params persistently
4 years ago
Andrew Tridgell
8caea96ab1
AP_InertialSensor: start auto-learning at boot
...
This makes it easier to setup the params. The ENABLE=2 value only
takes effect at boot
4 years ago
Andrew Tridgell
7cb7ad3636
AP_InertialSensor: fixed build error
4 years ago
Andrew Tridgell
2e9f61fe49
AP_InertialSensor: fixed IMU index display in msgs
...
start at 1 for users
4 years ago
Andrew Tridgell
d5b511f4a0
AP_InertialSensor: fixed start timer for temperature in SITL
...
when we are doing an autotest we want the temperature to start
climbing when we first set SIM_IMUT_FIXED=0
4 years ago
Andrew Tridgell
30e55d8dfc
AP_InertialSensor: cope with user changing TMAX while calibrating
4 years ago
Andrew Tridgell
68526262b7
AP_Arming: don't allow arming during IMU temp cal
4 years ago
Andrew Tridgell
e2e97c67ce
AP_InertialSensor: catch user attempt to change TMAX during cal
4 years ago
Andrew Tridgell
73e53369e8
AP_Notify: added notify events for temperature calibration
4 years ago
Andrew Tridgell
3fb720354d
AP_InertialSensor: added notify events for temperature calibration
4 years ago
Andrew Tridgell
cc3579ea5d
AP_InertialSensor: change TCAL sampling to be even in temperature
4 years ago
Andrew Tridgell
cf47c19c0d
Filter: fixed low pass 2p filter to auto-init
...
this prevents the init to zero for temperature filters
4 years ago
Andrew Tridgell
4495414d05
Filter: added reset with value to LowPassFilter2p
4 years ago
Andrew Tridgell
fc0f8b990a
AP_InertialSensor: added online learning of temp cal
...
use INS_TCAL1_ENABLE=2 to start learning
4 years ago
Andrew Tridgell
64d9f43d94
AP_Math: added polygon fitting code
4 years ago
Andrew Tridgell
720f9a1de0
AP_Math: cleanup maths functions
...
use class template instantiation, and cleanup const in matrix code
4 years ago
Andrew Tridgell
6f6f89e5aa
AP_InertialSensor: enable temperature sensor on LSM9DS0
...
this allows for temperature calibration of the LSM303D in CubeBlack
and Pixhawk1
4 years ago
Andrew Tridgell
0c156e324b
AP_Compass: enable temperature on lsm303d
4 years ago
Andrew Tridgell
c0ba7c29ca
SITL: use TCal class for temp adjustment in SITL
4 years ago
Andrew Tridgell
4bdf506d10
AP_InertialSensor: apply 1e-5 scale factor
...
this keeps the params in a reasonable range for parameter editors
4 years ago
Andrew Tridgell
0f6f6bac6b
AP_InertialSensor: expose TCal class for use in SITL
4 years ago
Andrew Tridgell
7921e042f1
AP_InertialSensor: added IMU temperature calibration support
...
this adds parameters that can be setup by an external script for
compensating for temperature variation in gyros and accels using a 3rd
order polynomial
4 years ago
Andrew Tridgell
580cd143b8
AP_AccelCal: added active() method
4 years ago
Siddharth Purohit
f53d80374b
SITL: fix build for macos systems
4 years ago
Peter Barker
e58d2ecf2f
GCS_MAVLink: add mavlink command option to create a 250ms long loop
4 years ago
Andrew Tridgell
d81c2ee407
HAL_ChibiOS: allow for some embedded parameters on AP_Periph builds
4 years ago
murata
fd91cb03b4
SITL: Change the Kelvin value to a defined name
4 years ago
bugobliterator
8b90eb23e0
AP_HAL_ChibiOS: distcc doesn't like lst generation commands
4 years ago
Randy Mackay
031be010ac
AC_AttitudeControl: tailsitter sets target rates more efficiently
4 years ago
Leonard Hall
4e2c7880c5
AC_Avoidance: use AP_Math control functions
4 years ago
Leonard Hall
e2308e9414
AC_Loiter: use AP_Math control tools common functions
4 years ago
Randy Mackay
6320338771
AC_PosControl: use AP_Math control functions
4 years ago
Leonard Hall
1129a3fd59
AC_AttitudeControl: use AP_Math control functions
4 years ago
Leonard Hall
1e38440c83
AP_Math: add control common functions
4 years ago
Andy Piper
2fadcf6ba0
AP_HAL_ChibiOS: handle UP/CH channel sharing on H7 correctly
4 years ago