1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00
Commit Graph

630 Commits

Author SHA1 Message Date
Alessio Morale
e407eb8126 Merge branch 'next' of git://git.openpilot.org/OpenPilot into next 2014-03-09 14:38:17 +01:00
Alessio Morale
0b30b79c98 Merge remote-tracking branch 'origin/amorale/OP-1149_gyro_accel_thermal_calibration' into next
Conflicts:
	ground/openpilotgcs/src/libs/eigen/Eigen/src/Core/util/Memory.h
	ground/openpilotgcs/src/plugins/config/revosensors.ui
	ground/openpilotgcs/src/plugins/setupwizard/vehicleconfigurationhelper.cpp
2014-03-09 14:38:08 +01:00
Corvus Corax
0ece1a1fb3 OP-1216 removed "reverseThrottle" systemsetting and have reversethrottle implicitly allowed for REVERSABLEMOTOR type outputs 2014-03-09 10:00:58 +01:00
Corvus Corax
148b453aad OP-1216 added new mixer output type "reversable motor" to have engines which can can backwards go to a safe level when disarmed 2014-03-09 01:37:22 +01:00
Laurent Lalanne
aa7a8f62c7 OP-1241 TxPID Does not work for Bank 3 PID settings (Typo) 2014-03-07 22:04:14 +01:00
Philippe Renon
7ab38eacb6 OP-1246 removed now uneeded FIXME tag in RadioComBridge 2014-03-04 10:02:43 +01:00
Philippe Renon
067cb6f098 OP-1246 made updating of RadioComBridgeStats thread safe 2014-03-04 09:56:42 +01:00
Philippe Renon
29198e17cf OP-1246 fixed wrong logic for telemtryTxRetries and radioTxRetries : was wrongly accumulated 2014-03-04 09:51:45 +01:00
Philippe Renon
1e3e8a29a9 OP-1246 fixed clumsy error handling of UAVTalkSendObject calls from RadioComBridge 2014-03-04 09:49:34 +01:00
Corvus Corax
dbbb8d5e0d OP-1216 fixes as suggested in OPReview-645 2014-03-03 18:58:09 +01:00
Corvus Corax
2c99b008c6 OP-1216 some fixes to flightmode and arm state management, update GCS control widget to be able to test and debug new control infrastructure 2014-03-02 22:20:18 +01:00
Corvus Corax
12eed41e58 OP-1216 modified alarms for manualcontrol/receiver to reflect new architecture 2014-03-02 20:12:19 +01:00
Corvus Corax
564a991222 adjusted Stabilization stack size to get rid of stack alarm 2014-03-02 19:11:49 +01:00
Corvus Corax
2f57ea2ab3 added missing initializations to allow boot without manualcontrol module 2014-03-02 19:00:37 +01:00
Corvus Corax
f61231f610 OP-1216 moved safety zeroing for channels from Stabilization to Actuators (so it also affects manual mode) 2014-03-02 15:35:39 +01:00
Corvus Corax
3ea9042279 Merge branch 'next' into corvuscorax/OP-1216_flight-control-refurbishment 2014-03-02 14:54:01 +01:00
Corvus Corax
cdca8d835c OP-1216 manualcontrol refactoring 2014-03-02 14:45:17 +01:00
Alessio Morale
7f6175d817 OP-1235 allows AccelBiasValue to quickly reach the target value at initialization 2014-02-23 13:05:20 +01:00
Alessio Morale
a2386f548b OP-1235 allow for live update of altitude estimation settings 2014-02-23 13:05:20 +01:00
Alessio Morale
bc3636bbd6 OP-1235 gives better names to state variables
Conflicts:
	flight/modules/StateEstimation/filteraltitude.c
2014-02-23 13:05:20 +01:00
Alessio Morale
2bcbf7dc86 OP-1026 remove legacy idle time calculation in OPLink code 2014-02-22 00:31:06 +01:00
Alessio Morale
3fc3b5b01b OP-1026 replace idle time calculation with task monitor API 2014-02-22 00:30:03 +01:00
Alessio Morale
3cf1662bc8 Merge remote-tracking branch 'origin/amorale/OP-1212_telemetry_prio_queue' into next 2014-02-21 19:16:52 +01:00
Alessio Morale
b879bd8fb4 OP-1232 set lowpriority field on all other UAVObjEvent usage intances 2014-02-18 01:04:43 +01:00
Alessio Morale
26f3422612 OP-1232 add a low priority flag that prevent raising the error counter in eventdispatcher, to be used for telemetry 2014-02-18 01:03:57 +01:00
Corvus Corax
e97ce303b8 Merge branch 'corvuscorax/OP-942_task-diagnostics-for-callbacks' into next 2014-02-18 00:03:07 +01:00
Alessio Morale
3044185019 Merge remote-tracking branch 'origin/amorale/OP-1218_pios_com_thread_safe' into rel-14.01
Conflicts:
	flight/modules/RadioComBridge/RadioComBridge.c
