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
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
Corvus Corax
505d334c4b
simplified altitude hold control loop
2013-12-27 18:37:27 +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