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

4717 Commits

Author SHA1 Message Date
Corvus Corax
08a627db6f Merge remote-tracking branch 'origin/Bertrand/OP-1314_Fix_Airspeed_Stack_Size' into next 2014-05-04 12:34:07 +02:00
Corvus Corax
4d9de8f56b Merge branch 'corvuscorax/OP-1309_Stabilization-Refactoring' into corvuscorax/OP-1259_Cruise_Control_Tweaks 2014-05-04 12:18:47 +02:00
Corvus Corax
d3bf817434 OP-1309 fix typo in stabilizedhandler (manualcontrol) for stabi flightmode 4-6 2014-05-04 12:17:34 +02:00
Corvus Corax
2b00cb31a4 Merge branch 'next' into corvuscorax/OP-1259_Cruise_Control_Tweaks 2014-05-04 12:12:51 +02:00
Corvus Corax
64d18c1a31 Merge branch 'corvuscorax/OP-1316_fix-gravity-constants' into next 2014-05-04 12:07:22 +02:00
Corvus Corax
aee6a3b85b Merge branch 'corvuscorax/OP-1309_Stabilization-Refactoring' into corvuscorax/OP-1259_Cruise_Control_Tweaks 2014-05-04 12:04:43 +02:00
Corvus Corax
fb41258e57 OP-1309 fixed missing assignment in manualcontrol FM switch 2014-05-04 12:03:56 +02:00
Corvus Corax
6b25c06a03 Merge branch 'corvuscorax/OP-1309_Stabilization-Refactoring' into corvuscorax/OP-1259_Cruise_Control_Tweaks 2014-05-04 11:39:34 +02:00
Corvus Corax
942b53a66b OP-1309 removed unnecessary NUMELEM run time check from sanitychecks and put it into manualcontrol.h as a compile time static assert 2014-05-04 11:38:10 +02:00
Corvus Corax
23654cf565 Merge branch 'next' into corvuscorax/OP-1259_Cruise_Control_Tweaks 2014-05-04 11:21:52 +02:00
Corvus Corax
5965a5a96e Merge branch 'corvuscorax/OP-1309_Stabilization-Refactoring' into corvuscorax/OP-1259_Cruise_Control_Tweaks 2014-05-04 11:21:23 +02:00
Corvus Corax
80468fda0b OP-1309 Updated sanitycheck to reflect new modes for flight side config validation 2014-05-04 11:19:58 +02:00
Corvus Corax
8ec8c4e235 Merge branch 'corvuscorax/OP-1309_Stabilization-Refactoring' into corvuscorax/OP-1259_Cruise_Control_Tweaks 2014-05-03 18:40:10 +02:00
Corvus Corax
0509595137 OP-1309 present for Laurent: 3 more Stabilized modes (and a bit of cleanup) 2014-05-03 18:38:45 +02:00
Corvus Corax
0d070a5857 Merge branch 'corvuscorax/OP-1309_Stabilization-Refactoring' into corvuscorax/OP-1259_Cruise_Control_Tweaks 2014-05-03 17:27:17 +02:00
Corvus Corax
69b5f41e58 OP-1309 correctly set StabilizationMode.Thrust in all other modules that set StabilizationDesired (Autotune,Pathfollowers) 2014-05-03 17:25:53 +02:00
Corvus Corax
e6a69c2f78 Merge branch 'corvuscorax/OP-1309_Stabilization-Refactoring' into corvuscorax/OP-1259_Cruise_Control_Tweaks 2014-05-03 15:59:03 +02:00
Corvus Corax
e95b25dca8 OP-1309 fixed missing thrust mode assignment in manualcontrol 2014-05-03 15:57:00 +02:00
Alessio Morale
19caa57dc6 OP-1312 fix copy/paste-naming issue 2014-05-03 11:45:30 +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
944f3f5d2f OP-1309 provide faster GyroState updates for more prompt response and less stabilization lag 2014-05-01 17:46:13 +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
0ea1ccf5c3 OP-1316 fix gravity constants 2014-05-01 15:50:02 +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
Andres
0973f1037f OP-1315 (re)added IS_REAL check for CalibratedAirspeed and for new calculated airspeed 2014-05-01 10:40:33 +02:00
Alessio Morale
3897106f4d OP-1312 remove boilerplate from config using macros.
Use four locations for ch1+update dma source to exploit fifo and memory read bursts
2014-05-01 10:33:44 +02:00
Corvus Corax
b6b03b767a Merge branch 'next' into corvuscorax/OP-1161_magnetometer-alarm
Conflicts:
	shared/uavobjectdefinition/revosettings.xml
	shared/uavobjectdefinition/systemalarms.xml
