1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00
Commit Graph

254 Commits

Author SHA1 Message Date
Corvus Corax
50561bfb5f made arming/disarming sequence time configurable - useful for heli pilots that like almost-instant disarm 2013-07-18 13:13:23 +02:00
Corvus Corax
114e25ff5d cleaned up code for armin/disarming and got rid of a bunch of assumptions 2013-07-18 13:05:37 +02:00
Corvus Corax
658b2fc804 cherry-pick of Sambas Arm-On-A-Switch capability implementation 2013-07-18 10:45:36 +02:00
Corvus Corax
6c88184b32 Merge branch 'corvuscorax/OP-1036_fixed-wing-improvements' into next 2013-07-18 09:46:23 +02:00
Corvus Corax
bffe119214 made safety checks in fixed wing path follower configurable 2013-07-17 14:50:23 +02:00
Alessio Morale
11bc7804d0 Merge branch 'amorale/OP-994_adc_cleanup' into next 2013-07-16 12:23:25 +00:00
Corvus Corax
81e691f2d6 fixed stack size for manualcontrol, fixed acking behaviour for waypoints 2013-07-16 10:12:16 +02:00
Alessio Morale
104bae01e8 OP-994 Exclude alarm for estimated flight time if Capacity setting is 0
+review OPReview-506
2013-07-15 20:35:26 +00:00
Corvus Corax
8b6510da4f Made AltitudeOffset for ReturnToHome configurable, Made Failsafe-FlightMode configurable. 2013-07-15 09:14:09 +02:00
Alessio Morale
402c84c003 OP-994 Added zero calibration settings
+review OPReview-506
2013-07-14 20:26:07 +00:00
Corvus Corax
4d28052dd8 update configuration check prior to arming control, just in case. Allthough the configuration didn't change, other parameters like the list of running tasks can, which alters the alarms. 2013-07-14 06:20:22 +02:00
Corvus Corax
f3a96e5620 Bugfixed in fixed wing path follower, high wind situation now succesfully detected 2013-07-11 16:22:24 +02:00
Corvus Corax
0ffb2dee02 bugfix in pathplanner - 3d distance not calculated correctly 2013-07-11 14:35:37 +02:00
Corvus Corax
c1f32e9beb OP-1036: rename some settings and move them in the right place
tags: de-kenzification
2013-07-10 15:55:12 +02:00
Corvus Corax
27eadc200b Merge branch 'corvuscorax/lla2nedfilter' into next
Conflicts:
	flight/modules/StateEstimation/stateestimation.c
2013-07-10 14:38:12 +02:00
Corvus Corax
551780c74b Merge branch 'corvuscorax/complementary_altitude_filter' into next
Conflicts:
	flight/targets/boards/revolution/firmware/UAVObjects.inc
