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

4586 Commits

Author SHA1 Message Date
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
3d5e27f5f2 OP-1122 fixed simposix so it will compile with new objects 2014-01-12 21:06:41 +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
c8a81f88a4 OP-1122 OP-1158 added facility to update a CRC with uavobject data (flight side) 2014-01-12 15:12:41 +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
Les Newell
8eb2eefec7 Merge branch 'LesNewell/OP-984_PID_banks' into next 2014-01-10 15:24:28 +00:00
Philippe Renon
bcb59a3dca OP-1122 OP-1120 Added missing FligthPlanInfo uavobject to revoproto/firmware/UAVObjects.inc 2014-01-09 21:46:50 +01: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
fe4fe46e34 OP-1122 OP-1145 flight uavtalk minor typo fix and minor error handling improvment 2014-01-06 21:45:01 +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
Alessio Morale
3aa7a1d352 OP-1152 change stack size to accomodate recent changes in dispatcher, telemetry for former CC (hw rev 1)
+review OPReview
2014-01-05 23:13:06 +01:00
Cliff Geerdes
a48b9cc242 OP-1117 reduced CPU for CC/3D coded log2f() / powf() 2014-01-04 04:22:54 -05:00
Mikael Blomqvist
b1d2c1b83e Adding R7008SB end byte as a possible end of frame check for S.Bus 2014-01-03 18:25:44 +01: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
Philippe Renon
fca840397e Merge remote-tracking branch 'origin/next' into filnet/OP-1122_gcs_waypoint_editor_stabilization 2013-12-30 22:18:52 +01:00
Corvus Corax
1cb402ff22 bugfix to eventdispatcher to fix uavtalk issue on coptercontrol 2013-12-30 01:42:46 +01:00
Corvus Corax
b786cec832 bugfix to eventdispatcher to fix uavtalk issue on coptercontrol 2013-12-30 01:40:27 +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
Corvus Corax
1cccd152bd added AltitudeHold to simposix 2013-12-27 16:50:30 +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
Philippe Renon
c2e8d25319 OP-1145 made MetaObjectId define publicly available 2013-12-18 08:52:52 +01: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
Philippe Renon
d668153b6d OP-1122 OP-1125 fixed copy/paste error in rfm22b flight code 2013-12-14 16:03:42 +01:00
Philippe Renon
2d1a17e267 OP-1122 OP-1125 minor uavtalk cleanups
- removed some magic numbers
- improved some error messages
- minor error handling improvments
2013-12-14 16:02:14 +01:00
Alessio Morale
f95a86eaed OP-1139: missing uncrustification 2013-12-13 17:10:39 +01:00
Alessio Morale
29df9d6dad OP-1139: Add some more descriptive names and comments for compensation variables 2013-12-13 17:10:11 +01:00
Les Newell
faa1b61bf6 OP-984 txpid not using the selected pid bank 2013-12-12 12:11:00 +00:00
Philippe Renon
625d7d53fc OP-1122 OP-1125 reworked uavtalk encoding/decoding to fix issues found during OPLM testing
Packet sizes are now again properly calculated and sent by GCS
Made the ground and flight side more symmetric and robust
Fixed few error handling issues
Replaced UAVTALK_QXTLOG_DEBUG define with qWarning() calls
Known issue : GCS sometimes reports bad CRC on messages received over USB connection
2013-12-12 00:05:58 +01:00
Philippe Renon
ff14b8d28c OP-1122 OP-1125 renamed method autoUpdated to instanceAutoUpdated
also fixed some method help comments
2013-12-11 22:24:38 +01: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
b7cfc503ea OP-984 Updated makefiles and inc files for multiple pid bank objects 2013-12-11 17:09:00 +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
e4bcd87ddd OP-984 Added stabilizationbank to inc files 2013-12-11 17:08:35 +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
Alessio Morale
13b45b2b78 OP.1139: uncrustify 2013-12-10 01:44:13 +01:00
Alessio Morale
75842cb648 OP-1139: perform second order low temperature compensation.
It follows the procedure described in MS5611 datasheet(http://www.meas-spec.com/downloads/MS5611-01BA03.pdf, page 8)
to perform low(20°) and very low(-15°C) temperature compensation.
2013-12-10 01:21:05 +01:00
Philippe Renon
617924e64d Merge remote-tracking branch 'origin/next' into filnet/OP-1122_gcs_waypoint_editor_stabilization
Conflicts:
	flight/uavobjects/uavobjectmanager.c
	ground/openpilotgcs/src/plugins/uavtalk/telemetrymanager.cpp
	ground/openpilotgcs/src/plugins/uavtalk/uavtalk.pro
	shared/uavobjectdefinition/pathaction.xml
	shared/uavobjectdefinition/waypoint.xml
2013-12-08 14:58:01 +01:00
Philippe Renon
95b5f38556 OP-1122 OP-1125 flight side UAVObjectManager was wrongly emitting EV_UPDATED_MANUAL events when new uavobject instances were created. Now properly emits EV_UPDATED. 2013-12-08 14:34:11 +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
981fc4321d removed requirement for non existing task 2013-12-08 10:32:24 +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
a4d53c18ac got rid of altholdsmoothed uavobject 2013-12-07 20:14:02 +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
Philippe Renon
4f9231e247 OP-1122 OP-1125 fixed regression in flight side uavtalk introduced in a recent commit 2013-12-04 20:54:07 +01:00
Philippe Renon
ab89d6a491 OP-1122 OP-1125 fixed defect raised in OPReview-593 : two occurences of connection->respObj clearing were removed when they should not have been removed 2013-12-01 21:44:14 +01:00
Philippe Renon
0dc334adea OP-1122 OP-1133 exposed send/request all instances of multi instance uav objects and made related uavtalk fixes 2013-12-01 19:25:44 +01:00
Corvus Corax
9c6abef89b fixed enabled and disabled messages for logging in all cases 2013-12-01 00:03:24 +01:00
Philippe Renon
390c88b92a OP-1122 OP-1125 uavtalk - object request messages are now acked only by object messages and acked object messages are acked only by ack messages 2013-11-29 02:51:46 +01:00
Philippe Renon
15c4392ed5 OP-1122 OP-1125 uavtalk - more OPReview-593 related cleanups 2013-11-29 01:21:45 +01:00
Philippe Renon
50a0a4f512 OP-1122 OP-1125 uavtalk - minor OPReview-593 related cleanups 2013-11-28 23:42:08 +01:00
Philippe Renon
2f0974fda9 OP-1122 OP-1125 uavtalk - fixed a number of issues concerning acked multi instance messages :
- all messages now systematically include an instance ID (fixes parsing of messages containing unknown object)
- added missing NACK of object request on fight side
- added more logging and warnings
- misc fixes and cleanups
this commit affects both the firmware and GCS (need to flash new version of firmware)
2013-11-28 01:14:29 +01:00
Corvus Corax
25fd3d5740 Just uncrustification 2013-11-26 00:43:02 +01:00
Fredrik Arvidsson
2fc34910e0 OP-1119 Fix in pios function for debuglogging uavo. 2013-11-26 00:36:59 +01:00
Corvus Corax
be9faabe92 Merge branch 'next' into corvuscorax/onboardlogging 2013-11-26 00:34:01 +01:00
Alessio Morale
bacc4d3d79 Merge branch 'master' into next
Conflicts:
	flight/targets/boards/oplinkmini/firmware/pios_board.c
	ground/openpilotgcs/copydata.pro
2013-11-25 01:12:10 +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
18ad56d4ed removed identical files from pios/posix (use files from common instead) 2013-11-24 15:40:32 +01:00
Corvus Corax
89afbde58a initialized log packages with 0xff instead of 0x0 to reduce flash wear 2013-11-24 15:36:26 +01:00
Corvus Corax
32b5ff22cf cleanup defect in OP-Review-586 2013-11-24 15:27:33 +01:00
Philippe Renon
1469277f96 OP-1122 OP-1125 removed dead code from fw uavtalk (first fw commit ;) 2013-11-23 14:59:24 +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
9414f3513f adapted telemetry stack sizes for flight firmware to include more space needed for logging feature 2013-11-17 22:39:39 +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
c6031ed963 fixed usr flash system definition 2013-11-17 21:03:08 +01:00
Corvus Corax
c7431623af changed hardware definition for revolution to have usr space in just one arena
(no flash garbage collection since used primarily for logging where there are no deletes)
2013-11-17 20:43:53 +01:00
Corvus Corax
fcc479f5cb more intelligent log interfacing, including flash formatting option 2013-11-17 20:14:50 +01:00
Corvus Corax
3d8625abaf Enabled logging on revolution (added module and uavobjects) 2013-11-17 18:50:51 +01:00
Corvus Corax
9dbac5d060 Enabled printf-stdarg on all targets, implemented vsnprintf() (needed for logging) 2013-11-17 18:49:50 +01:00
Corvus Corax
6031200aea Some fixes in debuglog to compile and run on all firmware platforms 2013-11-17 18:04:47 +01:00
Corvus Corax
243e261411 UAVObject logging through telemetry module and uavobjectmanager 2013-11-17 17:15:23 +01:00
Corvus Corax
d9a9536b61 modified uavobjectmanager to have accessor functions for the new flags 2013-11-17 14:53:08 +01:00
Corvus Corax
354ca88cd6 Updated UAVObject metadata to include correct flags needed for on board logging 2013-11-17 14:00:42 +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
adfbdfae38 Make use of (now supported) standard snprintf in stdarg-printf when used in logfs 2013-11-17 02:49:53 +01:00
Corvus Corax
320bbcf434 Made printf-stdarg check maximum string length limit (supports snprintf now) 2013-11-17 02:47:58 +01:00
Corvus Corax
314d526e94 corrected instance id encoding in filename to not conflict with metadata uavobject ids 2013-11-16 18:55:54 +01:00
Corvus Corax
00321b09dc Modified uavobjectmanager to only use logfs calls for UAVObject flash transactions, abstracted dosfs calls to use logfs wrapper class for simpiosix and SD-card access 2013-11-16 17:30:40 +01:00
Alessio Morale
b003109eea OP-1104: Update BL to version 6, raise to 0xA0000 so 640Kbyte program size.
+review OPReview
 #resolve
2013-11-05 19:07:36 +01:00
Corvus Corax
b3ebb91ceb uncrustification 2013-10-19 21:59:07 +02:00
Corvus Corax
86aa993d24 changed port increment tick function for new freertos 2013-10-18 23:07:23 +02:00
mathieu
fb1f58c94b Merge branch 'next' into Mathieu/OP-1079_Update_to_FreeRTOS_v7_5_2 2013-09-11 18:57:37 -07: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
Mathieu Rondonneau
03b243fe31 OP-1079 - Update to FreeRTOS v7.5.2 2013-09-04 20:26:23 -07: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
David
1a27b473d5 New CDC driver revsion 2013-08-17 04:04:22 +10: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
Brian Webb
5ac1f33c47 Adds missing pios_gpio_priv.h 2013-08-02 22:01:44 -07:00
Brian Webb
831aa2e213 Merge remote-tracking branch 'origin/next' into brian/GPIO_update 2013-08-02 17:45:06 -07:00
Alessio Morale
99dbecdd7d Merge remote-tracking branch 'origin/brian/OP-1050_Fix_OPLink_Erase_Settings' into rel-13.06.03 2013-08-01 21:28:37 +02: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
Alessio Morale
d99790be71 OP-1058: Implement explicit item accessor for MultiElement fields.
This implementation uses a union containing the Array implementing the MultiElement field data and a struct made from element names.
it allow to replace the following sintax:
  settings.PitchRatePID[STABILIZATIONSETTINGS_PITCHRATEPID_KP]
with a more concise and less error prone
  settings.PitchRatePID.fields.Kp
while allowing the direct array access using the notation
  settings.PitchRatePID.data[n]
2013-07-31 15:23:43 +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
Brian Webb
2340f4f0d9 OP-1050: Moves LED configuration above settings erase in OPLink pios_board.c to prevent crashing when settings are erased. 2013-07-29 20:37:00 -07: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
Corvus Corax
9537cac701 Merge branch 'next' into corvuscorax/callbackeventdispatcher2 2013-07-28 17:10:20 +02:00
Brian Webb
e246ecf536 Moves pios_led functionality to pios_gpio and makes pios_led a thin layer over pios_gpio. Supports configuring multiple sets of GPIOs. 2013-07-28 07:01:08 -07:00
Richard Flay (Hyper)
c3e3521001 OP-1049: Hotfix to 13.06.02 for MPU6000 FIFO overflow on CC3D when board initialisation takes
longer than 150ms.
2013-07-28 01:16:22 +09:30
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
0d02df4d02 Uncrustified OPLink code. 2013-07-05 18:49:26 -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
Brian Webb
d0d8a0aadd OP-932 Adds PWM outputs to OPLinkMini. Both gpio pins on the main and/or flexi port can be configured to output PWM for a total of up to 4 PWM outputs. 2013-07-03 18:58:34 -07:00
Corvus Corax
0107432e45 Added a low pass filter for accels to the altitude filter 2013-07-02 23:17:08 +02:00
Alessio Morale
89cb294218 OP-994 Move pios_architecture,h include in pios,h
+review OPReview-506
2013-07-02 19:26:39 +02:00
Brian Webb
c76ee7de9d OP-932 Fixes the failsafe that detects when the Rx modem loses sync with the Tx modem. This was not working on one-way mode. 2013-06-30 16:08:50 -07: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
Brian Webb
491e5fe685 Adds a failsafe on PPM output on OPLink that kicks in when the link goes down. Also updates all air datarate settings and adds new 64 and 100 kbps modes. 2013-06-29 15:00:38 -07: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
b19a74613a uncrustification 2013-06-28 19:20:39 +02:00
Corvus Corax
360e58abde eventdispatcher, limit event callback count fired in one go 2013-06-28 19:04:11 +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
bab69401b9 OP-932 Allows configuring the Revo as coordinator. 2013-06-27 19:55:01 -07:00
Brian Webb
6386b12026 OP-932 Fixes raw serial on UART and USB VCP. 2013-06-27 19:16:01 -07:00
Corvus Corax
f5b3318726 correct calculation of next scheduling 2013-06-27 20:37:37 +02:00
Corvus Corax
cd2cc821d6 made event dispatcher a callback 2013-06-27 18:51:35 +02:00
Brian Webb
d5f16faaec OP-932 Fixes the datarate used on PPM only mode, and fixes failsafe on PPM output on OPLM. 2013-06-26 20:11:39 -07:00
Brian Webb
caa8d3e70e OP-932 Forces one-way to be set when PPM only is configured. 2013-06-26 18:02:08 -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
b25ba75fd9 OP-932 Removed obsolete include of pios_rfm22b_rcvr from pios.h. 2013-06-26 18:00:22 -07:00
Brian Webb
44a0266e41 OP-932 Adds claiming of the SPI bus in the OPLink channel change function. 2013-06-26 18:00:02 -07:00
Brian Webb
56a60f2983 OP-932 Updates the 19.2 kbps datarate using the spreadsheet. 2013-06-26 17:59:49 -07:00
Brian Webb
61c453f6ff Removes several of the air datarate settings, and fine tunes the calculation of the max packet length from the datarate and packet time. 9600, 19200, 36400, and 57600 modes tested. Tested 19200 in one-way mode for PPM only. 2013-06-26 17:59:33 -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
cdd51537f1 Fixes the 9600 bps air datarate for the RFM33B modem. 2013-06-26 17:57:46 -07:00
Brian Webb
fc0328a3cd OP-932 Adds working one-way mode to the OPLink radio connection. In this mode, packets will only flow from the ground side (coordinator modem) to the flight side modem. 2013-06-26 17:57:32 -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
Brian Webb
12c8ef2e3a OP-932 Changes the UAVTalkRelayInputStream function to UAVTalkRelayPacket to allow for not relaying a packet on error, etc. Also adds a function to get the object ID out of the current packet (UAVTalkGetPacketObjId). These functions are used by the OPLink. 2013-06-26 17:56:40 -07:00
Brian Webb
08efc8d152 OP-932: Adds an oplink receiver device, which is based on the gcs receiver device, but uses the OPLinkReceiver UAVObject. The OPLinkReceiver packets are generated on the OPLink modem. 2013-06-26 17:56:20 -07:00
Brian Webb
7c10623615 OP-932 Adds a semaphore to PPM input to signal when a new frame has been received. This can be used to process a new frame with as low a latency as possible. 2013-06-26 17:56:10 -07:00
Brian Webb
ac75af55c1 OP-932 Moves the PIOS_PPM_OUT_Set function from pios_ppm_out_priv.h to pios_ppm_out.h 2013-06-26 17:55:56 -07:00
Corvus Corax
0c43346292 Merge branch 'corvuscorax/OP-947_stateestimator-module' into next
Thanks everyone for helping getting this together, especially Alessio
and DLite :-)
2013-06-25 23:48:12 +02:00