Commit Graph

4097 Commits

Author SHA1 Message Date
Andrew Tridgell
ff5ddde905 AP_Menu: zero buffer contents on allocation 2013-11-23 17:04:54 +09:00
Andrew Tridgell
a24e3b555e AP_Menu: dynamically allocate the menu buffers
this saves memory when the menus are not used, and allows for the
commandline and argument limits to be changed
2013-11-23 17:04:52 +09:00
Andrew Tridgell
01a32d0632 AP_GPS: try harder to get 5Hz updates from a uBlox
check for getting at least one 5Hz update every 15s
2013-11-23 17:04:48 +09:00
Andrew Tridgell
522f248b63 AP_AHRS: lower default roll and yaw drift correction speed
the gyros sustain accuracy over much longer time periods than
previously expected
2013-11-23 17:04:46 +09:00
Andrew Tridgell
97d8007b08 HAL_PX4: don't check USB for data if not connected 2013-11-23 17:04:44 +09:00
Andrew Tridgell
9f36acbb92 HAL_PX4: switch to delay_microseconds_semaphore() for UART timer
this may prevent some timing jitter on the GPS UARTs
2013-11-23 17:04:43 +09:00
Andrew Tridgell
e2991c0f35 DataFlash: added APM time and GPS velz to logged GPS messages 2013-11-23 17:04:36 +09:00
Andrew Tridgell
fea10c3b97 AP_TECS: added time to TECS messages 2013-11-23 17:04:35 +09:00
Andrew Tridgell
c18d1da019 AP_L1_Control: reduced demanded bank angle by cos(pitch)
this prevents attempts to do too tight turns while at a steep pitch

Pair-Programmed-With: Paul Riseborough <p_riseborough@live.com.au>
2013-11-23 17:04:30 +09:00
Andrew Tridgell
ffde756d7e APM_Control: reduce roll compensation in pitch controller by cos(pitch)
This reduces the use of the pitch compensation when in a steep climb
or dive