2014-02-17 15:24:50 +01:00
Corvus Corax
0ebc92d9f5 Merge branch 'corvuscorax/OP-942_task-diagnostics-for-callbacks' into corvuscorax/OP-1216_flight-control-refurbishment
Conflicts:
	flight/modules/AltitudeHold/altitudehold.c
2014-02-16 19:08:39 +01:00
Corvus Corax
7dd911efdb OP-1217 change the way modules are enabled/disabled based on flightstatus 2014-02-16 19:07:31 +01:00
Corvus Corax
1898d0ad35 OP-1217 create new receiver module
This module includes all the receiver IO and parsing/failsafe
functionality of ManualControl, but does none of the interpretations in
regards to flight mode / actuator control or arming that was included in
the old ManualControl

In a second step the old ManualControl module needs to be adapted to do
only these ommitted things in a modular way - as a delayed callback
2014-02-16 15:09:08 +01:00
Corvus Corax
d6ede78fd7 dummy commit - renamed file back 2014-02-16 13:52:04 +01:00
Corvus Corax
227aab80b9 OP-1217 moved manualcontrol to receiver 2014-02-16 13:49:51 +01:00
Corvus Corax
f066bcb2d9 OP-942 changed enum term from HARMLESS to WARNING as requested 2014-02-16 12:50:40 +01:00
Corvus Corax
37ef381f8d OP-1216 clamping of throttle to -1 in actuators (optional) 2014-02-16 12:27:01 +01:00
Corvus Corax
5f2ce2e0a1 Merge branch 'next' into corvuscorax/OP-1216_flight-control-refurbishment 2014-02-16 12:26:45 +01:00
Alessio Morale
8cd5cfe2eb OP-1218 format/consmetic/comments fixes 2014-02-15 22:05:56 +01:00
Alessio Morale
21b0049a68 OP-1218 fix missing "ret =" 2014-02-11 16:51:56 +01:00
Alessio Morale
15200eafd8 OP-974 add bootloader revision info in FirmwareIAP 2014-02-11 12:38:55 +01:00
Alessio Morale
1ba5dbaca8 uncrustify 2014-02-10 22:57:24 +01:00
Alessio Morale
e16cf0ef8d OP-1218 changes to RadioComBridge to support return code. 2014-02-09 19:57:16 +01:00
Corvus Corax
b5a27d05e7 OP-1197 configurable failsafes OP-1219 thrust control OP-1217 separate manualcontrolsettings apart 2014-02-09 19:37:22 +01:00
Corvus Corax
7ec21a8f36 OP-942 duplicated exact API of task_monitor to also monitor callbacks
This allows cleaner and fine grained handling of STACKOVERFLOW alarms
2014-02-07 22:39:16 +01:00
Alessio Morale
8bdadaaff2 OP-1212 better wait on priority queue than std queue 2014-02-07 20:01:02 +01:00
Alessio Morale
7a39d93952 OP-1212 handle priority queues for setUpdatePeriod and setLoggingPeriod 2014-02-07 18:36:33 +01:00
Corvus Corax
9a6072d58c Merge branch 'next' into corvuscorax/OP-942_task-diagnostics-for-callbacks
Conflicts:
	flight/targets/boards/simposix/firmware/Makefile