2013-07-10 14:27:25 +02:00
Brian Webb
c2df59498b Merge remote-tracking branch 'origin/master' into next 2013-07-06 07:08:30 -07:00
Brian Webb
6dbecca7a5 OP-932 Fixes erasing settings on OPLink and blocks OPLinkSettings objects from being transmitted over the radio. 2013-07-05 18:25:52 -07:00
Corvus Corax
0107432e45 Added a low pass filter for accels to the altitude filter 2013-07-02 23:17:08 +02:00
Corvus Corax
ba87f32812 typo fix 2013-06-30 19:46:28 +02:00
Corvus Corax
51a4b16af5 New Filter to calculate NED from LLA as part of StateEstimation 2013-06-30 18:49:29 +02:00
Corvus Corax
2a16c0dbd7 removed GPS module ability to calculate NED coordinate (not its job) 2013-06-30 16:31:19 +02:00
Corvus Corax
7745f93935 changed default coefficients and exposed them to a settings uavobject as they should be 2013-06-29 01:16:02 +02:00
Corvus Corax
2621b087a2 fixed filter in first bench test tries, works surprisingly well... 2013-06-28 21:27:05 +02:00
Corvus Corax
2fb0c0a3ce some uncrustification 2013-06-28 19:52:09 +02:00
Corvus Corax
b9038e5ed6 new simple complementary filter to calculate current altitude and vertical speed 2013-06-28 17:22:16 +02:00
Brian Webb
6386b12026 OP-932 Fixes raw serial on UART and USB VCP. 2013-06-27 19:16:01 -07:00
Brian Webb
2aea2342ab OP-932 Adds a direct PPM channel on each Tx packet when in PPM mode, and adds a PPM only mode that uses a 9600 bps air datarate. Also updates the OPLink configuration tab and moves all OPLink configuration to the OPLink configuration tab on the Revo, and customizes the OPLink configuration tab for the Revo. 2013-06-26 18:01:54 -07:00
Brian Webb
f8d60e6dee OP-932 Adds additional thread and UAVTalk connection to the telemetry module that reads from the uart/radio link on the Revo. This allows the Revo to read OAVObjects over both the uart/radio link and the USB link at the same time. Unfortunately, there's no way to know which link to send UAVObjects out on, so all UAVObjects go to the USB port if USB is connected. This allows UAVObjects to be received from the OPLink radio, even when USB is connected. 2013-06-26 17:58:02 -07:00
Brian Webb
774a74884a OP-932 Replaces the RFM22B PPM/receiver code with an OPLinkReceiver UAVObject. This object is generated on a coordinator OPLink, and is used by both the OPLink to generate PPM output, and the OPLinkReceiver on the Revo. 2013-06-26 17:57:11 -07:00
Brian Webb
8c370df319 OP-932 A significant re-work of the OPLink and configuration of the OPLink. Auto-configuration is removed, and remote modems are bound the coordinator, rather than the other way around. Timing of the radio link is also significantly changed. The rfm22b code is also simplified so that it only sends packet, and has no notion about what those packets are, so the rfm22b is converteded to simply a com type device. 2013-06-26 17:56:56 -07:00
Corvus Corax
f2abe1f5c7 StateEstimation: removed (not yet implemented) 16 state EKF support for now 2013-06-25 19:30:21 +02:00
Alessio Morale
0b8d18ae49 OP-994 Move common defines to architecture specific header
+review OPReview-506
2013-06-24 18:50:44 +02:00
Corvus Corax
5bdfad4bdb removed redundant check as suggested in review 2013-06-23 19:39:00 +02:00
Corvus Corax
e916902c9e changed alarm return states, so cf initialisation will cause visible LED blinks... 2013-06-23 19:26:17 +02:00
Corvus Corax
407817f959 backport of complementary filter bugfix 2013-06-23 18:37:43 +02:00
Corvus Corax
4bf934ae69 prevent positionSensor updates if GPS lock is low quality. Sometimes bad updates are worse than no updates. 2013-06-22 23:15:10 +02:00
Corvus Corax
3392622d2b backporting change on next to modified Attitude module 2013-06-22 23:07:53 +02:00
Corvus Corax
6163c5f53a Merge branch 'next' into corvuscorax/OP-947_stateestimator-module
Conflicts:
	flight/modules/AltitudeHold/altitudehold.c
	ground/openpilotgcs/share/openpilotgcs/pfd/default/AltitudeScale.qml
	ground/openpilotgcs/share/openpilotgcs/pfd/default/PfdIndicators.qml
	ground/openpilotgcs/share/openpilotgcs/pfd/default/SpeedScale.qml
	ground/openpilotgcs/src/plugins/pfd/pfdgadgetwidget.cpp
