Commit Graph

39560 Commits

Author SHA1 Message Date
Andrew Tridgell 2962211ea0 HAL_ChibiOS: changed optimisation of higher end boards to -O2
-O3 does not seem to be a win, and takes up a lot more flash
2019-10-01 08:33:13 +10:00
Andrew Tridgell 560a1bf9e0 HAL_ChibiOS: disable DMA for RCIN on Pixracer
this frees up DMA for USART1_RX, which gives DMA for input over the
SERIAL5 WiFi port, which is important for applications where a
pixracer is being fed vision data over WiFi
2019-10-01 08:32:56 +10:00
Mark Whitehorn cf348c7512 IO_Firmware: update binaries (gcc version 6.3.1 20170620... 6-2017-q2-update) 2019-10-01 08:32:11 +10:00
Mark Whitehorn eb620f0792 AP_IOMCU: fix IO fast channel mask 2019-10-01 08:32:03 +10:00
Mark Whitehorn 2034bde367 HAL_ChibiOS: fix FMU fast_channel_mask
fix IO fast channel mask
use IOMCU chmask to only set right channels
remove unused variable
2019-10-01 08:32:00 +10:00
Andrew Tridgell 4c22633c60 AP_GPS: fixed a bug in handling corrupt u-blox packets
when we have corrupt input due to loss of bytes on a UART we can end
up with a u-blox packet with zero payload bytes. When that happens we
need to bypass payload reading as otherwise we will end up keeping
reading bytes until the driver resets at 4 seconds, causing a GPS
outage.

This was causing GPS outages every few hours in copters running 3.6.7,
and was also reproduced in SITL using SIM_GPS_BYTELOSS.
2019-10-01 08:31:20 +10:00
Andrew Tridgell 9473c7c0e5 Plane: prepare for 4.0.0beta2 release 2019-09-24 08:43:34 +10:00
Andrew Tridgell a5bb67bf42 Plane: updated release notes for 4.0.0beta2 2019-09-24 08:39:24 +10:00
Henry Wurzburg 6108c5b5ab AP_OSD: Add autoranging to current and speed displays 2019-09-22 21:11:06 +10:00
Andrew Tridgell a9d441981b Plane: fixed height_above_ground() for case when rangefinder is below min
this prevents a rangefinder that goes below min distance from causing
the calculations that depend on height above ground to fail
2019-09-22 21:10:32 +10:00
Andrew Tridgell 7bf78a8741 Plane: prevent fwd motor from spinning up on ground in quadplane landing
if the rangefinder starts to measure below it's min range then the fwd
motor can spin up.

Thanks to Josh for reporting this!
2019-09-22 21:10:29 +10:00
Randy Mackay 1433741cc9 AP_Proximity: fix rangefinder backends cm to m conversion 2019-09-22 21:09:38 +10:00
Peter Barker 784edac137 AP_NavEKF2: correct return of empty prearm string 2019-09-22 21:09:11 +10:00
Peter Barker 6693610c7a AP_NavEKF3: correct return of empty prearm string 2019-09-22 21:09:04 +10:00
Andrew Tridgell 2bebe8f916 SITL: added SIM_LOOP_DELAY parameter
this allows us to test high CPU load conditions by adding a delay to
each loop
2019-09-22 21:08:38 +10:00
Andrew Tridgell ae4bcf0f6f AP_Scheduler: cope with high CPU load by stretching loop times
this adds an extra budget of time per loop when we are not achieving
scheduled tasks at a rate of at least 1/8 of the desired rate. This
fixes an issue where a vehicle can become uncontrollable if the user
asks for a SCHED_LOOP_RATE which is not achievable. As these events
happen we add extra loop budget until we are able to run all tasks. We
drop the extra time when the CPU pressure eases.
2019-09-22 21:08:34 +10:00
Andrew Tridgell d916c31575 AP_Logger: added logging of extra loop time from the scheduler 2019-09-22 21:08:27 +10:00
Lucas De Marchi 1eb2dc2b2f AP_RangeFinder: add missing overrides 2019-09-22 21:08:14 +10:00
Lucas De Marchi 575200f8c7 AP_RangeFinder: fix build 2019-09-22 21:08:11 +10:00
Andrew Tridgell 62c3fec45c HAL_ChibiOS: fixes from LGTM errors 2019-09-22 21:07:54 +10:00
Andrew Tridgell f6b28f3013 HAL_ChibiOS: fixed delay for OneShot125 channels
we were delaying output for OneShot125 by 8x as much as we need to,
which reduced our max loop rate
2019-09-22 21:07:49 +10:00
Andrew Tridgell b07e95aab0 Tools: use --track-origins=yes in valgrind for sim_vehicle.py
this allows us to find the original cause of an uninitialised variable
2019-09-22 21:07:43 +10:00
Andrew Tridgell 372eca7dad AP_NavEKF3: fixed use of uninitialised variable in EKF3 mag fusion
not all elements of H_MAG are initialised, but they are used, as found
by valgrind
2019-09-22 21:07:38 +10:00
Andrew Tridgell 3084a15221 Plane: prepare for 4.0.0beta1 release 2019-09-16 12:56:50 +10:00
Andrew Tridgell 6a17917cd5 Plane: updated release notes for 4.0.0beta1 2019-09-16 12:56:39 +10:00
Andrew Tridgell 3fdd6a3ba3 Tools: added --no-bl option to configure_all.py 2019-09-16 12:55:49 +10:00
Andrew Tridgell eeb6fbe5ee HAL_ChibiOS: fixed undef for define lines
this fixes IMU heater enable for CubeBlack+
2019-09-16 12:55:44 +10:00
Andrew Tridgell e13ba5aae4 Tools: added CubeBlack+ to autobuild 2019-09-16 12:55:41 +10:00
Andrew Tridgell 1a22a42764 Tools: added CubeBlack+ bootloader 2019-09-16 12:55:39 +10:00
Andrew Tridgell dceee38d69 HAL_ChibiOS: fixed IMU order and board ID for CubeBlack+ 2019-09-16 12:55:36 +10:00
bugobliterator e540248695 HAL_ChibiOS: hwdef: add hwdef for CubeBlack+ 2019-09-16 12:55:34 +10:00
bugobliterator 8dca2b14db AP_BoardConfig: add support for CubeBlackPlus 2019-09-16 12:55:32 +10:00
Andrew Tridgell b8d3640bc4 Plane: fixed an issue with landing on rising ground
when landing on rising ground we don't want to use the terrain look
fwd correction for the flare calculation as otherwise we will flare
too early (and thus too high)
2019-09-16 12:55:29 +10:00
Andrew Tridgell 929426abf8 Plane: update release notes for 3.9.11 2019-09-15 19:08:16 +10:00
Andrew Tridgell f86a7d347d Revert "AP_HAL_SITL: set initial PWM values to a flag value"
This reverts commit 1735563bb7.