2014-02-07 00:31:32 +01:00
Corvus Corax
6566a29054 OP-942 reliable and fast free stack test algorithm - will always 'see' overflows 2014-02-06 23:54:30 +01:00
Corvus Corax
c7ada40c2e Merge branch 'corvuscorax/OP-1211_time_measurement_helper' into rel-14.01 2014-02-06 19:56:47 +01:00
Alessio Morale
df2bb8eb84 OP-1149 missing uncrustification 2014-02-06 00:57:57 +01:00
Alessio Morale
5bb5b34447 OP-1149: second order correction for all gyro axis. Add calibrated range contraint for temperature.
cleanup replacing all the arrays of floats[] with corresponding AccelGyroSettings* structs.
2014-02-06 00:57:27 +01:00
Alessio Morale
c9f9faafd5 OP-1149: all gyro have second order temp bias polynomials. remove unneeded copies of AccelGyroSettings values 2014-02-06 00:52:44 +01:00
Alessio Morale
13f1f3f23a OP-1212 Add "priority" attribute to uavojects that grant them higher priority when sent with telemetry 2014-02-04 21:03:42 +01:00
Alessio Morale
01822d7a0c OP-1212 Fix priority queue handling and use it for setting processing 2014-02-04 20:49:36 +01:00
Corvus Corax
28be9cc8ce OP-1211 adapted existing code to use new pios functionality instead of separate error prone implementations 2014-02-04 19:48:33 +01:00
Corvus Corax
a3bb523bf3 OP-1211 adjusted alpha value to more sensible default 2014-02-04 19:21:33 +01:00
Corvus Corax
723e22aa1a OP-1211 time_measurement_helper 2014-02-04 19:05:17 +01:00
Alessio Morale
eea194d22f OP-1149: fix type for accel bias. 2014-02-03 20:30:10 +01:00
Corvus Corax
49a1c4c28f OP-942 refactored callback scheduler to fit into PiOS naming scheme 2014-02-02 22:08:16 +01:00
Corvus Corax
b076ba02a1 OP-942 API change to CallbackScheduler - include unique ID for each callback for a taskinfo like UAVObject 2014-02-02 19:54:17 +01:00
Alessio Morale
27c19d7cb1 OP-1149/OP-1150: uncrustify/Cleanup 2014-02-02 18:53:35 +01:00
Alessio Morale
e599b01806 OP-1149: Fix calibraton settings not loaded at startup. 2014-02-02 18:50:53 +01:00
Corvus Corax
8b25ac1894 OP-1195 adapted task priorities for manualcontrol and stabilization 2014-02-02 14:13:25 +01:00
Alessio Morale
68d676db64 OP-1149: limit accel/gyro correction to calibrated temperature range. 2014-01-31 21:01:09 +01:00
Alessio Morale
f1bea0556d OP-1149: limit baro correction to calibrated temperature range. 2014-01-28 23:08:28 +01:00
Alessio Morale
9c1c556c9c Merge branch 'amorale/OP-1139_baro_2nd_order_compensation' into amorale/OP-1149_gyro_accel_thermal_calibration 2014-01-26 22:54:57 +01:00
Corvus Corax
ee452c8d4d OP-1192 Do not allow craft to be armed if input is incorrectly calibrated (and throttle cant go < 0 ) 2014-01-23 21:36:45 +01:00
Alessio Morale
02c7084196 Merge remote-tracking branch 'origin/next' into amorale/OP-1149_gyro_accel_thermal_calibration
Conflicts:
	ground/openpilotgcs/src/plugins/uavobjects/uavobjects.pro
2014-01-23 01:02:13 +01:00
Alessio Morale
99e9009c14 Merge branch 'amorale/OP-1188_stabilization_stack_optimization' into rel-14.01 2014-01-22 20:27:25 +01:00
Alessio Morale
c1f810f1ce OP-1188 fix an issue that is preventing bank initialization at startup 2014-01-22 00:01:38 +01:00
Alessio Morale
f9ac3a3de2 OP-1188 Optimize stack utilization for multipid bank selection in Stabilization module
+review OPReview
2014-01-21 22:44:26 +01:00
Corvus Corax
6d855fbaf0 OP-1177 remove cc algorithm from altitude hold code 2014-01-21 20:21:38 +01:00
Alessio Morale
7188394e39 Uncrustification 2014-01-19 12:37:25 +01:00
Alessio Morale
1b0c301c20 OP-1152 Fix stabilization stack size on Revo. 2014-01-18 17:59:56 +01:00
Alessio Morale
1f61676d0a Merge branch 'amorale/OP-1152_stack_verification' into next
Conflicts:
	flight/targets/boards/coptercontrol/firmware/inc/pios_config.h
2014-01-18 13:54:06 +01:00
Cliff Geerdes
02dfac7e6e OP-1167 set default for FSM switch to first position 2014-01-17 23:52:16 -05:00
Corvus Corax
91d5a865da uncrustification 2014-01-18 00:32:50 +01:00
m_thread
234626444e Merge remote-tracking branch 'origin/next' into thread/OP-1154_Cruise_Control_automatically_increase_copter_throttle_per 2014-01-17 13:16:15 +01:00
Cliff Geerdes
bfb5a248a0 OP-1154 enables for individual flight mode switch positions 2014-01-16 16:51:19 -05:00
Corvus Corax
41202a0227 Merge branch 'corvuscorax/OP-1022_AH_improvements_amorale' into next 2014-01-15 22:47:42 +01:00
Les Newell
2b32c5ebc3 Merged theothercliff/OP-1154_Cruise_Control_automatically_increase_copter_throttle_per_1/cos(bank_angle)
Changed pid banks to use flight mode switch position instead of FlightStatus.FlightMode
2014-01-15 19:37:13 +00:00
Les Newell
f096d01e3c Merge branch 'next' into LesNewell/OP-984_PID_banks_flightmode 2014-01-15 19:17:06 +00:00
Philippe Renon
694747cd27 Merge remote-tracking branch 'origin/next' into filnet/OP-1122_gcs_waypoint_editor_stabilization
Conflicts:
	ground/openpilotgcs/src/plugins/uavobjectwidgetutils/configtaskwidget.cpp