Pair-Programmed-With: Paul Riseborough <p_riseborough@live.com.au>
2013-11-23 17:04:28 +09:00
Andrew Tridgell
b22ce9843a DataFlash: added timestamp to IMU and VelZ to GPS logging
both are very useful for analysis
2013-11-23 17:04:27 +09:00
Andrew Tridgell
92a52f5e4a AP_AHRS: added accel sum delay buffer to account for GPS lag 2013-11-23 17:04:25 +09:00
Andrew Tridgell
f0d5cde9cf AP_InertialNav: update for AHRS API changes 2013-11-23 17:04:17 +09:00
Andrew Tridgell
fc920df8d4 AP_InertialSensor: use const reference returns
saves some vector copies
2013-11-23 17:04:16 +09:00
Andrew Tridgell
a18582673d AP_TECS: update for AHRS API change 2013-11-23 17:04:14 +09:00
Andrew Tridgell
14d2453216 DataFlash: use const ins reference
save some pointer dereferences
2013-11-23 17:04:13 +09:00
Andrew Tridgell
b258a63b8c AP_YawController: update for AHRS API change 2013-11-23 17:04:11 +09:00
Andrew Tridgell
41d0fda92c AC_Fence: update for AHRS API changes 2013-11-23 17:04:09 +09:00
Andrew Tridgell
3004ed9c41 AP_AHRS: save memory and reduce pointer references
use a refence for ins, and don't save gyro and accel between updates
2013-11-23 17:04:08 +09:00
Andrew Tridgell
a69ecfa06b AP_AHRS: removed limit on normalisation of accel reference vectors
this could lead to a bias in the accel drift correction
2013-11-23 17:04:06 +09:00
Andrew Tridgell
f9c72f9dbf AP_AHRS: removed vertical G limit on GPS velocity correction
this limit could lead to a bias in the accel drift correction, and is
frequenctly exceeded
2013-11-23 17:04:05 +09:00
Andrew Tridgell
820ec465c7 AP_AHRS: fixed wrapping bug in GPS based heading error
this bug could cause the GPS based yaw to use an expensive reset far
too often
2013-11-23 17:04:03 +09:00
Andrew Tridgell
1c9dfb9b8a AP_AHRS: prevent GPS yaw resets on compass errors
when we switch from compass heading to GPS heading we don't want to
trigger a sudden GPS yaw reset
2013-11-23 17:04:01 +09:00
Andrew Tridgell
81ddab4ea8 AP_Notify: make APM2 ToshibaLED driver more efficient
use one I2C transfer, not 3
2013-11-23 17:04:00 +09:00
Robert Lefebvre
05397bc024 TradHeli: Change user description for COLYAW parameter. 2013-11-23 17:03:57 +09:00
Jason Short
b9a4a7e0bf InertialNav: fix for get_velocity_xy
forgot to sq
2013-11-23 17:03:52 +09:00
Jason Short
55b22f8635 InertialNav: added get_velocity_xy 2013-11-23 17:03:39 +09:00
Paul Riseborough
e3a96094ca AP_Airspeed : Fixes bug that caused airspeed calibration to be sent a zero airspeed
This bug resulted in the airspeed ratio going to the maximum value of 4 and staying there. This could lead to a very slow flying model and a stall.
2013-11-23 17:03:33 +09:00
Andrew Tridgell
3e6a17a89f AP_InertialSensor: SITL doesn't use Oilpan code any more 2013-11-23 17:03:29 +09:00
Randy Mackay
b98f11d819 RC_Channel: formatting 2013-11-23 17:03:14 +09:00
Randy Mackay
2240bb80d1 Copter: correct @Range of MOT_TCRV_MAXPCT parameter 2013-11-23 17:03:10 +09:00
Andrew Tridgell
d4af757cbb AP_Airspeed: fixed I2C semaphore handling for I2C airspeed
this affects MS4525DO on APM2
2013-11-23 17:03:04 +09:00
Randy Mackay
c6a6fb29df BattMonitor: add @Increment to CAPACITY description 2013-11-23 17:02:57 +09:00
Randy Mackay
e596bbe147 BoardLEDs: all leds off during init 2013-11-23 17:02:55 +09:00
Andrew Tridgell
3b72741e15 HAL_AVR: switch back to 500kHz SPI for MPU6k until we understand the issues
this is for new plane release. We need for analysis before we can
re-enable high speed SPI
2013-11-23 17:02:48 +09:00
Andrew Tridgell
7c4067e154 HAL_PX4: prevent excessive writes on startup from blocking
this could cause copter on PX4 to hang on startup
2013-11-23 17:02:44 +09:00
Randy Mackay
7157a44fdb AC_Fence: fix example sketch 2013-11-23 17:02:36 +09:00
Andrew Tridgell
d4fdead45a AP_InertialNav: fixed example build 2013-11-23 17:02:35 +09:00
Randy Mackay
e563a236ab AP_InertialNav: remove unused velocity fns
remove get_longitude_velocity and get_latitude_velocity
2013-11-23 17:02:33 +09:00
Randy Mackay
bf062cc4bb AP_InertialNav: add comments, make ahrs const from neurocopter
These fixes are provided by neurocopter but with my name because of
merge conflicts
_position and _velocity vectors added to save some floating point add
operations
unused reference to ins in constructor removed
2013-11-23 17:02:30 +09:00
Tobias
c34de8d9ad AP_Buffer: remove header/source separation to allow arbitrary template
parameters without explicit instantiation in the cpp file.

http://stackoverflow.com/questions/495021/why-can-templates-only-be-implemented-in-the-header-file
2013-11-23 17:02:27 +09:00
Randy Mackay
16baa7557c AP_InertialNav: bug fix for gps delay handling 2013-11-23 17:02:25 +09:00
Tobias
01074f9839 AP_InertialNav: rename AP_Buffer functions, fix delay handling bug
The most recent value was used instead of the intended historical value
as indicated by the comment.
2013-11-23 17:02:24 +09:00
Tobias
a809d57e4b AP_Buffer: add comments and rename functions to conform with the
STL-container naming conventions
Comment format changes by Randy
2013-11-23 17:02:22 +09:00
Tobias
a19093b1c4 AP_InertialNav: move variable definitions to elide unused default
construction of objects (saves 106 bytes)
2013-11-23 17:02:21 +09:00
Tobias
ec72095fc2 AC_WPNav: make more member pointers const 2013-11-23 17:02:19 +09:00
Tobias
de9778ae1c AC_WPNav: make member pointer to AP_InertialNav object const since it's
never modified
2013-11-23 17:02:17 +09:00
Tobias
7377d4a5f1 AC_Fence: replace "_ina->geT_position().z" with more efficent
"_inav->get_altitude()"
2013-11-23 17:02:16 +09:00
Tobias
89173656c5 AC_Fence: make member pointer to AP_InertialNav const, remove unused
gps-pointer member
2013-11-23 17:02:14 +09:00
Randy Mackay
3e9e0f82aa AC_Sprayer: add doxygen info 2013-11-23 17:02:11 +09:00