2014-05-01 10:26:53 +02:00
Corvus Corax
3ada1da71a uncrustify 2014-04-30 22:20:07 +02:00
Andres
49870ce7dc OP-1315 uncrustify 2014-04-30 18:45:04 +02:00
Andres
0d6e8c8efb OP-1315 changed error alarm in gps_airspeedGet for |v|<1 into a warning to allow arming. cos(5deg) exchanged by a constant expression. pow (x,2.0f) exchanged by a inline function based on multiplication. Deleted arispeedalarm.h and airspeedalarm.c and exchanged AirspeedAlarm() by a direct call to AlarmsSet(). 2014-04-30 18:39:35 +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
66f2f8e840 OP-1309 more performant implementation of boundf() 2014-04-29 19:55:34 +02:00
Corvus Corax
2f572995ac OP-1309 turned boundf() static inline as requested 2014-04-29 18:36:53 +02: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
Bertrand Oresve
333ccc7e42 OP-1314 Fix the Airspeed stack size 2014-04-27 22:42:54 +02:00
Alessio Morale
4cece04166 OP-1312 fix documentation, get rid of stale comments from previous implementations 2014-04-27 19:12:36 +02:00
Alessio Morale
58178ab193 OP-1312 Fixed led boundary check and framebuffer color order. 2014-04-27 19:11:28 +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
Alessio Morale
001ee66b06 Merge remote-tracking branch 'origin/amorale/OP-1235_fix_altitude_estimation' into next 2014-04-26 23:03:48 +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
Alessio Morale
c281420e25 OP-1307 Most(all?) F4Discovery has an "A" revision of STM32f4.
Disable prefetch to overcome the "Section 2.1.1: ART Accelerator prefetch queue instruction is not
supported" issue (DM00037591.pdf)
2014-04-26 22:14:47 +02:00
Alessio Morale
e75ed6a015 OP-1307 fix mispelling of usb product id 2014-04-26 21:55:25 +02:00
Alessio Morale
d42debba50 OP-1302 Remove the special case for Telemetry in Alarm.c and shut up the telemetry warning in telemetry.c when disconnected 2014-04-26 20:48:30 +02:00
Corvus Corax
77f2444fa4 OP-1309 renamed stabilization mode NONE to MANUAL 2014-04-26 20:33:25 +02:00
Alessio Morale
99f19dd809 OP-1312 Make WS2811 driver configurable.
Now output pin may be chosen among all servo outputs and Flexi-io pins 3 and 4 (they are not used for PWM input/output)
2014-04-26 19:48:44 +02:00
Alessio Morale
a0b857337f OP-1312 Add support for Revolution (right now always active on pin3). Configurability not yet added 2014-04-26 18:40:59 +02:00
Alessio Morale
28859d2305 OP-1312 Missing ifdefs on pios_board.c 2014-04-26 18:39:57 +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
Alessio Morale
db9435b5ed OP-1312 add a switch to include/exclude the driver 2014-04-26 17:28:49 +02:00
Alessio Morale
46f70a74c8 OP-1312 Initial version running on DiscoveryF4 2014-04-26 16:57:16 +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
Alessio Morale
0aa9ef4b57 OP-1307 Bare f4 discovery platform with no sensor, for development pourpose 2014-04-22 23:46:27 +02:00
Alessio Morale
ee91207ede OP-1302 simplify the code adding some pattern "tables" 2014-04-16 07:57:15 +02:00
Alessio Morale
f01cf66095 Merge remote-tracking branch 'origin/andrecillo/OP-1273_OP-1282_OP-1283_Diverse_Airspeedsensor_improvements' into next
Conflicts:
	ground/openpilotgcs/src/plugins/systemhealth/systemhealthgadgetwidget.cpp
2014-04-15 21:52:34 +02:00
Alessio Morale
eb1b27b2e4 Merge remote-tracking branch 'origin/Bertrand/OP-1288_Remove_PositionSource_from_VtolPathFollowerSettings' into next 2014-04-15 21:47:37 +02:00
Alessio Morale
82139a6e44 Merge remote-tracking branch 'origin/amorale/OP-1294_fix_stacks_heap_cc' into next 2014-04-15 21:46:26 +02:00
Alessio Morale
cbbb9ea9f7 Merge remote-tracking branch 'origin/Bertrand/OP-1056_Fix_TIMEUTC_valid_flags' into next 2014-04-15 21:45:07 +02:00
Alessio Morale
f9aa020de4 Merge remote-tracking branch 'origin/andrecillo/OP-1299_Autodetect_nbcells_battery' into next 2014-04-15 21:44:06 +02:00
Alessio Morale
5763ed3d8d OP-1235 make Initialization Acceldrift KI configurable 2014-04-14 10:58:46 +02:00
Alessio Morale
20508314f2 OP-1302 use pios_notify api to alert user of ongoing CF gyro calibration 2014-04-13 17:56:20 +02:00
Alessio Morale
299f388245 OP-1302 Add a stub pios_notify API for user interaction/notifications
right now all notifications produces the same output, the DRAW_ATTENTION sequence
2014-04-13 17:42:57 +02:00
Andres
adcd606e16 OP-1299 uncrustify. 2014-04-13 14:08:34 +02:00
Andres
944e39db07 OP-1299 Small changes proposed in review process. 2014-04-13 14:07:16 +02:00
Alessio Morale
132aa83dff OP-1302 Fix other targets 2014-04-13 12:38:07 +02:00
Alessio Morale
5d637fab87 OP-1302 move stuffs away from systemmod 2014-04-13 11:54:25 +02:00
Alessio Morale
9ebb66fbce OP-1302 filter out telemetry alarms 2014-04-12 22:00:26 +02:00
Alessio Morale
82c81fef6e OP-1302 make leds more "readable"
Show alarm and arming/flightmode in sequence
Alarm:
Warning = rP
Error = rrP
Critical = R