2013-06-22 18:44:03 +02:00
Corvus Corax
ee1465fd9a OP-1018: Fix ETASv3 Airspeed sensor autocalibration 2013-06-22 12:53:23 +02:00
Alessio Morale
57c8cd7872 Merge branch 'amorale/OP-1019_simple_altitudehold' into next 2013-06-21 17:16:24 +02:00
Alessio Morale
d2893fd32b OP-1019 fix sanitychecks and other uavo definition sanity checks for the newly defined altitudevario mode 2013-06-20 19:39:19 +02:00
Werner Backes
e5b68382e0 Keep TODO comment. 2013-06-20 14:35:40 +02:00
Werner Backes
0f5e354f99 Removed first occurance of accel_err scaling. We don't want to do this
twice.
2013-06-20 12:42:22 +02:00
Alessio Morale
5318c20de6 OP-1019 add a simple altitude hold 2013-06-20 11:27:45 +02:00
Alessio Morale
54af41765e OP-1009 missing initialization on a previously static variable.
+review OPReview-516
2013-06-17 21:42:30 +02:00
Alessio Morale
b012d55f26 OP-1009 fix comments and fixes review
+review OPReview-516
2013-06-17 21:01:24 +02:00
Alessio Morale
840e6aa4f7 OP-994 Move temp calculation to a macro defined in pios_board.h as it is achitecture dependant
+review OPReview-506
2013-06-15 18:47:33 +02:00
Alessio Morale
d5a77fb525 OP-1009 prevent gyro zeroing from raise an alarm when arming 2013-06-15 17:28:30 +02:00
Alessio Morale
517c331dd4 OP-1012 fixed speeds to make easy to distinguish flash rates 2013-06-15 17:27:48 +02:00
Alessio Morale
f2431b2868 GPS module is builtin so there is no way to shut the gps alarm when gps is not used.
This change does remove any alarm when no port is configured for gps.
Things depending on GPS will continue to raise their own alarm when no gps data are feed.
2013-06-15 16:39:29 +02:00
Alessio Morale
354fdf4bdf OP-1012 implement several messages for alarm led 2013-06-15 16:38:53 +02:00
Alessio Morale
49da1aca86 OP-1009 Redo gyro zero in Complementary after calibration parameters changes 2013-06-15 16:22:24 +02:00
Corvus Corax
1d17d08cca Merge branch 'next' into corvuscorax/OP-947_stateestimator-module 2013-06-12 18:32:01 +02:00
Alessio Morale
3c39b049d6 Fixed wrong deadband range for AH 2013-06-11 21:17:17 +02:00
Alessio Morale
04326e2386 Merge remote-tracking branch 'origin/amorale/OP-999_ah_failsafe' into next 2013-06-11 15:39:43 +02:00
Alessio Morale
c1a1c04ad8 OP-999 trigger a failsafe condition in AH module when throttle is below 0 for more than 200ms
+review OPReview
2013-06-10 23:48:08 +02:00
Corvus Corax
47523bfe15 update PositionSensor whenever there is a 3d fix position update, even if its not good quality... 2013-06-09 22:42:14 +02:00
Corvus Corax
d8f9f839f2 startup grace time for filter initialisation 2013-06-09 21:49:04 +02:00
Alessio Morale
e9b3ee52f3 OP-997: add fields to SystemStatsUavo to monitor storage status 2013-06-09 19:20:00 +02:00
Corvus Corax
a99255a36a allow smaller nonzero variances during runtime 2013-06-09 13:57:36 +02:00
Corvus Corax
022f1a1ac0 Merge branch 'next' into corvuscorax/OP-947_stateestimator-module
Conflicts:
	flight/modules/Attitude/revolution/attitude.c
2013-06-09 13:49:52 +02:00
Alessio Morale
6d71d92860 Merge remote-tracking branch 'origin/amorale/OP-990_revo_bias_with_shaken_startup' into next 2013-06-09 09:10:33 +02:00
Alessio Morale
0f28920e5f Merge remote-tracking branch 'origin/amorale/OP-988_gps_not_configured_alarm' into next 2013-06-09 09:09:44 +02:00
Alessio Morale
59eaf01089 OP-990 Change initial delay before calibration to 4 seconds to allow to put the craft on the ground after battery connection
+review OPReview-505
2013-06-09 08:59:35 +02:00
Alessio Morale
cea6496866 OP-995: Cleanup of Battery Module 2013-06-08 13:53:19 +02:00
Alessio Morale
51a7f27b99 OP-994 Add an API to PIOS_ADC to get directly the Voltage value 2013-06-08 13:36:54 +02:00
Alessio Morale
6671a404ca OP-994 Refactor/Cleanup of cpu temp measurement 2013-06-08 13:36:18 +02:00
Alessio Morale
7a6b5c5681 OP-990 Fixed the main cause of wrong bias calculation:
The initial bias calculation done between 1 and 7 seconds
since power on was completely skipped due to a wrong condition.
2013-06-08 13:10:23 +02:00
Alessio Morale
3ad123718e Revert "OP-990 zeroed the rollpitch bias rate at startup and incremented at arming."
This reverts commit c0b926a2d5.
2013-06-08 13:10:23 +02:00
Corvus Corax
6fdf554d4a Merge branch 'next' into corvuscorax/OP-947_stateestimator-module
Conflicts:
	flight/modules/Attitude/revolution/attitude.c
	ground/openpilotgcs/src/plugins/opmap/opmapgadgetwidget.cpp
	shared/uavobjectdefinition/attitudesettings.xml