2014-01-15 20:12:08 +01:00
Cliff Geerdes
e6490c0cea OP-1154 Add FlightModeSwitchPosition to ManualControlCommand 2014-01-15 13:53:14 -05:00
Corvus Corax
9997f14d68 Merge remote-tracking branch 'origin/next' into corvuscorax/OP-1022_AH_improvements_amorale 2014-01-15 18:45:09 +01:00
Corvus Corax
92beb54e2d OP-1022 some small cosmetic fixes for AltitudeHold as suggested by Alessio 2014-01-15 18:43:47 +01:00
Philippe Renon
d43b220dc0 OP-1122 uncrustified gcs and flight 2014-01-14 22:46:01 +01:00
Corvus Corax
3b635693a5 OP-1161 changed the way magnetometer-errors are handled - and defaults
* ekf will ignore magnetometer errors for initialization
 (errors might be caused by not yet existing attitude estimation)
* defaults changed for filtering
* magnetometer sensor will be available for all filters, alarms need to
  be checked separately
2014-01-14 21:09:14 +01:00
Philippe Renon
1fca85784c OP-1122 OP-1145 added more path plan checks :
- empty plan (i.e. no waypoints defined)
- out of range waypoint and path action ids

+review OPReview-609
2014-01-14 21:08:40 +01:00
Philippe Renon
8ccdb252d1 OP-1122 OP-1145 commented out PIOS_DEBUGLOG_Printf calls in pathplanner
+review OPReview-609
2014-01-14 21:08:35 +01:00
Philippe Renon
7f2c24db2b OP-1122 OP-1158 - renamed uavobject FlightPlan to PathPlan
+review OPReview-609
2014-01-14 21:05:16 +01:00
Les Newell
3b0525c4ab OP-984 Uncrustified 2014-01-14 19:03:42 +00:00
Corvus Corax
75b1a7ff5f OP-1161 moved mag validity check function from sensors to state estimation 2014-01-14 16:45:44 +01:00
Corvus Corax
c180846ca9 OP-1161 discard magnetometer in filters if plausibility alarm is set 2014-01-14 16:45:21 +01:00
Corvus Corax
3d1cc31c3b OP-1161 Add alarm for magnetometer plausibility check 2014-01-14 12:22:01 +01:00
Corvus Corax
07d5c8e4d2 OP-1022 fixed the config plugin widget to represent new simpler settings layout 2014-01-14 00:26:27 +01:00
Corvus Corax
76ee48bc44 OP-1122 safer sanity checks and arming prevention in case of invalid flight plan 2014-01-12 21:37:40 +01:00
Corvus Corax
cb9e76b006 OP-1122 add flightplan safety check to pathplanner - failsafe rth when flightmode is set to pathplan but no valid plan is uploaded 2014-01-12 21:05:54 +01:00
Corvus Corax
b8118f51e7 OP-1156 Made PathPlanner work with delayed callbacks in "navigation" callback task
Conflicts:
	flight/modules/PathPlanner/pathplanner.c
2014-01-12 20:13:48 +01:00
Corvus Corax
2ce0cb7909 reverted changes to fixedwingpathfollower - wrong module 2014-01-12 20:13:00 +01:00
Philippe Renon
a64720a9f1 OP-1122 OP-1158 added flight plan CRC consistency checks (in GCS and fixedwingpathfollower module)
- need to do the same in vtolpathfollower module)
- addressed an issue that could cause unwanted waypoints to be used (path follower was looping over all instanciated wp)
2014-01-12 19:42:12 +01:00
Philippe Renon
ff8a001a51 Merge remote-tracking branch 'origin/next' into filnet/OP-1122_gcs_waypoint_editor_stabilization
Conflicts:
	ground/openpilotgcs/src/plugins/config/configpipxtremewidget.cpp
	ground/openpilotgcs/src/plugins/uavobjectutil/uavobjectutilmanager.cpp
2014-01-12 16:29:17 +01:00
Philippe Renon
aa24f2193a OP-1122 OP-1158 renamed FlightPlanInfo uavobject to FlightPlan 2014-01-12 15:23:21 +01:00
Philippe Renon
d8d9adb1fd OP-1122 OP-1158 remove unused flightplan.h (fixes conflict with new FlightPlan uavobject) 2014-01-12 15:10:15 +01:00
Cliff Geerdes
ccc09721cd OP-1154 Initial version with UAVO's but no GCS GUI 2014-01-11 16:22:20 -05:00
Corvus Corax
77d15b9566 Merge branch 'next' into corvuscorax/OP-1022_AH_improvements_amorale 2014-01-11 10:57:31 +01:00
Corvus Corax
f2bc6508c4 uncrustify --- somone forgot to run uncrustify when merging to next -
again!!! ;)
2014-01-11 10:55:50 +01:00
Corvus Corax
ca607ad924 OP-1022 overhaul of altitudehold and manualcontrol - cleanup,
reimplemented safe throttle cutoff and altitudevario features
2014-01-11 10:51:47 +01:00
Corvus Corax
4c078f3dd8 Merge branch 'next' into corvuscorax/OP-1022_AH_improvements_amorale 2014-01-11 09:40:34 +01:00
Les Newell
2e030419ca OP-984 Fixed bad merge of stabilization.c 2014-01-10 22:16:50 +00:00
Les Newell
49cf33ee59 Merge branch 'next' into LesNewell/OP-984_PID_banks
Conflicts:
	flight/modules/Stabilization/stabilization.c
