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
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
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
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
Tom Pittenger
3cf537deed
AP_BoardConfig: reorder the fixed-index enum
2020-11-14 08:38:24 +11:00
Tom Pittenger
e0e3c23a87
AP_HAL_ChibiOS/hwdef: fix misprint in comment
2020-11-14 08:00:40 +11:00
Michael du Breuil
58ee8f62e2
AP_HAL_SITL: Support SFML joystick input
2020-11-13 15:38:22 +11:00
Michael du Breuil
892fb74c96
SITL: Add parameters for SFML_Joystick
2020-11-13 15:38:22 +11:00
Andrew Tridgell
c8e604a730
AP_Scripting: fixed gcc 9.x build
2020-11-13 14:30:11 +11:00
Andrew Tridgell
c14d19be68
AP_NavEKF3: fixed gcc 9.3 build error
...
gcc 9.3 doesn't like the use of get_accel(i) when array length is 1
2020-11-13 14:30:11 +11:00
Andrew Tridgell
7099bb6096
AP_NavEKF2: fixed gcc 9.3 build error
...
gcc 9.3 doesn't like the use of get_accel(i) when array length is 1
2020-11-13 14:30:11 +11:00
Andrew Tridgell
19c42ca0ed
AP_RCTelemetry: fixed build for gcc 9.x
2020-11-13 14:30:11 +11:00
Andrew Tridgell
c1dded0483
AP_DAL: fixed distance in rangefinder data
...
thanks to Paul for noticing
2020-11-13 11:45:42 +11:00
Andrew Tridgell
8c59575646
AP_OSD: support callsign display on OSD
...
use a file "callsign.txt" on the sdcard for callsign
2020-11-12 14:22:44 -08:00
Andrew Tridgell
c423bcca65
AP_OLC: fixed build of OSD on SITL
...
failed to link with constexpr, simple fix is to use defines, which
also scopes it inside the cpp
2020-11-12 14:22:44 -08:00
Peter Barker
a9a2c8c392
AP_HAL_SITL: only disown a sempahore once we're done with it
2020-11-12 21:19:55 +11:00
Peter Barker
545a086865
SITL: make ToshibaLED an 8-bit register device
2020-11-12 21:19:55 +11:00
Peter Barker
e21e55ba51
SITL: add I2CRegister::8Bit for 8-bit-quantity devices
2020-11-12 21:19:55 +11:00
Huibean
a00243dc5a
SITL: fix copter sitl build on macos
2020-11-12 20:39:51 +11:00
Andrew Tridgell
3f4c605361
AP_Beacon: added const
2020-11-11 16:14:22 -08:00
Marek Łukasiewicz
8813057b4c
AP_HAL_ChibiOS: Tweak sorting to be py2/py3 compatible
2020-11-12 10:27:31 +11:00
bugobliterator
bf4f482f5e
AP_FileSystem: do listing for SYS without slash as well
2020-11-12 08:42:44 +11:00
Andrew Tridgell
02e9519ab0
AP_Filesystem: fixed stat call for @SYS files
2020-11-12 08:42:44 +11:00
Peter Barker
c787231435
AC_Fence: remove timeout for waiting on fence semaphore, make nonblocking
...
Also move where we indicate we've attempted a load.
2020-11-11 18:46:22 +09:00
bugobliterator
d0cf3365ee
AP_HAL_Linux: handle uninitialised soCAN file descriptor
2020-11-11 19:52:37 +11:00
bugobliterator
eea6b4c9b9
AP_HAL_SITL: handle uninitialised file descriptor
2020-11-11 19:52:37 +11:00
Peter Barker
48385b82dc
AP_Logger: use instance number for Mag logging
2020-11-11 19:31:53 +11:00
Peter Barker
12f0e9dd43
AP_Logger: use instance number for Baro logging
2020-11-11 19:31:53 +11:00
Peter Barker
2437cf8a24
AP_Logger: use instance number for IMU logging
2020-11-11 19:31:53 +11:00
Peter Barker
d436e5b5d1
SITL: add simulator for Rotoye battery monitor
...
Also correct temperature from generic battery simulator
2020-11-11 19:27:21 +11:00
Lucas De Marchi
4be9b4171b
AP_RangeFinder: TFMiniPlus: respect max configured via param
...
Do like other drivers do and cap the maximum reported value with what is
configured in the parameter.
2020-11-11 19:23:41 +11:00
Lucas De Marchi
0e63a833e9
AP_RangeFinder: TFMiniPlus: fix out-of-range returned a no-data
...
Other drivers consider that they received data even if the value is
reported as "out of range" by sensor. On the I2C driver for TFMiniPlus
we considered this case, too. However when the signal strength is very
low (and thus the distance would likely be out of range), we would end up
ignoring the new sample. With enough samples without any value this
would lead the status to turn to "NoData".
2020-11-11 19:23:41 +11:00
Iampete1
36eb605de5
AP_Arming: fix aux auth arming check
2020-11-11 18:24:55 +11:00
Peter Hall
d6a1af4690
AP_Scripting: example: arming auth: removed unused millis call
...
now is fetched but never used
2020-11-11 18:24:55 +11:00
Peter Barker
41943f5fda
GCS_MAVLink: correct use of uninitialised value in Rally upload
2020-11-11 18:22:58 +11:00
Andrew Tridgell
0db8745320
AP_Filesystem: fixed flushing with posix compat layer
...
this ensures the directory entry in the FAT is updated on fflush()
Fixes #14617
2020-11-11 18:19:44 +11:00
Andy Piper
bd6b28e5d9
AP_Camera: if the RunCam supports both 2-key and 5-key control, use 2-key
...
adjust camera menus for Split4 4k
use power button to start/stop recording on Split4
2020-11-11 18:14:41 +11:00
Andy Piper
8cd9af5ddd
AP_OSD: refactor to enable a TX-only set of parameter screens
...
add accessor for getting parameter names
add camel-case conversion for parameters names
enable OSD parameters unless HAL_MINIMIZE_FEATURES
correct OSD parameter documentation
don't default to TXONLY
2020-11-11 18:13:11 +11:00
Andy Piper
4d1c660ebc
GCS_MAVLink: enable OSD parameters on parameter enablement
2020-11-11 18:13:11 +11:00
Andy Piper
06feecfaf2
AP_RCTelemetry: support CRSF parameter ping requests
...
process read and write parameter request frames
add support for getting OSD parameters on read requests
send text selections over CRSF
chunker algorithm for CRSF text selections
disable functions if OSD_PARAM_ENABLED is not set
create separate parameter scheduler entry
don't enable CRSF text selection on 1mb boards
2020-11-11 18:13:11 +11:00
Andy Piper
7f3f135dc5
AP_RCProtocol: add debug for further CRSF messages
...
add better frame debug info to CRSF
2020-11-11 18:13:11 +11:00
Nick Belanger
dbe5b90398
AP_BattMonitor: Adding driver for Rotoye Batmon equipped smart batteries
2020-11-11 14:24:13 +11:00
Peter Barker
eb132d1c93
AP_DAL: fill in visualodom structures
2020-11-11 13:50:22 +11:00
Peter Barker
428c9ef0e1
AP_GPS: correct logging in dual-ublox setups
2020-11-10 17:39:51 +11:00
Andrew Tridgell
2a210549f9
AP_DAL: minor review cleanups
2020-11-10 16:15:45 +11:00
Andrew Tridgell
790a5ffa38
AP_Vehicle: added bootloader vehicle type
2020-11-10 16:15:45 +11:00
Andrew Tridgell
280e9d1c41
HAL_ChibiOS: fixed bootloader build
2020-11-10 16:15:45 +11:00
Andrew Tridgell
17b4198921
HAL_ChibiOS: add WITH_FATFS to environment
2020-11-10 16:15:45 +11:00
Andrew Tridgell
147df12eb8
GCS_MAVLink: allow replay to use GCS_Dummy
2020-11-10 16:15:45 +11:00
Andrew Tridgell
ac566763fe
HAL_ChibiOS: disable loop delay on replay
2020-11-10 16:15:45 +11:00
Andrew Tridgell
5e8380ff41
AP_HAL: allow replay on ChibiOS
2020-11-10 16:15:45 +11:00
Andrew Tridgell
f4bf2ec3fe
AP_DAL: allow replay on ChibiOS
2020-11-10 16:15:45 +11:00
Andrew Tridgell
f121c250ae
AP_BoardConfig: allow replay on ChibiOS
2020-11-10 16:15:45 +11:00
Andrew Tridgell
db86b95761
HAL_SITL: fixed AP_Periph sitl build
2020-11-10 16:15:45 +11:00
Andrew Tridgell
806852c9c3
AP_Math: speedup fill nanf
2020-11-10 16:15:45 +11:00
Andrew Tridgell
c321025725
HAL_SITL: run nanf fill every 10 loops
...
this saves a lot of cpu while still giving protection
it reduces time to run a test replay from 8.1s to 4.1s
2020-11-10 16:15:45 +11:00
Andrew Tridgell
3152da98e1
AP_Logger: skip structure validation in replay
2020-11-10 16:15:45 +11:00
Andrew Tridgell
d380447cd5
HAL_SITL: support command line args for replay
2020-11-10 16:15:45 +11:00
Andrew Tridgell
f966e92d99
HAL_SITL: default model for replay
2020-11-10 16:15:45 +11:00
Andrew Tridgell
0bc77a3baf
AP_NavEKF3: fixed whitespace
2020-11-10 16:15:45 +11:00
Andrew Tridgell
8cb3013217
AP_DAL: setup low pass IMU filter for 20Hz
2020-11-10 16:15:45 +11:00
Andrew Tridgell
9e73922fd9
AC_PID: use calc_lowpass_alpha_dt()
2020-11-10 16:15:45 +11:00
Andrew Tridgell
b0f0c8d842
Filter: use calc_lowpass_alpha_dt()
2020-11-10 16:15:45 +11:00
Andrew Tridgell
cdcf32d22c
AP_Math: added calc_lowpass_alpha_dt()
...
used in several places
2020-11-10 16:15:45 +11:00
Andrew Tridgell
6ee1b23d28
AP_NavEKF3: removed use of another lanes gyro in optflow takeoff detection
...
as discussed with Paul
2020-11-10 16:15:45 +11:00
Andrew Tridgell
5b41d5541f
AP_NavEKF2: removed use of another lanes gyro in optflow takeoff detection
...
as discussed with Paul
2020-11-10 16:15:45 +11:00
Andrew Tridgell
0506af113e
AP_DAL: tidyup
2020-11-10 16:15:45 +11:00
Andrew Tridgell
fabac94952
AP_DAL: avoid logging unused IMU data
2020-11-10 16:15:45 +11:00
Andrew Tridgell
7d7031d3d7
AP_NavEKF2: added const (review request)
2020-11-10 16:15:45 +11:00
Andrew Tridgell
7a34ec4458
AP_DAL: updated comment
2020-11-10 16:15:45 +11:00
Andrew Tridgell
0e7611cebe
AP_DAL: fixed handling of AHRS trim
2020-11-10 16:15:45 +11:00
Andrew Tridgell
f145afabf3
AP_DAL: pack RFRN more efficiently
2020-11-10 16:15:45 +11:00
Andrew Tridgell
a08a1a4247
AP_Logger: allow for larger LOG_FILE_BUFSIZE
...
larger sizes on F7 and H7 allow for much more rapid loggging
2020-11-10 16:15:45 +11:00
Andrew Tridgell
71e4d72fe3
AP_Logger: removed 64k limitation on log buffer
...
the reason for the limit is gone with AP_FileSystem
2020-11-10 16:15:45 +11:00
Andrew Tridgell
2945de4796
AP_Logger: use WITH_SEMAPHORE in _WritePrioritisedBlock
...
this prevents a 1ms delay when waiting for the semaphore
2020-11-10 16:15:45 +11:00
Andrew Tridgell
7a8e8b8b51
AP_DAL: removed use of BUILD macros in headers
...
fixes sempahore build
2020-11-10 16:15:45 +11:00
Andrew Tridgell
5be818f8a1
AP_DAL: re-pack GPS replay data
...
this fixes antenna offset for blended GPS, and reduces the average
amount of data in logs for GPS replay
2020-11-10 16:15:45 +11:00
Andrew Tridgell
cb830dcc11
AP_AHRS: added comment from review
2020-11-10 16:15:45 +11:00
Andrew Tridgell
905ffed7fd
AP_DAL: cleanups from review
2020-11-10 16:15:45 +11:00
Andrew Tridgell
509b9f5e63
AP_DAL: only enable standalone build with --no-gcs and --disable-scripting
2020-11-10 16:15:45 +11:00
Andrew Tridgell
4f17edc67d
AP_DAL: moved standalone example to tools
...
prevent trying to build with all examples
2020-11-10 16:15:45 +11:00
Andrew Tridgell
70abf799c3
AP_DAL: check for zero time in accel/gyro filtering
2020-11-10 16:15:45 +11:00
Andrew Tridgell
dd96d7c205
AP_DAL: fixed standalone linking
2020-11-10 16:15:45 +11:00
Andrew Tridgell
6fe05a9ab6
AP_NavEKF3: restore XKTV message
2020-11-10 16:15:45 +11:00
Andrew Tridgell
f5275fd0ad
AP_NavEKF3: fixed use of pointers in ringbuffers
...
these don't work with AP_DAL
2020-11-10 16:15:45 +11:00
Andrew Tridgell
16f7e51ea5
AP_NavEKF2: fixed use of pointers in ringbuffers
...
these don't work with AP_DAL
2020-11-10 16:15:45 +11:00
Andrew Tridgell
eaa8474563
AP_NavEKF3: cope with INS_MAX_INSTANCES below 3
2020-11-10 16:15:45 +11:00
Andrew Tridgell
246a441883
AP_NavEKF2: cope with INS_MAX_INSTANCES below 3
2020-11-10 16:15:45 +11:00
Andrew Tridgell
021e305340
AP_Mount: cope with INS_MAX_INSTANCES below 3
2020-11-10 16:15:45 +11:00
Andrew Tridgell
dab091a801
AP_AHRS: cope with INS_MAX_INSTANCES below 3
2020-11-10 16:15:45 +11:00
Andrew Tridgell
f6c45c3bcd
AP_InertialSensor: cope with INS_MAX_INSTANCES < 3
2020-11-10 16:15:45 +11:00
Andrew Tridgell
bb3b59966f
HAL_ChibiOS: define INS_MAX_INSTANCES if less than 3
...
save some flash and memory
2020-11-10 16:15:45 +11:00
Andrew Tridgell
4ef7d5b468
AP_DAL: make more APIs const
2020-11-10 16:15:45 +11:00
Andrew Tridgell
9b81c5a1e0
AP_NavEKF3: use dal reference in EKF backends
...
saves a bit of flash space
2020-11-10 16:15:45 +11:00
Andrew Tridgell
5f0e943f0f
AP_NavEKF2: use dal reference in EKF backends
...
saves a bit of flash space
2020-11-10 16:15:45 +11:00
Andrew Tridgell
e273f73cb4
AP_DAL: fixed shadowed variable
2020-11-10 16:15:45 +11:00
Andrew Tridgell
1bdf6173ec
AP_NavEKF3: removed have_ekf_logging
2020-11-10 16:15:45 +11:00
Andrew Tridgell
21dfdc2192
AP_NavEKF3: use DAL for body frame odometry
2020-11-10 16:15:45 +11:00
Andrew Tridgell
8591b31665
AP_NavEKF2: cleanup unused code
2020-11-10 16:15:45 +11:00
Andrew Tridgell
9635231088
AP_DAL: added body frame odomotry
2020-11-10 16:15:45 +11:00
Andrew Tridgell
6c4e552a0b
AP_GPS: removed have_ekf_logging()
2020-11-10 16:15:45 +11:00
Andrew Tridgell
353ec29ab6
AP_Compass: removed have_ekf_logging()
2020-11-10 16:15:45 +11:00
Andrew Tridgell
b0ec4f8b93
AP_Baro: removed have_ekf_logging()
2020-11-10 16:15:45 +11:00
Andrew Tridgell
1bc82d3118
AP_AHRS: removed have_ekf_logging()
2020-11-10 16:15:45 +11:00
Andrew Tridgell
851cb30e0d
AP_Logger: speed up startup with replay if LOG_DISARMED=0
2020-11-10 16:15:45 +11:00
Andrew Tridgell
29ab747982
AP_DAL: fixed navio build
2020-11-10 16:15:45 +11:00
Andrew Tridgell
c7cc26d9bc
AP_DAL: rename xxprintf() to rprintf()
2020-11-10 16:15:45 +11:00
Andrew Tridgell
9542f365f6
AP_DAL: fixed range beacon handling
2020-11-10 16:15:45 +11:00
Andrew Tridgell
d01534c7c6
AP_DAL: remove unnecessary variables
2020-11-10 16:15:45 +11:00
Andrew Tridgell
a0de6c620f
AP_NavEKF3: use selected GPS for gps_yaw_deg()
...
more than one GPS could provide yaw
2020-11-10 16:15:45 +11:00
Andrew Tridgell
f4c3d7286c
AP_NavEKF3: support replay with wheel odomotry
2020-11-10 16:15:45 +11:00
Andrew Tridgell
b8a3413f5e
AP_DAL: support wheel odomotry
2020-11-10 16:15:45 +11:00
Andrew Tridgell
e87f98066f
AP_NavEKF3: support replay with external navigation data
2020-11-10 16:15:45 +11:00
Andrew Tridgell
bec095d661
AP_NavEKF2: support replay with external navigation data
2020-11-10 16:15:45 +11:00
Andrew Tridgell
c068da154a
AP_DAL: support external pos and velocity data
2020-11-10 16:15:45 +11:00
Andrew Tridgell
5260d677ef
AP_DAL: fixed optical flow replay
2020-11-10 16:15:45 +11:00
Andrew Tridgell
7bbbbd314c
AP_NavEKF3: added optflow support for AP_DAL
2020-11-10 16:15:45 +11:00
Andrew Tridgell
224792b8b8
AP_NavEKF2: added optflow support for AP_DAL
2020-11-10 16:15:45 +11:00
Andrew Tridgell
dab9d824fd
AP_DAL: added optflow support
2020-11-10 16:15:45 +11:00
Andrew Tridgell
a56f07b74d
AP_Math: allow build without other headers for vector2.h
2020-11-10 16:15:45 +11:00
Andrew Tridgell
31091d6307
AP_NavEKF3: use ekf_low_time_remaining for core scheduling
2020-11-10 16:15:45 +11:00
Andrew Tridgell
90a8c5cb1a
AP_NavEKF2: use ekf_low_time_remaining for core scheduling
2020-11-10 16:15:45 +11:00
Andrew Tridgell
47c3fadc17
AP_DAL: added ekf_low_time_remaining()
...
used by EKF for inter-lane scheduling
2020-11-10 16:15:45 +11:00
Andrew Tridgell
1848491ac2
AP_DAL: fixed GPS backend for multiple sensors
2020-11-10 16:15:45 +11:00
Andrew Tridgell
bf61910c7c
AP_DAL: fixed shadowed variable
...
found by semaphore build
2020-11-10 16:15:45 +11:00
Andrew Tridgell
50d03571da
AP_DAL: fixed build without VisualOdometry
2020-11-10 16:15:45 +11:00
Andrew Tridgell
b7d60b1d97
AP_Logger: added C field to EKF msgs
2020-11-10 16:15:45 +11:00
Andrew Tridgell
f3c3778169
prevent duplicate EKF logging
...
vehicle code sometimes tries to log the same data twice
2020-11-10 16:15:45 +11:00
Andrew Tridgell
fa75824948
AP_DAL: added standalone link test
...
useful to check for clean linking of EKF2/EKF3
Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2020-11-10 16:15:45 +11:00
Andrew Tridgell
32bda36908
SITL: fixed build with no GCS
2020-11-10 16:15:45 +11:00
Andrew Tridgell
0700ca4882
AP_Vehicle: added DAL standalone vehicle type
2020-11-10 16:15:45 +11:00
Andrew Tridgell
ae56f554b9
AP_Vehicle: send watchdog reset msg at startup
...
this helps if the watchdog will happen within 10s of startup
2020-11-10 16:15:45 +11:00
Andrew Tridgell
77687a9639
AP_UAVCAN: fixed build with no GCS
...
Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2020-11-10 16:15:45 +11:00
Andrew Tridgell
9b35bfba55
AP_AHRS: use enum class for takeoff/touchdown states
...
Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2020-11-10 16:15:45 +11:00
Andrew Tridgell
31fbb59384
AP_AHRS: delay EKF start until logging ready
...
for replay to work reliably we need all the parameters output before
we init the EKF.
Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2020-11-10 16:15:45 +11:00
Andrew Tridgell
096aab9388
AP_NavEKF3: convert to use AP_DAL for new replay structure
...
Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2020-11-10 16:15:45 +11:00
Andrew Tridgell
6be3d19e82
AP_NavEKF2: convert to use AP_DAL for new replay structure
...
Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2020-11-10 16:15:45 +11:00
Andrew Tridgell
97a2c5a576
AP_NavEKF: removed Log_EKF_Timing
...
not needed for new replay
Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2020-11-10 16:15:45 +11:00
Andrew Tridgell
c0b20881d6
AP_Math: allow vector3.h to be included earlier in include chain
2020-11-10 16:15:45 +11:00
Andrew Tridgell
09aff03edc
AP_Logger: support new replay system
...
added allow_start_ekf and block write method for replay
Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2020-11-10 16:15:45 +11:00
Andrew Tridgell
daa0abeb13
AP_Logger: make structure check errors clearer
...
add message name to more error messages
2020-11-10 16:15:45 +11:00
Andrew Tridgell
bd7ed003c2
AP_Logger: split out EKF messages and prepare for new replay
...
adds core to more EKF message structures
Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2020-11-10 16:15:45 +11:00
Andrew Tridgell
e116b1ff0a
AP_DAL: added data access layer library
...
This provides a wrapper around sensor and system calls to allow for
logging for replay in EKF2 and EKF3
Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2020-11-10 16:15:45 +11:00