2013-06-06 19:25:54 +02:00
Corvus Corax
fcc3f519d8 filterekf: Remember critical divergence and set error flag to prevent (re)arming so the user will notice 2013-06-06 17:59:27 +02:00
Corvus Corax
b0db191703 Divide mag variance by Be squared to cope with normalization correctly 2013-06-06 17:54:59 +02:00
Corvus Corax
bab95e7ca8 check variances for validity and reinitialize if invalid 2013-06-06 00:07:11 +02:00
Corvus Corax
f22a0d299e EKF: Averaging term for dT
- prevent scheduling jitter from screwing with the filter while keeping dT accurate
2013-06-06 00:06:12 +02:00
Alessio Morale
c0b926a2d5 OP-990 zeroed the rollpitch bias rate at startup and incremented at arming. 2013-06-05 22:19:20 +02:00
Corvus Corax
6f6ca2481e Changed CoordinateConversion to use doubles for LLA2NED conversion, so coordinates can be represented in ECEF with sufficient resolution 2013-06-05 20:40:49 +02:00
Corvus Corax
5e306250a5 Enabled simulated sensors in SimPosix for debugging of EKF behaviour including:
- SimPosix again stores and reads UAVObjects to disk (was disabled by someone)
- simulated sensors moved to allow automated module initialisation in simposix
- fixed a categorization bug in a uavobject
2013-06-05 19:34:48 +02:00
Mathieu Rondonneau
23b2907d08 OP-976: Add the ';' back
This compile successfuly with make all_flight
2013-06-03 20:37:40 -07:00
Alessio Morale
cfe057c573 OP-988 Raise SYSTEMALARMS_ALARM_CRITICAL when no gps port is configured, the same alarm as no gps case.
+review OPReview
2013-06-03 20:30:41 +02:00
Corvus Corax
6435604182 some fixes and corrections as suggested in review 2013-05-29 22:18:08 +02:00
Corvus Corax
e82a52e8ff filterekf: changed mag variance to 1/1000000 to compensate for normalization, as it was done on old AHRS 2013-05-29 22:02:39 +02:00
Alessio Morale
6b2218d1df Merge remote-tracking branch 'origin/amorale/OP-925_Cyr_patches_for_revo_cf' into next 2013-05-28 18:39:42 +02:00
Alessio Morale
a286a20cb0 OP-925 Changed dT to comply with revo sensor rate
+review OPReview-484
2013-05-27 21:05:39 +02:00
Brian Webb
16b787179c Merge branch 'next' of ssh://git.openpilot.org/OpenPilot into next 2013-05-26 08:37:05 -07:00
Brian Webb
e9f83bcc80 Fixes a bug in the rfm22b driver that was reading past the end of the bindings list when receiving a status message. Also adds some formatting changes that came about after doing a make uncrustify_all. 2013-05-26 08:36:38 -07:00
Alessio Morale
9bfce1bcd6 Merge remote-tracking branch 'origin/amorale/OP-925_Cyr_patches_for_revo_cf' into next 2013-05-26 16:18:05 +02:00
Corvus Corax
7bf58f09c5 filterekf gyro bias adjustment bugfix 2013-05-25 16:18:18 +02:00
Brian Webb
4036e95bd5 Merge remote-tracking branch 'origin/next' into OP-932-Modularize_Radio_Driver 2013-05-25 06:56:13 -07:00
Corvus Corax
6c25e82633 fixed bugs in GPS, corrected zeroing of updated flags in stateestimation 2013-05-25 12:28:32 +02:00
Richard Flay (Hyper)
bd538703ea OP-962: Tweaked C2U_STACK_SIZE_BYTES to be a multiple of 4.
+review OPReview-480
2013-05-25 17:10:41 +09:30
Corvus Corax
87b1b4873c bugfix in baro alt filter plugin 2013-05-25 02:02:53 +02:00
Corvus Corax
902bf29c92 some small bugfixes to filterekf 2013-05-25 00:05:06 +02:00
Corvus Corax
b916df5448 ported cyr's patch to new CF 2013-05-24 23:59:12 +02:00
Corvus Corax
259eeecbbc Put Macros in StateEstimation into the file header after request in review.
Author expresses concernes about the code readability in this layout
(Commit message edited, was: "HATE THIS")
2013-05-24 19:19:40 +02:00
Corvus Corax
40864b2d3b some cleanups 2013-05-23 21:21:14 +02:00
Alessio Morale
711f1ad35b Fix indentation 2013-05-23 00:47:38 +02:00
Corvus Corax
53ba3f4b74 removed GPS check from ekf and put into GPS 2013-05-22 23:20:31 +02:00
Alessio Morale
697874b315 Port of OP-754 On Revo. Fixed signs on bias calculation. Added rate zeroing at startup to yaw 2013-05-22 23:17:09 +02:00
Corvus Corax
843db63cf6 some last issues from review 2013-05-22 23:08:48 +02:00