2014-01-10 19:32:44 +00:00
Philippe Renon
8c7792b6e5 OP-1122 OP-1120 Added a new FligthPlanInfo uavobject
- FligthPlanInfo contains the number of waypoints and action pathes
- FligthPlanInfo contains a CRC of all waypoints and action pathes
- The CRC is not yet implemented
- These informations will be used to check the consistency of a flight plan
2014-01-09 01:06:00 +01:00
Philippe Renon
03b3dca76c OP-1122 OP-1145 flight telemetry improvement
- create periodic queue events only for periodically updated uavobjects
- made error handling more robust
- added a FIXME concerning FlighTelemetryStats as it is updated peridocally using two separate mechanisms
2014-01-06 21:48:34 +01:00
Philippe Renon
772c395e67 OP-1122 OP-1145 fixed handling of ground messages done by OPLM
- OPLM used to receive and relay all messages
- OPLM will now reveice only specific messages and relay others as required (needs to be reviewed...)
- add RadioComBridgeStats uavobject to collect and report tx/rx statistics
- made error handling more robust
- added a few FIXMEs
2014-01-06 21:35:00 +01:00
Alessio Morale
adde6b2f34 OP-1153 Fix for simposix 2014-01-05 23:32:20 +01:00
Alessio Morale
fff060ed9d OP-1153 Add a way to monitor SystemMod stack usage without DIAG_TASKS=y
SystemStats.SystemModStackRemaining field does contains the relevant information.
2014-01-05 23:28:31 +01:00
Cliff Geerdes
a48b9cc242 OP-1117 reduced CPU for CC/3D coded log2f() / powf() 2014-01-04 04:22:54 -05:00
Cliff Geerdes
54ac7da2e8 OP-1117 bugfix for refactoring, would keep Ki from working at full stick 2014-01-02 00:56:55 -05:00
Alessio Morale
bd1442437f OP-1139: fix wrong sign for bias and some optimizations
+review OPReview-598
2014-01-01 19:13:26 +01:00
Corvus Corax
f5dbe29896 Merge remote-tracking branch 'origin/amorale/OP-1139_baro_2nd_order_compensation' into corvuscorax/OP-1022_AH_improvements_amorale 2013-12-31 16:38:15 +01:00
Corvus Corax
cefcb9881a Altitude Hold - compensation for tilt 2013-12-29 19:09:54 +01:00
Alessio Morale
e04cef2fa4 OP-1149 Uncrustify 2013-12-29 18:45:44 +01:00
Alessio Morale
ac3d7b8d11 OP-1149 Implements thermal accel/gyro bias correction for CC3D 2013-12-29 14:23:46 +01:00
Alessio Morale
260db3446c OP-1149 changes in CC/CC3D code to use AccelGyroSettings for bias/scale instead of AttitudeSettings.
Bias units of measure are now normalized between CC/CC3D/Revo.
2013-12-29 14:08:53 +01:00
Corvus Corax
505d334c4b simplified altitude hold control loop 2013-12-27 18:37:27 +01:00
Alessio Morale
7ac2f9f87f OP-1149 Move accel/gyro calibration setting to a separate object, to be reused also for CC3D 2013-12-26 16:55:57 +01:00
Alessio Morale
558e2e1437 OP-1149 introduce a first order temperature calibration for gyro and accel.
gyro Z is instead using a 2nd degree polinomial for better accuracy as
its drift is harder to be corrected as with the other twos.
2013-12-25 18:11:53 +01:00
Cliff Geerdes
14aa1f83de OP-1117 make anti windup insensitive to Ki changes, include dT in calcs, linearize config spinner 2013-12-19 03:21:30 -05:00
Philippe Renon
5f33fadb1b OP-1122 OP-1145 flight side uavtalk and telemetry enhancements
- added more stats (bytes, sync errors, crc errors)
- made error handling more robust
- added some optional PIOS_DEBUGLOG calls
- fixed a timestamp handling bug
2013-12-19 00:17:08 +01:00
Cliff Geerdes
56b4d8647f OP-1117 Rename Horizon to Rattitude, Anti Windup and dT additions 2013-12-18 05:01:16 -05:00
Cliff Geerdes
35f6caa360 OP-1117 create a second set of rate PIDs so MWH can run rate and attitude separately 2013-12-16 13:42:24 -05:00
Cliff Geerdes
150dbebc63 OP-1117 MultiWiiHorizon flight mode only (not cliffs H1 or H2) 2013-12-15 22:02:06 -05:00
Alessio Morale
f95a86eaed OP-1139: missing uncrustification 2013-12-13 17:10:39 +01:00
Les Newell
faa1b61bf6 OP-984 txpid not using the selected pid bank 2013-12-12 12:11:00 +00:00
Les Newell
0afe6afd11 OP-984 Fixed insufficient stack for stabilization 2013-12-11 19:24:13 +00:00
Les Newell
024d74c0df OP-984 stabilization.c - commented out code that mirrors change to the current bank data object back to the selected bank. This is left in just in case later modules want to be able to modify the currently selected bank. 2013-12-11 17:09:17 +00:00
Les Newell
63ecf6ad73 OP-984 txpid can now select which bank it operates on, rather than using the flight mode selected bank. 2013-12-11 17:09:12 +00:00
Les Newell
68b8586c6b OP-984 Changed stabilization.c to handle multiple pid bank objects 2013-12-11 17:09:08 +00:00
Les Newell
641cf474eb OP-984 Fixed missing include in manualcontrol.c 2013-12-11 17:09:04 +00:00
Les Newell
084e3ccd5d OP-984 Modified manualcontrol to handle pid bank 2013-12-11 17:08:47 +00:00
Les Newell
d625242a45 OP-984 Updated vtolpathfollower to handle PID banks 2013-12-11 17:08:39 +00:00
Les Newell
b550e67056 OP-984 Updated txpid to handle pid banks 2013-12-11 17:08:31 +00:00
Les Newell
f523ba949d OP-984 Modified manualcontrol to use PID bank data object 2013-12-11 17:08:27 +00:00
Les Newell
fddf61377e OP-984 More changes to stabilization.c for bank switching 2013-12-11 17:08:22 +00:00
Les Newell
114c0ac561 OP-984 Added multiple banks code to stabilization.c 2013-12-11 17:08:18 +00:00
Les Newell
ec713be3ea OP-984 Added data UAV object for current stabilization bank 2013-12-11 17:08:10 +00:00
Alessio Morale
44269b6762 OP-1139: export corrected pressure value to uavobject 2013-12-10 02:02:30 +01:00
Alessio Morale
634ba79dcb OP-1141: allow to input a barometer bias model.
It uses a 3rd degree polynomial to model pressure bias as a function of temperature.
2013-12-10 01:46:28 +01:00
Corvus Corax
95d52c6b08 fixed signs in control loop 2013-12-08 14:00:18 +01:00
Corvus Corax
84af4b7651 fixes to barofilter 2013-12-08 14:00:09 +01:00
Corvus Corax
66b0ffd682 small fix to baro state filter - more init cycles 2013-12-08 13:35:00 +01:00
Corvus Corax
5cc8dedadf uncrustify changed things 2013-12-08 13:07:26 +01:00
Corvus Corax
3cea14a809 added missing object, added more debug output 2013-12-08 13:06:28 +01:00
Corvus Corax
4ad0e730da added status uavobject for easier debugging 2013-12-08 12:23:16 +01:00
Corvus Corax
90f689cfa1 throttle does not accelerate downwards but upwards - switched sign 2013-12-08 10:44:17 +01:00
Corvus Corax
8832ea24f5 proper uncrustification 2013-12-07 23:31:26 +01:00
Corvus Corax
623c25aa99 new design of altitude hold - warning not tested yet! 2013-12-07 23:16:22 +01:00
Corvus Corax
ff5927bc43 some changes to altitudehold, hope i get that done today... 2013-12-07 17:28:01 +01:00
Corvus Corax
3e1b0fd114 Merge branch 'next' into corvuscorax/OP-1022_AH_improvements_amorale 2013-12-07 16:33:57 +01:00
Corvus Corax
9c6abef89b fixed enabled and disabled messages for logging in all cases 2013-12-01 00:03:24 +01:00
Corvus Corax
be9faabe92 Merge branch 'next' into corvuscorax/onboardlogging 2013-11-26 00:34:01 +01:00
Corvus Corax
1c83d3ee28 BUGFIX to OpLinkMini: oplinkmod needs to initialize the Callback Scheduler
OPLMini does not use Systemmod but its own system module called
oplinkmod - which did not initialize the callback scheduler. Making the
event dispatcher a callback caused it to no longer run due to the
missing callback scheduler initialization
2013-11-24 21:24:55 +01:00
Corvus Corax
77b7ba3089 Added new setting 'OnlyWhenArmed' to debuglogsettings 2013-11-19 19:29:24 +01:00
Corvus Corax
d235a24e23 Merge branch 'next' into corvuscorax/onboardlogging 2013-11-19 18:49:58 +01:00
Corvus Corax
7a6c0b61e8 Merge branch 'next' into corvuscorax/callbackeventdispatcher2 2013-11-19 18:36:20 +01:00
Corvus Corax
951c7bfea0 removed redundant code from Telemetry 2013-11-17 22:20:19 +01:00
Corvus Corax
0e502d3734 Modified queue creation for telemetry and logging
event queues are now created for all uavobjects for both telemetry and
logging, so later modifications from manual to periodic are possible
2013-11-17 22:10:03 +01:00
Corvus Corax
fcc479f5cb more intelligent log interfacing, including flash formatting option 2013-11-17 20:14:50 +01:00
Corvus Corax
243e261411 UAVObject logging through telemetry module and uavobjectmanager 2013-11-17 17:15:23 +01:00
Corvus Corax
a0746d87fa Logging facility: logs debug data to logfs and exports it through container UAVObject 2013-11-17 02:54:26 +01:00
Corvus Corax
b3ebb91ceb uncrustification 2013-10-19 21:59:07 +02:00
Alessio Morale
c0cfd3dffe Merge branch 'amorale/OP-1058_uavo_named_accessors' into next 2013-09-10 21:20:12 +02:00
Alessio Morale
db7ea48675 Merge remote-tracking branch 'origin/cyr/OP-1076' into next 2013-09-10 20:26:53 +02:00
Alessio Morale
0db9a9bf8d OP-1058 Add xxxGet and xxxSet functions to handle multielement fields as struct
for example:
EKFStateVariancePSet(EKFStateVariancePData *NewP);
EKFStateVariancePGet(EKFStateVariancePData *NewP);
Also in this case array accessors are renamed as xxxArrayGet/Set:
EKFStateVariancePArraySet(float *NewP);
EKFStateVariancePArrayGet(float *NewP);

