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

4832 Commits

Author SHA1 Message Date
Alessio Morale
16cb081f5c OP-1365 Flight code instrumentation API: Sample use of instrumentation in Atittude module.
When instrumentation is enabled at board level (pios_board.h, enable PIOS_INCLUDE_INSTRUMENTATION) PIOS_INSTRUMENT_MODULE setups the module to be instrumented.
2014-06-10 21:38:12 +02:00
Alessio Morale
8ba5741f99 OP-1365 Flight code instrumentation API: Add some helper macros to simplify the addition of instrumentation code to a module.
Note: Look at next commit for an example use case.
2014-06-10 21:34:33 +02:00
Alessio Morale
698d132f9c OP-1365 Flight code instrumentation API: Changed API to use handlers (opaque pointers) to counter struct instead of an index, fix Search function, create does check if coutner exists and return existing handler 2014-06-10 21:24:28 +02:00
Alessio Morale
07d2e27276 OP-1274: Update to FreeRTOS 8.0.1 2014-06-10 19:42:11 +02:00
Alessio Morale
ee8ffed465 OP-1274: Force 8 bytes alignment for RTOS structures while using 4 bytes alignment for the remaining memory allocation operations to save RAM 2014-06-10 19:10:37 +02:00
Corvus Corax
f89557c045 OP-1287 improved deadband implementation to be jump-free 2014-06-10 09:59:37 +02:00
Alessio Morale
92b48b09ff OP-1227 Fix high CPU usage: remove oversample buffer calculation in several part of pios_adc all over the code. 2014-06-09 19:28:22 +02:00
Alessio Morale
de5aed6864 OP-1227 Fix high CPU usage: Disable Instrumentation 2014-06-09 16:29:53 +02:00
Alessio Morale
8710ff4070 OP-1227 Fix high CPU usage: Some minor to Actuator module. 2014-06-08 22:39:16 +02:00
Alessio Morale
52c1d69c19 OP-1227 Fix high CPU usage: Change gyro oversampling to 46 (400Hz update rate) to lessen the cpu load and jitter due accel rate mismatch 2014-06-08 22:14:06 +02:00
Alessio Morale
7acb0ad385 OP-1227 Fix high CPU usage: Apply missing parenthesis to prevent a fdiv for temp calculatin 2014-06-08 22:02:10 +02:00
Alessio Morale
a9f1d55fea OP-1227 Fix high CPU usage: Optimize Memory usage in ADC driver.
- performs undersampling in two steps operating with a half buffer at time;
- Skip costly undersampling for Temperature channel;
- some optimizations to the downsample loops;
- apply compiler speed optimization to PIOS_ADC_downsample_data()
2014-06-08 22:01:05 +02:00
Alessio Morale
843987484b OP-1227 Fix high CPU usage: Avoid several float division in Attitude module, change optimization for attitude estimation function 2014-06-08 21:48:35 +02:00
Alessio Morale
d51b7ce2d4 OP-1227 Fix high CPU usage: Changes to attitude module:
- changed Expected rate to 500 (it was erroneously defined as 666Hz)
- use the optimized api to fetch accel samples
2014-06-08 21:47:00 +02:00
Alessio Morale
a0d68c6afb OP-1227 Fix high CPU usage: Reduce Accel rate to 1600Hz, optimize sample reading, explicitly set bus speed
Note: Counter 0xA3450001 is the time it takes to transfer the requested number of samples
2014-06-08 21:33:18 +02:00
Alessio Morale
c9d97639b0 OP-1302 Renable Idle Hook in CC/CC3D 2014-06-08 20:33:35 +02:00
Corvus Corax
a19ebfec14 OP-1287 separate stick response setting for vertical and horizontal in PositionVario/AutoCruise modes 2014-06-07 23:06:11 +02:00
Alessio Morale
197d381937 OP-1365 Flight code instrumentation API: Add helper function to track mean period between its calls 2014-06-07 18:11:34 +02:00
Alessio Morale
eb35803b5b OP-1365 Flight code instrumentation API: Add support for Revolution 2014-06-07 17:44:27 +02:00
Alessio Morale
11d0bbf5f8 OP-1365 Flight code instrumentation API: Use systemMod to publish counters 2014-06-07 17:43:36 +02:00
Alessio Morale
e8a3706351 OP-1365 Flight code instrumentation API: Fix wrapper not publishing last counter 2014-06-07 17:33:37 +02:00
Corvus Corax
c3d20e72b9 OP-1287 made velocity calculation implicit in pathfollower based on distance only 2014-06-07 16:30:39 +02:00
Corvus Corax
8f9b5b2282 OP-1287 fix to lower speed limit in autocruise do not allow absolute zero speed to not loose direction 2014-06-07 16:16:55 +02:00
Corvus Corax
090db92e8a OP-1287 removed waypoint start position from positionvario logic in favor of static variable 2014-06-07 16:07:20 +02:00
Alessio Morale
08e4ec7fd3 OP-1365 Flight code instrumentation API: Fix wrapper documentation/headers 2014-06-07 15:45:27 +02:00
Corvus Corax
ae8c22280b OP-1287 fixed handling of pitch and throttle channels from manualcontrolcommand 2014-06-07 15:31:38 +02:00
Alessio Morale
9db264a457 OP-1365 Flight code instrumentation API: Add CopterControl support 2014-06-07 00:47:06 +02:00
Alessio Morale
1c92edb18b OP-1365 Flight code instrumentation API: Fix min/max handling 2014-06-06 22:38:49 +02:00
Alessio Morale
5e9d107c0b OP-1365 Flight code instrumentation API: Add support to DiscoveryF4bare target 2014-06-06 22:23:02 +02:00
Alessio Morale
2396350f2f OP-1365 Flight code instrumentation API: Implementation of UAVObject wrapper layer 2014-06-06 22:19:27 +02:00
Alessio Morale
520e721bdd OP-1365 Flight code instrumentation API: PiOS Implementation 2014-06-06 22:15:18 +02:00
Corvus Corax
070672e0f0 OP-1287 changed deadband behaviour to be more consistent 2014-06-04 23:22:04 +02:00
Corvus Corax
89472196d1 OP-1287 implemented new flightmodes in plan.c 2014-06-04 16:52:39 +02:00
Corvus Corax
de7e0d0781 OP-1287 added handler definitions for new flightmodes 2014-06-04 10:29:45 +02:00
Corvus Corax
07667027ee OP-1287 added autocruise mode too to manualcontrol 2014-06-04 10:23:59 +02:00
Corvus Corax
2260f5dacc OP-1287 added autocruise mode, too 2014-06-04 10:23:37 +02:00
Corvus Corax
ec5052bdba OP-1287 added new flightmodes to manualcontrol.c 2014-06-04 10:04:40 +02:00
Corvus Corax
86441169de OP-1287 added new flightmodes to sanity checks 2014-06-04 10:02:19 +02:00
Corvus Corax
f0c4b8f9c7 OP-1287 renamed VELOCITYCONTROL back to AltitudeVario for consistency 2014-06-03 18:42:54 +02:00
Corvus Corax
aa6c5f9d15 OP-1363 cleanups to sanitychecks 2014-06-01 20:28:38 +02:00
Corvus Corax
63b08ec129 OP-1363 check for navigation enabled (outdoor) fusion algorithm if any flightmode is configured to use a path follower 2014-06-01 12:17:42 +02:00
Corvus Corax
5bfb57e081 Merge branch 'next' into amorale/OP-1355_fix_mag_board_rotation_issue 2014-05-26 17:19:56 +02:00
Corvus Corax
c6e168c972 Merge branch 'next' into corvuscorax/OP-1352_Headwind-improvements 2014-05-26 17:17:43 +02:00
Corvus Corax
bf16738fd3 Merge branch 'next' into amorale/OP-1350_takeoff_location_handling 2014-05-26 17:16:47 +02:00
Corvus Corax
76f83fc131 OP-1352 some cosmetic cleanups, explicitly marked float constants as type float 2014-05-25 13:27:38 +02:00
Alessio Morale
3d67b7567e OP-1355 Fix Mag scaling being calculated after applying board rotation. 2014-05-25 11:28:43 +02:00
Alessio Morale
b2ecf23a07 OP-1350 simposix build fixes :( fix altitude calculation for RTB 2014-05-19 22:21:32 +02:00
Alessio Morale
3db6c3c86b OP-1350 fix build for revoproto and discoveryf4 2014-05-19 21:15:17 +02:00
Alessio Morale
92bf876654 OP-1350 refactor into a plans library all functions dealing with initialization and execution of PathFollower/pathplanner commands for manualcontrol 2014-05-19 18:35:18 +02:00
Alessio Morale
070eccbf1f OP-1274 reenable idle hook for new led handling 2014-05-18 23:43:49 +02:00
Alessio Morale
5e83374af4 OP-1274 fixes for DiscoveryF4Bare target 2014-05-18 23:43:14 +02:00
Alessio Morale
4296b21025 OP-1274 looks like excluding vTaskSuspend does not cope with "strict" compilation options 2014-05-18 22:57:16 +02:00
Alessio Morale
af8fe1f921 OP-1274 Fixes for Simposix 2014-05-18 22:56:57 +02:00
Alessio Morale
3ec8c18fad OP-1274 fixes for RevoProto 2014-05-18 22:56:54 +02:00
Alessio Morale
99540d5db5 OP-1274 fixes for OSD 2014-05-18 22:56:51 +02:00
Alessio Morale
36e304f579 OP-1274 fixes for revolution 2014-05-18 22:56:48 +02:00
Alessio Morale
e9fff2b6fa OP-1274 fixes for OPLink 2014-05-18 22:56:44 +02:00
Alessio Morale
be5cc66bd3 OP-1274 fixes for Coptercontrol firmware 2014-05-18 22:56:29 +02:00
Alessio Morale
921abb5131 OP-1274 update freertos files. Architecture specific files are left into their original FreeRTOS folder structure 2014-05-18 22:53:23 +02:00
Alessio Morale
d88d73e7fe OP-1350 Make RTB safer pick the lowest between PositionState.Down and TakeOffLocation.Down. 2014-05-18 14:41:45 +02:00
Corvus Corax
5153806289 OP-1352 cleaned up some code comments 2014-05-17 23:27:30 +02:00
Corvus Corax
5544e9c984 OP-1352 redesigned course calculation to take complete wind vector into account 2014-05-17 22:02:04 +02:00
Corvus Corax
2357ee1774 hotfix: allow arming in Stabilized 4,5,6 2014-05-16 23:39:36 +02:00
Alessio Morale
2048440053 OP-1350 fix a review defect(a set intead of TakeOffLocationStatusGetget). Check if status is valid beside locationSet 2014-05-16 23:32:11 +02:00
Alessio Morale
f3df459278 OP-1350 remove checks for valid TakeOffLocation. It is already handled in takeoffLocationHandler 2014-05-16 21:56:44 +02:00
Alessio Morale
ffa5e66d8b OP-1350 fix a bug that overwrite TakeOffLocation when changing mode to preset after an arming sequence. cleanup and get rid of "pending" status 2014-05-16 21:53:05 +02:00
Corvus Corax
9306cbc7c5 OP-1352 Headwind-improvements for FixedWingPathFollower 2014-05-16 20:20:40 +02:00
Alessio Morale
80bd04075f OP-1350 Rename ReturnToHomeAltitudeOffset to ReturnToBaseAltitudeOffset 2014-05-16 18:51:04 +02:00
Alessio Morale
edba1bc71d OP-1350 split Init function out of Handler, added missing UAVO initalize, cleanup code 2014-05-16 18:31:49 +02:00
Alessio Morale
8dcee11cb8 OP-1350 change destination for ReturnToBase to takeoffLocation 2014-05-16 12:38:18 +02:00
Alessio Morale
9ec21d2ade OP-1350 fix simposix target 2014-05-16 02:30:17 +02:00
Alessio Morale
063ae8afe0 OP-1350 add a TakeOffLocation Handler to manualcontrol 2014-05-16 02:28:12 +02:00
Alessio Morale
52892aa7d8 OP-1350 add uavo to DiscoveryF4Bare 2014-05-16 02:19:52 +02:00
Alessio Morale
86b0829823 OP-1350 Add takeofflocation UAVO 2014-05-16 00:40:19 +02:00
Alessio Morale
58bba31c72 Merge remote-tracking branch 'origin/amorale/OP-1312_pios_ws2811_driver' into next 2014-05-15 20:30:43 +02:00
Alessio Morale
e082fbc04e Merge remote-tracking branch 'origin/amorale/OP-1330_cannot_set_homelocation.set_false' into next 2014-05-15 20:30:32 +02:00
Alessio Morale
7182fe0194 Merge remote-tracking branch 'origin/amorale/OP-1329_airspeed_fixes' into next 2014-05-15 20:30:10 +02:00
Corvus Corax
065a632123 Merge branch 'corvuscorax/OP-1325_Event-System-Error-Alarm' into next 2014-05-15 00:13:20 +02:00
Alessio Morale
47976312c2 OP-1330 reset Home Set delay timer if Set==true 2014-05-12 22:56:28 +02:00
Alessio Morale
8bbb56337b OP-1312 keep pulse timings low to have more margin to handle bus contentions and irq response time. 2014-05-11 18:57:06 +02:00
Alessio Morale
953b7cc2a7 OP-1330 Fix a compilation issue with CC/CC3D 2014-05-11 12:37:20 +02:00
Alessio Morale
3c5a41049b Merge branch 'amorale/OP-1302_updated_led_behaviour' into next 2014-05-11 12:01:53 +02:00
Alessio Morale
45efaffcf1 OP-1330 fix namings/uncrustify 2014-05-11 11:38:08 +02:00
Alessio Morale
7155805b79 OP-1329 Move gps airspeed initialization checks under "sensor changed" test 2014-05-11 11:33:11 +02:00
Alessio Morale
711c5ea79d OP-1312 Fixes the flicker issue in Revo. Raised the Transfer complete irq priotity to prevent delays stopping the timer. 2014-05-11 10:43:24 +02:00
Corvus Corax
6e6c66d270 Merge branch 'next' into corvuscorax/OP-1161_magnetometer-alarm 2014-05-08 23:21:39 +02:00
Corvus Corax
d916fa5aad uncrustification 2014-05-08 23:18:38 +02:00
Corvus Corax
47a891e594 OP-1325 fix event system warnings to be errors 2014-05-08 23:05:55 +02:00
Alessio Morale
7a85c0939c Merge branch 'amorale/OP-975_calibration_process_changes' into next 2014-05-08 22:56:16 +02:00
Alessio Morale
16df6bc58c Merge branch 'amorale/OP-1307_discovery_f4_bare' into next 2014-05-08 22:56:03 +02:00
Bertrand Oresve
743cf4e4b5 OP-1308 Merge with next (conflict with stabilization) 2014-05-08 22:33:45 +02:00
Alessio Morale
94beebc3d0 OP-1302 Fixes for current next. Show flightmode everytime it changes when disarmed 2014-05-08 22:27:55 +02:00
Alessio Morale
e5d6726bb6 Merge remote-tracking branch 'origin/next' into amorale/OP-1302_updated_led_behaviour 2014-05-08 22:27:08 +02:00
Bertrand Oresve
fd1b786868 Merge branch 'next'
Conflicts:
	flight/libraries/sanitycheck.c
	flight/modules/Stabilization/stabilization.c
2014-05-08 21:36:54 +02:00
Corvus Corax
b7f479cd68 Merge branch 'corvuscorax/OP-1309_Stabilization-Refactoring' into next 2014-05-08 21:05:26 +02:00
Alessio Morale
3a451c9737 OP-1329 Trigger a SensorType change the first time Task runs to set AirspeedSensor UAVO when sensor is None 2014-05-08 19:58:42 +02:00
Alessio Morale
08dcdefc1f OP-1329 set SensorConnected to false when sensorType is changed to none. 2014-05-08 19:48:30 +02:00
Corvus Corax
16c46458ef Merge branch 'corvuscorax/OP-1332_fix-alarm-gracetime-issue' into corvuscorax/OP-1161_magnetometer-alarm 2014-05-08 00:01:02 +02:00
Corvus Corax
3a2b5d6332 OP-1332 fix problem in alarm handling where alarms are unable to reset on their own 2014-05-07 23:50:39 +02:00
Corvus Corax
1add404d80 OP-1161 reimplemented magnetometer plausibikity check using vector
length only
2014-05-07 23:47:14 +02:00