Andres
fd5d1e42a3
OP-1273 OP-1282 OP-1283 corrected compilation error for fw_revoproto
2014-04-01 07:46:50 +02:00
Andres
c5dc556a43
OP-1273 Uncrustify
2014-03-27 16:19:22 +01:00
Andres
9d30673d18
OP-1273 attitude estimation uses airspeedSensor.TrueAirspeed when available (e.g. from MS4525DO; available when TrueAirspeed >=0 ) instead of using an altitude correction IAS2TAS(alt). When not available it falls back to IAS2TAS(alt)
2014-03-26 09:15:56 +01: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
8351e97faa
OP-1058: fix needed for fw_revoproto code compilation
2013-08-01 01:18:53 +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
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
b012d55f26
OP-1009 fix comments and fixes review
...
+review OPReview-516
2013-06-17 21:01:24 +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
49da1aca86
OP-1009 Redo gyro zero in Complementary after calibration parameters changes
2013-06-15 16:22:24 +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
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
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
Alessio Morale
c0b926a2d5
OP-990 zeroed the rollpitch bias rate at startup and incremented at arming.
2013-06-05 22:19:20 +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
Corvus Corax
6435604182
some fixes and corrections as suggested in review
2013-05-29 22:18:08 +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
Alessio Morale
711f1ad35b
Fix indentation
2013-05-23 00:47:38 +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
9b95af2006
refaktored GPS Sensor UAVObjects
2013-05-22 22:36:23 +02:00
Alessio Morale
294a295510
Port CF patch from Cyr that filters accel to reduce attitude drift due to vibrations
2013-05-22 00:55:10 +02:00
Alessio Morale
0b5a28f19e
Port OP-754 to Revolution attitude estimation module: subtract GyroBIAS to work on raw value
...
Added MagKp and MagKi to AttitudeSetting UAVO
2013-05-21 23:44:12 +02:00
a*morale
464d2be9f7
Port OP-754 to Revolution attitude estimation module
2013-05-21 22:40:35 +02:00
Corvus Corax
3dda543608
Merge branch 'corvuscorax/OP-946_refaktor_sensor_and_state' into corvuscorax/OP-947_stateestimator-module
2013-05-20 20:53:46 +02:00
Corvus Corax
fb433a97d7
Bugfix: add gyro bias to correct axis
2013-05-20 20:52:45 +02:00
Corvus Corax
3cb4f59c94
failsafe, fallback to attitude for now until StateEstimation works reliably
2013-05-20 20:49:34 +02:00
Corvus Corax
1236bf3ed9
renamed Magneto to Mag
2013-05-20 10:33:02 +02:00
Corvus Corax
49b8e0d699
Merge branch 'next' into corvuscorax/OP-946_refaktor_sensor_and_state
2013-05-20 10:07:55 +02:00
Brian Webb
649667d338
Addes ifdef PIOS_INCLUDE_WDG around several calls to the wathdog functions for the Revolution firmware (allows you to turn off the watchdog).
2013-05-19 12:56:23 -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
9c3a8369cd
OP-946: State And Sensor Refaktoring: Moved Filtering for Magnetometers, Gyros and Accels into Attitude
2013-05-18 21:55:47 +02: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
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
Corvus Corax
39fe6beb4b
Merge branch 'corvuscorax/Attitude-fixes' into next
...
Conflicts:
flight/libraries/insgps13state.c
flight/modules/Attitude/revolution/attitude.c
2013-05-05 23:09:07 +02:00
Corvus Corax
e0a6dae46a
made "fake" variances set in indoor mode and used for airspeed hack come from UAvObject
2013-05-05 18:19:43 +02:00
Corvus Corax
946105cbe3
Merge branch 'next' into corvuscorax/Attitude-fixes
2013-05-05 17:44:59 +02:00
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)
5b61466259
OP-931: Adds -Wdouble-promotion compiler option and fixes problems that the compiler then identifies.
...
+review OPReview-459
2013-05-04 19:24:01 +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)
0178d666d5
OP-931: Fixes the mag_updated test in revo Attitude module to use the square of the Be vector magnitude.
...
Also fixes the dT calculation issues in a few places, one of which was as suggested in OPReview-459.
+review OPReview-459
2013-05-03 19:24:54 +09:30
Corvus Corax
5d5a3389c4
missed removal of unneeded update chec
2013-05-03 02:48:06 +02:00
Corvus Corax
25c58ff074
Put all EKF initialisation values in a separate UAVObject EKFConfiguration,
...
adapted insgps13state.c/.h,
modules/Attitude/revolution,
configrevowidget.cpp,
accordingly.
2013-05-03 02:17:44 +02:00
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