Nothing changes for anonymous items as default functions continues to deal with arrays

+review OPReview-552
2013-09-01 13:23:20 +02:00
Alessio Morale
e91bc28667 OP-1058 Get rid of Unions.
They caused stack usage increase with -fstrict-aliasing as stack slots are not reused when dealing with unions.
It has now been added the cast_struct_to_array macro in pios_struct_helper.h to handle such case where it is useful to access those homogeneous structs as arrays

+review OPReview-552
2013-09-01 12:10:55 +02:00
Alessio Morale
11b269f898 Merge remote-tracking branch 'origin/next' into amorale/OP-1058_uavo_named_accessors 2013-08-31 16:03:30 +02:00
Mathieu Rondonneau
e973740b8b OP-1067 run uncrustify 2013-08-28 19:47:44 -07:00
Mathieu Rondonneau
fc6d544476 OP-1067 Force oplonk to report disabled if rfm22b is not initialized. 2013-08-28 19:45:50 -07:00
Erik Gustavsson
e39c3f897e Use xTaskGetTickCount() to time long intervals rather than PIOS_DELAY_GetRaw(), because of wrap-around issues. 2013-08-26 19:14:47 +02:00
Corvus Corax
0db395b4a2 uncrustify 2013-08-11 15:33:59 +02:00
Corvus Corax
0f31368c64 Merge branch 'corvuscorax/OP-1036_fixed-wing-improvements' into next 2013-08-11 15:13:23 +02:00
Corvus Corax
0724fca32a refactored pid_apply_scaled back into pid_apply (rename only) 2013-08-11 15:12:17 +02:00
Mathieu Rondonneau
114e353acb OP-1067 Invalid value for "LinkState"
Do not retrieve status from rfm22b if not initialized.
2013-08-09 20:14:13 -07:00
Mathieu Rondonneau
40b0682048 OP-667: This is not an issue since the 2 callers already check for NULL pointer but for consistency, this should be done in the function itself. 2013-08-03 09:39:44 -07:00
Alessio Morale
8dd3c45ccf OP-1058 change some missing occurrencies to .field.XXX notation
+review OPReview-552
2013-08-01 11:44:12 +02:00
Alessio Morale
01d963affd OP-1058 uncrustify 2013-08-01 01:28:50 +02:00
Alessio Morale
f226b23c24 OP-1058: fix needed for fw_osd code compilation 2013-08-01 01:19:02 +02:00
Alessio Morale
8351e97faa OP-1058: fix needed for fw_revoproto code compilation 2013-08-01 01:18:53 +02:00
Alessio Morale
df90a13558 OP-1058: fix needed for fw_coptercontrol code compilation 2013-08-01 01:18:26 +02:00
Alessio Morale
9e1acc3165 OP-1058: fix needed for fw_revolution code compilation 2013-07-31 15:24:26 +02:00
Oleg Semyonov
77a6db3007 Merge remote-tracking branch 'origin/os/baro-offset-lpf' into next 2013-07-30 23:41:37 +02:00
Alessio Morale
b4d2423680 OP-1048 fix CF stateestimation bug using AccelTau.
move *_filtered to stateestimator data struct and initialize them at init.
they were previously used uninitialized thus causing estimation to fail validations, restarting the filter continously

