Philippe Renon
575e89f1a1
OP-1319 fixed minor spelling mistake in firmware code
2014-08-30 18:09:23 +02:00
Corvus Corax
6faf1a73ac
OP-1456 get rid of cast_struct_to_array because it is error prone!
2014-08-24 00:16:34 +02:00
Corvus Corax
c5e0e58e6a
OP-1454 - fix weak leveling bug
2014-08-22 22:42:12 +02:00
Alessio Morale
1b823b7b92
Merge remote-tracking branch 'origin/Bertrand/OP-1308_Set_Same_Logic_To_Alarms' into next
...
Conflicts:
flight/libraries/sanitycheck.c
flight/modules/StateEstimation/filtermag.c
flight/modules/System/systemmod.c
2014-06-26 20:31:27 +02:00
Corvus Corax
f0c4b8f9c7
OP-1287 renamed VELOCITYCONTROL back to AltitudeVario for consistency
2014-06-03 18:42:54 +02:00
Bertrand Oresve
743cf4e4b5
OP-1308 Merge with next (conflict with stabilization)
2014-05-08 22:33:45 +02:00
Corvus Corax
153d2fb786
OP-1309 Fixed bug in Quaternion Stabilization Error Calculation in regards to independent axis
2014-05-07 22:12:01 +02:00
Corvus Corax
5528d79a05
OP-1309 bugfix update - correct initial loading of StabBank
2014-05-07 18:23:56 +02:00
Corvus Corax
c63540b2ec
Merge branch 'corvuscorax/OP-1309_Stabilization-Refactoring' into corvuscorax/OP-1259_Cruise_Control_Tweaks
...
Conflicts:
flight/modules/Stabilization/stabilization.c
shared/uavobjectdefinition/stabilizationsettings.xml
2014-05-02 18:25:57 +02:00
Corvus Corax
f7a2e31809
Merge branch 'next' into theothercliff/OP-1259_Cruise_Control_Tweaks
...
Conflicts:
flight/pios/stm32f10x/inc/usb_conf.h
2014-05-01 22:58:10 +02:00
Corvus Corax
2247fd69ec
OP-1309 fixed bug in outerloop
2014-05-01 18:52:39 +02:00
Corvus Corax
936a52112a
OP-1309 changed behaviour of Rattitude again to mimick old one
2014-05-01 17:08:43 +02:00
Corvus Corax
7275d9a807
OP-1309 correctly limit the maximum attitude-loop-rate in rattitude mode
2014-05-01 16:37:22 +02:00
Corvus Corax
09a5578f5a
OP-1309 put altitude calls into #ifdef so it compiles on coptercontrol
2014-05-01 12:54:56 +02:00
Corvus Corax
6993570cc9
OP-1309 integrated AltitudeHold into new Stabilization
2014-05-01 11:48:38 +02:00
Cliff Geerdes
b7a2931f21
OP-1259 Change a constant from a testing value to release value
2014-04-29 20:46:57 -04:00
Cliff Geerdes
5ee2930181
OP-1259 Removed inverted flight pitch and yaw reverse option
2014-04-29 20:24:49 -04:00
Corvus Corax
59bdab697a
OP-1309 some CPU and memory optimizations to get it to run on CC
2014-04-29 18:17:29 +02:00
Corvus Corax
1632eeb58f
OP-1309 some small fixes to Stabilization as result of simulator testing
2014-04-29 15:51:56 +02:00
Corvus Corax
a9a2c6f769
OP-1309 Reimplemented alarm handling and stabilization watchdog - Stabilization refactoring nearly done. needs testing and AltitudeHold reimplementations
2014-04-29 01:06:51 +02:00
Corvus Corax
82d2c5a308
OP-1309 Implemented control of new stabilization framework (replaces old stabilization module)
2014-04-29 00:29:15 +02:00
Corvus Corax
93f82652b7
OP-1309 outer loop fully implemented - some cleanups and changes in control flow to accomodate new logic
2014-04-27 15:15:59 +02:00
Corvus Corax
844fcffec7
OP-1309 added cruisecontrol function library and outer loop template
2014-04-27 07:19:59 +02:00
Corvus Corax
3f7c9e3679
OP-1309 inner stabilization loop in new incarnation - is not used yet until outer loop rewritten as well
2014-04-26 22:37:49 +02:00
Corvus Corax
77f2444fa4
OP-1309 renamed stabilization mode NONE to MANUAL
2014-04-26 20:33:25 +02:00
Corvus Corax
e9d1a2af4b
OP-1309 get rid of this horrible bound() function code duplication throughout entire flight code and put it into libraries/math
2014-04-26 17:48:54 +02:00
Corvus Corax
599661ba18
OP-1309 UAVObject changes, GCS changes and Makefile changes needed for Stabi refactoring
2014-04-26 15:14:40 +02:00
Corvus Corax
fe04cf7d29
uncrustification
2014-03-27 21:19:03 +01:00
Cliff Geerdes
48345f0194
OP-1259 First tested version
2014-03-27 01:37:56 -04:00
Cliff Geerdes
81f31e64a9
OP-1259 WIP to merge next in locally
2014-03-26 13:48:24 -04:00
Cliff Geerdes
d38360b665
OP-1259 small code beautification
2014-03-26 13:35:04 -04:00
Cliff Geerdes
d36cfe28ed
OP-1260 finish renaming RattitudeModeTransition I don't know how it built before.
2014-03-23 19:04:17 -04:00
Cliff Geerdes
5ecea4bf33
OP-1260 fix misspelling of RattitudeModeTransition
2014-03-23 13:00:00 -04:00
Cliff Geerdes
6d7d10caba
OP-1259 PowerDelayComp addtl inverted modes
2014-03-22 01:18:06 -04:00
Cliff Geerdes
820e8dfa3e
OP-1260 use predefined macro for size of Flight Mode Switch
2014-03-21 22:34:03 -04:00
Cliff Geerdes
945b60cf99
OP-1260 Fixed typo in a fairly important comment
2014-03-20 12:41:48 -04:00
Cliff Geerdes
1cb9d9548f
OP-1160 limit values in flight code (not just GCS) to avoid DZ. Set GCS tab index back to 0.
2014-03-17 22:40:19 -04:00
Cliff Geerdes
390533f2e3
OP-1160 Oops, forgot to remove #if 0's after testing
2014-03-14 02:14:02 -04:00
Cliff Geerdes
297b0d01cb
OP-1260 remove anti-windup, 2 PIDs, mode transition
2014-03-14 01:47:37 -04: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
cdca8d835c
OP-1216 manualcontrol refactoring
2014-03-02 14:45:17 +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
b5a27d05e7
OP-1197 configurable failsafes OP-1219 thrust control OP-1217 separate manualcontrolsettings apart
2014-02-09 19:37:22 +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
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
Corvus Corax
8b25ac1894
OP-1195 adapted task priorities for manualcontrol and stabilization
2014-02-02 14:13: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
Alessio Morale
1b0c301c20
OP-1152 Fix stabilization stack size on Revo.
2014-01-18 17:59:56 +01:00
Corvus Corax
91d5a865da
uncrustification
2014-01-18 00:32:50 +01:00
Cliff Geerdes
bfb5a248a0
OP-1154 enables for individual flight mode switch positions
2014-01-16 16:51:19 -05: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
Cliff Geerdes
e6490c0cea
OP-1154 Add FlightModeSwitchPosition to ManualControlCommand
2014-01-15 13:53:14 -05:00
Les Newell
3b0525c4ab
OP-984 Uncrustified
2014-01-14 19:03:42 +00:00
Cliff Geerdes
ccc09721cd
OP-1154 Initial version with UAVO's but no GCS GUI
2014-01-11 16:22:20 -05: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
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
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
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
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
68b8586c6b
OP-984 Changed stabilization.c to handle multiple pid bank objects
2013-12-11 17:09:08 +00:00
Les Newell
d625242a45
OP-984 Updated vtolpathfollower to handle PID banks
2013-12-11 17:08:39 +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
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
Corvus Corax
0724fca32a
refactored pid_apply_scaled back into pid_apply (rename only)
2013-08-11 15:12:17 +02:00
Alessio Morale
01d963affd
OP-1058 uncrustify
2013-08-01 01:28:50 +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
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
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
Mathieu Rondonneau
23b2907d08
OP-976: Add the ';' back
...
This compile successfuly with make all_flight
2013-06-03 20:37:40 -07:00
Sexy Pony
900f643bbd
Reformat source code with 'make uncrustify_all' run twice. NO CODE CHANGES
2013-05-19 17:37:30 +03:00
Corvus Corax
5284195c29
Refaktored sensor and state UAVObjects consistently into XXYSensor and XXYState
2013-05-18 19:36:45 +02:00
Corvus Corax
80caceb984
make uncrustify_all;make uncrustify_all;
2013-05-18 14:17:26 +02:00
Brian Webb
1608d11416
Cleans up some compiler warnings/erros and adds missing ifdefs around some e.g. WDG calls.
2013-05-14 20:22:54 -07:00
Richard Flay (Hyper)
fbc8bc698f
OP-936: Merges branch 'next' into hyper/OP-936_task-monitor-rework, fixes damage/conflicts,
...
and brings the callback scheduler into the fold.
+review OPReview-461
2013-05-06 19:11:14 +09:30
Richard Flay (Hyper)
a2d8544931
OP-931: adds -Wextra compiler option for the flight code, and makes the bazillion code changes required
...
to make the flight code compile again. Needs careful review, particularly all the fixes for the
signed vs unsigned comparisons.
+review OPReview-459
2013-05-05 16:32:24 +09:30
Richard Flay (Hyper)
87fcf9fa8b
Merge branch 'next' into hyper/OP-931_extra_compiler_warnings and update as necessary.
...
Hopefully properly fixes conflicts:
flight/modules/Attitude/attitude.c
flight/modules/ManualControl/manualcontrol.c
flight/modules/Osd/WavPlayer/wavplayer.c
flight/modules/Osd/osdgen/osdgen.c
flight/modules/System/systemmod.c
ground/uavobjgenerator/generators/flight/uavobjectgeneratorflight.cpp
2013-05-04 11:12:44 +09:30
Richard Flay (Hyper)
84e1a81f8b
OP-936: Moves the task monitor code out of the flight library and into PiOS.
...
This move and rework also breaks the dependency of the task monitor on the UAVO subsystem,
and pushes the responsibility for updating the TaskInfo UAVO into the System module.
+review OPReview
2013-05-03 07:01:14 +09:30
Richard Flay (Hyper)
7937ae6296
OP-931: Makes flight code compile with -Wfloat-equal and -Wunsuffixed-float-constants enabled.
...
Also fixes warnings (and bugs) in F4 STM32_USB_OTG_Driver code, allowing -Werror to be enabled for all flight code.
Fixes all other compiler warnings that would otherwise cause the flight code to not compile with -Werror enabled.
Along the way, this also adds some uses of isnan() to various places rather than questionable tests for x != x and
x == x to check for NaNs.
+review OPReview
2013-04-30 20:36:42 +09:30
Oleg Semyonov
e2fd821e97
Merge remote-tracking branch 'origin/next' into sambas/diffnext
...
Conflicts:
make/common-defs.mk
2013-04-26 16:31:19 +03:00
Oleg Semyonov
66db978244
Rename Libraries->libraries, Modules->modules
2013-04-25 13:13:36 +03:00