Lorenz Meier
bf26bec46c
Fix gyro init
2017-02-04 10:38:11 +01:00
Lorenz Meier
72156fe9c1
Temp cal: Fix matrix initialization
2017-02-04 08:54:15 +01:00
Beat Küng
ea4d3d970b
temperature_calibration: make sure to save the params after the process
2017-02-03 13:57:48 +01:00
Beat Küng
6583f73cfa
temperature_calibration: reduce code duplication by adding a TemperatureCalibrationCommon class
2017-02-03 13:57:48 +01:00
Beat Küng
38b4984c36
temperature_calibration: make sure to call orb_unsubscribe() when objects are destroyed
2017-02-03 13:57:48 +01:00
Beat Küng
980c3bc6a7
temperature_calibration: notify system about param changes
2017-02-03 13:57:48 +01:00
Beat Küng
4b8e6cf9cd
temperature_calibration: make sure to always do an orb_copy() even when already finished
...
... since we do poll() on the gyro fd.
2017-02-03 13:57:48 +01:00
Beat Küng
d2dd61dfbd
temperature_calibration: make sure to report an error only once
2017-02-03 13:57:48 +01:00
Beat Küng
c4a8aa9c68
temperature_calibration: refactor to separate code & reduce code duplication
2017-02-02 23:54:06 +01:00
Beat Küng
b6f3cf9425
events: refactor temperature_calibration command to take options and use a single vehicle_command
...
This makes it easier to start calibration for all sensors at once.
2017-02-02 23:54:06 +01:00
Beat Küng
603cd1e6dc
refator events: move temperature calibration implementation into subdirectory
2017-02-02 23:54:06 +01:00
Paul Riseborough
b36e65fd6d
events: Improve consistency of console messages
2017-02-02 23:54:06 +01:00
Paul Riseborough
9e219fba0c
events: make required temp rise for calibration adjustable
2017-02-02 23:54:06 +01:00
Paul Riseborough
4d163eebb9
events: Add accelerometer and baro thermal calibration
2017-02-02 23:54:06 +01:00
Paul Riseborough
f0c456dd54
events: give gyro cal unique names in preparation for other sensor types
2017-02-02 23:54:06 +01:00
Beat Küng
0220875961
fix temperature_calibration: reverse order of polynom coefficients
2017-02-01 08:40:23 +01:00
Beat Küng
d84e55878a
temperature_calibration: remove unused include <vector>
2017-02-01 08:40:23 +01:00
Beat Küng
c829e27a02
temperature_calibration: refactor variable names: remove preceding _
2017-02-01 08:40:23 +01:00
Beat Küng
b5b6fb24e3
temperature_calibration: exit task when complete, set TC_G_ENABLE & use param_set_no_notification
2017-02-01 08:40:23 +01:00
Lorenz Meier
2cf8cdc63f
Event system: Initialize work item
2017-01-29 15:10:09 +01:00
Siddharth Bharat Purohit
975893a406
events: tempcal: get rid of commented code
2017-01-25 22:43:29 +01:00
Beat Küng
be512fdc4c
temperature_calibration: use device id from published topic
...
uorb topic instance does not necessarily match the gyro device path instance,
so we need to use the id from the topic.
2017-01-25 22:43:29 +01:00
Beat Küng
00d2fc936a
polyfit.hpp: fix code style (class member variables start with _)
2017-01-25 22:43:29 +01:00
Beat Küng
2fbb1aee84
temperature_calibration: fix poll (number of fds), remove usleep
...
useep() is not needed because we use the poll()
2017-01-25 22:43:29 +01:00
Beat Küng
54e9bda412
temperature_calibration: properly initialize gyro subscriptions & bounds checking
2017-01-25 22:43:29 +01:00
Beat Küng
e74e883c56
temperature_calibration: change some log levels to be more appropriate
2017-01-25 22:43:29 +01:00
Siddharth Bharat Purohit
5c7dbe0f24
events: tempcal: run cal for all available gyros
2017-01-25 22:43:29 +01:00
Siddharth Bharat Purohit
416a0aece2
events:polyfit: change to using int/unsigned instead of (u)intx_t types
2017-01-25 22:43:29 +01:00
Siddharth Bharat Purohit
e390f672c9
events: tempcal: save temperature calibration result
2017-01-25 22:43:29 +01:00
Siddharth Bharat Purohit
917a8f63f6
events: add temperature calibration scheme
2017-01-25 22:43:29 +01:00
Beat Küng
ab8ac8f63a
events: add new module events
...
It uses the LP worker queue to periodically check for vehicle commands (30hz),
useful for several housekeeping tasks.
Currently the only task is temperature calibration.
Commands can be started via command line or via vehicle_command (from
Mavlink)
TODO: need to spec & extend the mavlink command.
2017-01-25 22:43:29 +01:00