+review OPReview
2013-07-30 23:41:21 +02:00
Corvus Corax
5206c1f195 uncrustification 2013-07-30 22:14:36 +02:00
Corvus Corax
4d9f7a72db Start CallbackScheduler last (after other modules) to reduce risk of race conditions during bootup 2013-07-28 20:31:31 +02:00
Oleg Semyonov
1bfa66c2b6 Change settings for baro altitude offset correction 2013-07-26 21:14:44 +02:00
Corvus Corax
ae1db5058e uncrustification 2013-07-20 16:59:00 +02:00
Corvus Corax
4f6c3c98e3 some small fixes to airspeed compensation in Stabilization 2013-07-20 14:52:22 +02:00
Corvus Corax
2ecbf4a846 add code to scale stabilization PID coefficients by 1/airspeed^2 if the user wishes to do so 2013-07-20 13:52:45 +02:00
Corvus Corax
b3cbb57a2b made low pass filter alpha a setting 2013-07-20 10:40:29 +02:00
Corvus Corax
1049f483a5 added low pass filter and a few safety checks to gps airspeed estimation 2013-07-20 09:09:44 +02:00
Corvus Corax
72e33a11e4 uncrustification, changed ekf glitch recognition to warning, since its now benign 2013-07-19 15:40:57 +02:00
Corvus Corax
b9ae8844a1 return error if ekf has not inited to prevent arming without proper state estimation 2013-07-19 15:37:50 +02:00
Corvus Corax
be583dd8bf fixes to gps airspeed sensor 2013-07-19 15:30:33 +02:00
Corvus Corax
842b4e361b moved airspeed sensor code to correct location 2013-07-19 15:29:04 +02:00
Alessio Morale
6b27ff1e27 OP-1022 add position lowpass, rework setting uavo, cleanup 2013-07-19 11:28:48 +00:00
Alessio Morale
e2a7c6cb25 OP-1022 Reset altitude and velocity when stick goes to deadband 2013-07-19 07:57:24 +00:00
Oleg Semyonov
aa560653d4 Make baro altitude offset (relative to GPS alt) filter configurable 2013-07-19 09:53:44 +03:00
Corvus Corax
ea8373b0f7 re-enabled wind estimation absed on groundspeed 2013-07-18 20:01:02 +02:00
Corvus Corax
2ab92f09a5 fix for the fix 2013-07-18 14:15:23 +02:00
Corvus Corax
9ba1fbdccc fixed safety check for throttle low, needed for arming on switch, too, but not for disarming 2013-07-18 14:10:33 +02:00
Corvus Corax
7b5bf53200 fixed channel reversals 2013-07-18 13:46:58 +02:00
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
005a68826d OP-1022 Converted to a plain Altitude PID + Velocity PI implementation 2013-07-17 08:38:44 +00:00
Alessio Morale
8c70e64544 OP-1022 reset velocity when changing flight mode 2013-07-17 08:37:56 +00:00
Werner Backes
45cebda628 Add a configurable lowpass filter to smooth throttle commands in
AltitudeHold mode.