Heartbeat/flightmode:
disarmed = B
armed/Stabilization1 = bbP
armed/Stabilization2 = bbbP
armed/Stabilization3 = bbbbP
armed/AH/AVario/Velocitycontrol = bvP
armed/PH/Pathplanner/POI = bbvP
armed/Land/RTB = bbvvP

note:
r/b/v = short red/blue/both blink
R/B/V = long red/blue/both blink
p/P = short/long pause
2014-04-12 22:00:02 +02:00
Bertrand Oresve
80d7363dfa OP-1056 Fix the TIMEUTC valid flags (with Werner suggestion) 2014-04-12 11:48:18 +02:00
Bertrand Oresve
d70d8df272 OP-1056 Fix the TIMEUTC valid flags in GPS UBX protocol 2014-04-12 09:24:08 +02:00
Corvus Corax
988a732e79 Merge branch 'corvuscorax/OP-1296_barometer-initialization-fix_nextbased' into next 2014-04-10 20:23:21 +02:00
Corvus Corax
661bea2372 OP-1296 - some explicit const declarations in stateestimation 2014-04-10 20:17:01 +02:00
Andres
598a48a2d9 OP-1299 Added autodetect battery cell number before arming. Tested for LiPo from 2S to 6S. Over 6S counting is not possible for LiPo. Should work for LiCo too. LiFePo works only for 1S or 2S. I was not able to find values for LiFeSO4. FlightBatteryState has now two new fields: NbCells and NbCellsAutodetected, which register the autodetection. FlightBatteryState.NbCells should be used instead of FlightBatterySettings.NbCells now, when the number of cells in needed. FlightBatterySettings.NbCells is used by the user to prescribe a cell number or if equal to zero to ask for autodetection. 2014-04-10 17:28:48 +02:00
Alessio Morale
1fe591d51e OP-975 change BoardRotation data type to float so it can be used for level calibration 2014-04-10 01:47:37 +02:00
Philippe Renon
3b7b06aad0 Merge branch 'next' of ssh://git.openpilot.org/OpenPilot into next 2014-04-09 09:11:54 +02:00
Philippe Renon
c8397ee0b8 Merge remote-tracking branch 'origin/filnet/OP-1033_fw_usb_cleanups' into next 2014-04-09 09:08:09 +02:00
Philippe Renon
1b356341c7 OP-1033 pios_rfm22b.c will not be messed up by uncrustify anymore :) 2014-04-09 09:06:18 +02:00
Philippe Renon
ec1ecc020e OP-1033 attempt at fixing the f1 usb buffer configuration (current configuration has overlapping buffer that cause tx errors) 2014-04-08 21:51:11 +02:00
Alessio Morale
8eeb3217bf OP-975/OP-1068 replace simple scaling with a calibration matrix for magnetometer correction 2014-04-08 21:22:09 +02:00
Alessio Morale
4764186a5f OP-1235 cleanup "magic numbers" 2014-04-08 20:51:16 +02:00
Corvus Corax
cb16cf04e1 Merge branch next into 'corvuscorax/OP-1296_barometer-initialization-fix' 2014-04-08 19:26:43 +02:00
Corvus Corax
011c598793 OP-1296 only use GPS in filterchains when explicitly requested
disallow arming when GPS is needed for initialization until lock is acquired
2014-04-08 18:31:11 +02:00
Corvus Corax
73bc088ad5 OP-1298 fix for metadata being overwritten on multiinstance object initialization 2014-04-08 16:26:27 +02:00
Alessio Morale
6d1fabdd5f OP-1294 declare controlHandler as const, add a new PIOS_EXCLUDE_ADVANCED_FEATURES that disables all nav features 2014-04-08 00:30:10 +02:00
Alessio Morale
b9d911c40f OP-1294 eventdipatcher stack can be further reduced 2014-04-07 00:32:34 +02:00
Alessio Morale
1aefc61bc4 OP-1294 Resize stack for CallbackScheduler. 2014-04-07 00:31:48 +02:00
Alessio Morale
492275bf0e OP-1294 Fix undeclared STACK_SIZE_BYTES for revo 2014-04-06 19:26:48 +02:00
Alessio Morale
25ef201445 OP-1294 adjust FreeRTOS options to save some more heap 2014-04-06 19:19:48 +02:00
Alessio Morale
499efdf168 OP-1294 adjust some stack sizes for CC 2014-04-06 19:19:48 +02:00
Alessio Morale
eed5c098ab OP-1294 Allow to specify different stack sizes for rx and tx telemetry task. 2014-04-06 19:19:44 +02:00
Corvus Corax
9a52f506ef drive-by bugfix in Fixedwingpathfollower 2014-04-06 15:38:22 +02:00
Corvus Corax
e18f2e6d7e OP1290 Systemalarms optimizations as suggested by OPReview-689 2014-04-06 12:46:27 +02:00