Andrew Tridgell
9a026b8068
HAL_SITL: fixed warning building with gcc 9.x
2020-11-18 17:14:43 +11:00
Andrew Tridgell
3f775205e6
HAL_ChibiOS: fixed use of chHeapFree
...
should be free
2020-11-18 17:14:43 +11:00
Andrew Tridgell
ce3e1a69ec
HAL_ChibiOS: added memory guard system
2020-11-18 17:14:43 +11:00
Andrew Tridgell
cc61e05d90
AP_InternalError: added mem_guard internal error
2020-11-18 17:14:43 +11:00
Andrew Tridgell
ce95b7e81a
waf: added --enable-memory-guard option
2020-11-18 17:14:43 +11:00
Andrew Tridgell
70a8853e6a
Replay: adjust lost message threshold
...
this needs to be a bit higher to cope with truncated logs (if SITL
ends in the middle of an EKF log write then we end up with a mismatch
in log msg counts)
2020-11-18 14:56:19 +11:00
vierfuffzig
e830494f0f
AP_OSD_Screen: move vspeed decimal switch to 10 m/s
2020-11-18 09:27:54 +11:00
Andrew Tridgell
6bf7f9e864
AP_Logger: use load_file()
...
save a bit of flash
2020-11-18 09:11:36 +11:00
Andrew Tridgell
3a0e494085
AP_OSD: fallback to font 0 on load failure
...
this will allow us to reduce the number of fonts we include as
standard without breaking existing setups
2020-11-18 09:11:36 +11:00
Andrew Tridgell
a2d86eac6d
AP_OSD: allow for loading fonts from sdcard
...
user can put fontN.bin on their sdcard and it will replace the font in
romfs. This makes for easy font development, and allows for multiple
languages
This replaces #15668
2020-11-18 09:11:36 +11:00
Andrew Tridgell
773517a473
AP_Filesystem: added load_file() API
...
this makes it very easy to load a small file from sdcard or ROMFS
2020-11-18 09:11:36 +11:00
Huibean
cf2b89c4f1
AP_HAL_ChibiOS:add mazzy star drone hwdef
2020-11-17 17:57:07 +11:00
Andrew Tridgell
079e11275a
AP_Filesystem: allow for replay on any file in local filesystem
2020-11-17 13:45:07 +11:00
Andrew Tridgell
32bead6013
Replay: use common events and structures
...
allows for --force-ekf2 and --force-ekf3 to run the other EKFs events
when needed
2020-11-17 13:45:07 +11:00
Andrew Tridgell
4c606a30bb
AP_NavEKF3: use common structure names
2020-11-17 13:45:07 +11:00
Andrew Tridgell
3a4095fc7f
AP_NavEKF2: use common structure names
2020-11-17 13:45:07 +11:00
Andrew Tridgell
636fe783f4
AP_DAL: use common events and structures for EKF2 and EKF3
...
this facilitates --force-ekf2 and --force-ekf3
2020-11-17 13:45:07 +11:00
Andrew Tridgell
08291a15fb
HAL_SITL: avoid sitl command line processing for replay
...
avoids need for -- arguments for replay
2020-11-17 13:45:07 +11:00
Andrew Tridgell
019544ceb1
AP_Logger: allow for replay with both EKF enabled
...
even when one is disabled in the original log
2020-11-17 13:45:07 +11:00
murata
bbc673c668
AP_RangeFinder: Change rangefinder number 10 to A
2020-11-17 11:46:25 +11:00
Michael du Breuil
5e2093b105
Copter: Allow the user to specify the GCS failsafe timeout
2020-11-17 09:24:07 +09:00
Hwurzburg
5e8e088978
ArduPlane:Add safety limit on tailsitter VTOL transition throttle
...
Co-authored-by: Peter Hall <33176108+IamPete1@users.noreply.github.com>
2020-11-17 11:21:17 +11:00
Hwurzburg
6eca18c08b
GCS_MAVLink: add Board option to disable MAVftp in low mem bds/apps
2020-11-17 10:41:59 +11:00
Hwurzburg
6fe5ed36ce
AP_BoardConfig: add Board option to disable MAVftp in low mem bds/apps
2020-11-17 10:41:59 +11:00
Andrew Tridgell
9c74474196
GCS_MAVLink: setup baudrates for passthru serial ports
2020-11-17 10:26:14 +11:00
Andrew Tridgell
d0db3eef58
AP_SerialManager: added baudrates to get_passthru()
2020-11-17 10:26:14 +11:00
Michael du Breuil
53cbd86cbe
AP_Scripting: Fix the lua scheduling rate to be referenced from the
...
start of the update
This allows specifying a return value like "return update, 10" to run
at a near perfect 100Hz, where as before it would be run 10 ms after the
script had completed it's loop, which can be highly variable as the
script experiences interupts from the system, as well as needing the
script author to take responsibility for calculating the desired update
rate at the end. This was always intended to be fixed, but I pushed it
back during the initial development, however people are begining to run
scripts that have enough processing, or are rate sensitive enough that
we are now needing to start correcting this, or scripts will have to do
their best to guess the time, which will be inferior to us providing it.
As a note if you exceeded the time expected we will be rescheduling the
script immediately, thus it will have a schedule time in the past and
will be slotted in. This can't indefinetly starve other scripts as they
will still be slotted in, but if you request an update in 1 ms, but took
100ms to run we will simply slide you back into the queue 1ms after when
you started running.
2020-11-17 10:19:13 +11:00
Iampete1
42887891be
Plane: tailsitter: make sure alt target is abover current alt
2020-11-17 10:15:27 +11:00
Iampete1
f480f4e946
Plane: tailsitter: fix Qassist back - transision
2020-11-17 10:15:27 +11:00
Iampete1
c03de6bdbe
Plane: log Qassist state
2020-11-17 10:15:27 +11:00
Andrew Tridgell
5385f25868
AP_RSSI: handle init ordering with MSP
...
this fixes a nullptr dereference on startup when MSP asks for RSSI
data before the RSSI library is initialised
Fixes #15824
2020-11-17 10:01:54 +11:00
Paul Riseborough
248ef92ed7
AP_NavEKF2: Add velocity innovation check to use of EKF-GSF yaw
...
Only apply to non fly forward vehicle, eg copters, because magnitude of velocity innovation produced by plane launches is TBD.
2020-11-16 16:01:13 +11:00
Paul Riseborough
aaf558f593
AP_NavEKF3: Add velocity innovation check to use of EKF-GSF yaw
...
Only apply to non fly forward vehicle, eg copters, because magnitude of velocity innovation produced by plane launches is TBD.
2020-11-16 16:01:13 +11:00
Paul Riseborough
78e10e99f5
AP_NavEKF: Add accessor for yaw estimator velocity innovation length
2020-11-16 16:01:13 +11:00
Paul Riseborough
db86a5acc8
AP_NavEKF3: Don't update yaw estimator with bad GPS
2020-11-16 16:01:13 +11:00
Paul Riseborough
e5e8d0ba3c
AP_NavEKF2: Don't update yaw estimator with bad GPS
2020-11-16 16:01:13 +11:00
Andrew Tridgell
1250f62c88
Replay: fix for WriteV usage and cleanup unused code
2020-11-16 10:28:43 +11:00
Andrew Tridgell
e143257f8a
Replay: added GSF msgs to check_replay.py
2020-11-16 10:28:43 +11:00
Andrew Tridgell
5686dafeef
AP_NavEKF3: fixed logged core for GSF messages
2020-11-16 10:28:43 +11:00
Andrew Tridgell
a2f4b16cdc
AP_NavEKF2: fixed logged core for GSF messages
2020-11-16 10:28:43 +11:00
Andrew Tridgell
04f60001ff
AP_Logger: allow WriteV() to work within Replay
...
save formats for lookup by WriteV
2020-11-16 10:28:43 +11:00
Andrew Tridgell
e122d8ae8e
Replay: allow build with "./waf replay"
...
a bit easier to remember
2020-11-16 10:28:43 +11:00
Andrew Tridgell
03f2e853ce
AP_NavEKF3: fixed memory corruption on push before init
...
this fixes a bug that happens with VISION_SPEED_ESTIMATE from a
companion computer, which may come in before the EKF buffers are
allocated. That causes a push to an uninitialised ringbuffer which
triggers memory corruption
found using the new memory guard system
2020-11-15 15:42:48 +11:00
Andrew Tridgell
01cd678244
AP_NavEKF2: fixed memory corruption on push before init
...
this fixes a bug that happens with VISION_SPEED_ESTIMATE from a
companion computer, which may come in before the EKF buffers are
allocated. That causes a push to an uninitialised ringbuffer which
triggers memory corruption
found using the new memory guard system
2020-11-15 15:42:48 +11:00
yaapu
026ddfa679
AP_OSD: fix for sim_vehcile --osdmsp
2020-11-15 15:01:13 +11:00
Tom Pittenger
3b6513b932
Tools: add CubeBlack to list of AP_Periph supported boards
2020-11-14 02:26:59 -08:00
Peter Barker
32ba55e756
AP_DAL: move structure used for location references into cpp
...
Outside we get a copy per compilation unit.
2020-11-14 14:19:40 +11:00
Peter Barker
8c2c6141f7
AP_DAL: remove unused antenna_offset state
2020-11-14 10:33:38 +11:00
Pierre Kancir
f0b0e36dc6
.github: add chibios test with GCC 9
2020-11-14 09:35:52 +11:00
Tom Pittenger
3cf537deed
AP_BoardConfig: reorder the fixed-index enum
2020-11-14 08:38:24 +11:00