Conflicts:
	flight/modules/AltitudeHold/altitudehold.c
	shared/uavobjectdefinition/altitudeholdsettings.xml
2013-07-16 21:21:21 +00:00
Werner Backes
7708aab313 Added vertical velocity as a control loop input to improve dynamics during
commanded ascend/decent.

Conflicts:
	flight/modules/AltitudeHold/altitudehold.c
	flight/modules/ManualControl/manualcontrol.c
	shared/uavobjectdefinition/altitudeholdsettings.xml
2013-07-16 21:17:32 +00:00
Alessio Morale
ed233efde2 OP-1022 Uncrustify 2013-07-16 20:02:03 +00:00
Alessio Morale
0203e2c6e2 OP-1022 Adding a proportional term on the square of the altitude error. 2013-07-16 20:01:16 +00:00
Alessio Morale
5b4d46819e OP-1022 Fix problem with EventSystem due to too high update rate 2013-07-16 12:25:58 +00:00
Alessio Morale
e975e4d9b7 OP-1022: replace old KF in alitude hold with status from filters 2013-07-16 12:25:57 +00:00
Alessio Morale
a57f8913ba OP-1022: replace old KF in alitude hold with status from filters 2013-07-16 12:25:57 +00:00
Alessio Morale
133ad414f8 OP-1022: Added a velocity loop in AH module, used when throttle is not in central position. 2013-07-16 12:25:57 +00:00
Werner Backes
23b5b37480 Scale down initial throttle when AH is engaged based on roll/pitch angle.
This improves AH behaviour when switching to AH while being in fast
forward flight.
2013-07-16 12:25:57 +00:00
Werner Backes
513d509865 Initialize altitude before switching to "running". Not doing this could
cause glitches during the very first switch to AH.
2013-07-16 12:25:57 +00:00
Werner Backes
1da68cda9a Scale up desired throttle in AH mode to compensate for roll/pitch 2013-07-16 12:25:57 +00:00
Werner Backes
73aa4df431 Missing " 2013-07-16 12:25:57 +00:00
Werner Backes
723f308ac7 Removed obsolete (unused) code 2013-07-16 12:25:57 +00:00
Werner Backes
45ed66414f Changed AH to work with absolute instead of relative altitude 2013-07-16 12:25:56 +00:00
Werner Backes
aecc8543a5 Corrected throttle stick exponentional function in AH mode 2013-07-16 12:25:56 +00: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