Commit Graph

55 Commits

Author SHA1 Message Date
Lorenz Meier f4eaea99c5 Temp cal: Use correct constants 2017-08-01 12:46:59 +02:00
Beat Küng 8d7481f9ac load_mon: use ModuleBase & add documentation 2017-07-14 11:57:11 +02:00
Beat Küng 3b64be44f4 ModuleBase: add wait_until_running() method 2017-07-14 11:57:11 +02:00
Beat Küng 053eb12329 Module documentation: switch to Markdown 2017-07-14 11:57:11 +02:00
Beat Küng 5bdbfa9b5c send_event: convert to use ModuleBase 2017-07-14 11:57:11 +02:00
Beat Küng 1be639ec46 temperature_calibration: turn off param autosave 2017-04-06 11:49:03 +02:00
Beat Küng 30841ee6bf send_event: separate initialization and wait until started for 'send_event start_listening' 2017-03-12 00:08:35 +01:00
Beat Küng 1177ec91e5 temperatoru_calibration: reformat comments to use doxygen style 2017-03-12 00:08:35 +01:00
Beat Küng 7cb291aa62 temperature_calibration: use a define for error code -110 2017-03-12 00:08:35 +01:00
Beat Küng 38156d862f temperature_calibration: add led indication
- starts with yellow blinking
- turns led to solid according to progress
- blink red on error, green on success
2017-03-12 00:08:35 +01:00
Paul Riseborough ed5c8913ad events: update documentation for polyfit algorithm 2017-02-20 07:53:07 +01:00
Beat Küng 1a81b64d49 VEHICLE_CMD_PREFLIGHT_CALIBRATION: update temperature_calibration param definition 2017-02-17 23:01:25 +01:00
Paul Riseborough 72633ad4c8 events: update documentation for polyfit algorithm 2017-02-16 22:17:47 +01:00
Siddharth Bharat Purohit ab465744f1 temp_cal: add math explanation for polynomil fit algo 2017-02-16 09:34:19 +01:00
yaoling 0e34de08fb Update send_event.cpp
do same as command module
2017-02-16 09:33:16 +01:00
Paul Riseborough 1f4155c208 events: fix code style issues 2017-02-12 09:21:37 +01:00
Paul Riseborough 36f83e46ee events: abort calibration if starting temperature is too high 2017-02-12 09:21:37 +01:00
Paul Riseborough 22c8c59829 Thermal Calibration - add parameter required to control max starting temperature 2017-02-12 09:21:37 +01:00
Paul Riseborough f3d30564ed events: don't start baro calibration until specified temperature achieved 2017-02-12 09:21:37 +01:00
Paul Riseborough e75f2b9cf7 events: don't start accel calibration until specified temperature achieved 2017-02-12 09:21:37 +01:00
Paul Riseborough cdf80a868a events: don't start gyro calibration until minimum temperature achieved 2017-02-12 09:21:37 +01:00
Paul Riseborough c901c4b39e Thermal Calibration - add parameter required to control minimum starting temperature 2017-02-12 09:21:37 +01:00
Paul Riseborough 693cc4a533 Update SYS_CAL_TEMP parameter name and description
We will be adding another parameter to set min starting temp, so this name needs to be made less generic.
Fixes typographical errors in the description
2017-02-12 09:21:37 +01:00
Lorenz Meier 7fbc71f054 send event: Do use nullptr, not NULL 2017-02-04 14:46:51 +01:00
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