This commit broke RC input on high channels with sim_vehicle.py, plane
getc RC failsafe immediately
2019-09-15 18:26:50 +10:00
Peter Barker 4a35e8ee74 Tools: autotest: skip MIS_TOTAL parameter test on Tracker
This is CMD_TOTAL not MIS_TOTAL, and doesn't have facility for flags.
2019-09-14 09:26:11 +10:00
Peter Barker b4537bebd8 Copter: move control_mode_t into being Mode::Number enum class
Fixes this compiler error:

In file included from ../../ArduCopter/sensors.cpp:1:
In file included from ../../ArduCopter/Copter.h:195:
../../ArduCopter/mode.h:1291:9: fatal error: declaration shadows a variable in the global namespace [-Wshadow]
        AUTO,           // after A and B defined, pilot toggle the switch from one side to the other, vehicle flies autonomously
        ^
../../ArduCopter/defines.h:38:5: note: previous declaration is here
    AUTO =          3,  // fully automatic waypoint control using mission commands
    ^
1 error generated.
2019-09-13 13:12:08 +09:00
Peter Barker 6193d6cf69 AP_Compass: fix example by instantiating Baro
Baro is required to get location, and Compass tries to get the declination based on current location
2019-09-13 08:54:21 +09:00
bnsgeyer 23d4473f88 Copter: tradheli-properly upgrade rsc parameters 2019-09-13 08:53:54 +09:00
bnsgeyer 6074b1b7c9 Tools: add RPM to units list 2019-09-13 08:53:54 +09:00
bnsgeyer e91402aeb6 AP_Motors: tradheli-make all RSC params part of library
AP_Motors: Tradheli-fix RSC mode change while armed

AP_Motors: tradheli - improve RSC param metadata

AP_Motors: tradheli-put all throttle param settings in percent
2019-09-13 08:53:54 +09:00
Peter Barker 1735563bb7 AP_HAL_SITL: set initial PWM values to a flag value
These should never be used.  Setting them to a flag value may give a
hint to someone trying to debug a problem in the future.
2019-09-13 08:58:43 +10:00
Peter Barker 8da978b913 GCS_MAVLink: use sending_mavlink1 method in send_rc_channels_raw 2019-09-12 16:10:23 +10:00
Peter Barker 5dad0e5410 AP_HAL: a few more simple tests for snprintf 2019-09-12 16:08:59 +10:00
Andrew Tridgell f881e4a248 Tools: autobuild skyviper-journey 2019-09-12 14:02:36 +10:00
Andrew Tridgell 6c6a7cc675 Tools: removed old SkyViper-F412 defaults file 2019-09-12 14:02:36 +10:00
Andrew Tridgell 28cca004f2 HAL_ChibiOS: added default params for skyviper-journey 2019-09-12 14:02:36 +10:00
Andrew Tridgell 1dca0a16f5 HAL_ChibiOS: rename skyviper-f412 to skyviper-journey 2019-09-12 14:02:36 +10:00
Andrew Tridgell dcbbc86f34 AP_Radio: added support for Skyviper 2018 model radios
fixes #12273
2019-09-12 14:02:36 +10:00
mhefny 375510ecc2 SITL: adding wind simulation in Webots 2019-09-12 13:22:26 +10:00