Peter Barker
3b5bd9956d
Sub: remove dangling method declaration
5 years ago
Peter Barker
9cdda81e9c
RC_Channel: correct case in AvoidAPRoximity function string
5 years ago
Pierre Kancir
936511a720
Autotest: common: correct some text format
5 years ago
Pierre Kancir
5b72de25e0
Autotest: update wait_distance_to_home
...
Autotest: copter: allow to pass min_distance for RTL
Autotest: rover: allow to pass min distance for RTL
5 years ago
Andrew Tridgell
30f9fd9d2a
GCS_MAVLink: fixed overrun of text passed to other libraries
...
this caused corruption in log files, and was passing a
non-nul-terminated string to notify and other libraries
5 years ago
Andrew Tridgell
b18928e28e
SITL: fixed SIM_IMU_COUNT conflict
...
this came from merging two PRs which both changed SITL params
5 years ago
Randy Mackay
afa810041b
Copter: 4.0.4-rc4 release notes
5 years ago
Andrew Tridgell
458ade86f5
AP_NavEKF3: fixed segfault when IMU mask covers more IMUs than GSF mask
5 years ago
Andrew Tridgell
6ee527d3e0
AP_NavEKF2: fixed segfault when IMU mask covers more IMUs than GSF mask
5 years ago
Andrew Tridgell
d5c0522651
AP_InertialSensor: instantiate SIM_IMU_COUNT sensors in SITL
5 years ago
Andrew Tridgell
c16467a47f
SITL: added SIM_IMU_COUNT
5 years ago
Siddharth Purohit
8373862f39
AP_CANManager: constant slcan via serial manager protocol param
5 years ago
Peter Barker
119462aeb1
build_binaries.py: Python3 fix
...
Something in the program output is not ascii
5 years ago
Andrew Tridgell
a4e7c72635
AP_AHRS: removed duplicate implementation of airspeed_estimate()
5 years ago
Harshit Kumar Sankhla
b5b3298f0a
AP_AHRS: get airspeed estimate from non-primary instances too
...
with multiple airspeed sensors and airspeed affinity in EKF3,
it is possible to have switched over to a lane not using the
primary airspeed sensor, so AHRS should know which airspeed
sensor to use, i.e, the one being used by the primary lane.
5 years ago
Harshit Kumar Sankhla
d7c569c085
AP_Baro: able to freeze baro using SITL parameter
5 years ago
Harshit Kumar Sankhla
952c14ed33
AP_HAL_SITL: add GPS Velocity Error through a SITL parameter
5 years ago
Harshit Kumar Sankhla
464c90a03c
Tools: add an EKF3 lane switching test to plane
5 years ago
Harshit Kumar Sankhla
8507c7d3b9
SITL: add some airspeed, baro, gps noise simulation parameters
...
also some rearrangements in the parameter
lists to make things look better
5 years ago
Harshit Kumar Sankhla
09620ee1e7
AP_HAL_SITL: use airspeed noise as pressure noise
...
this emulates real sensors that have higher airspeed noise at
lower speeds, also change airspeed offset to a sitl parameter
5 years ago
Andrew Tridgell
505953bdb2
AP_Airspeed: added get_num_sensors()
5 years ago
Andrew Tridgell
326ab0d7b8
AP_Baro: added get_primary() method
5 years ago
Harshit Kumar Sankhla
edc3709653
AP_NavEKF3: implement sensor affinity using EK3_AFFINITY parameter
...
this allows the EKF core index to be used to select a GPS/baro/mag
instance. This is an alternative to GPS blending that allows EKF lane
switching to be used to select the right combination of GPS and IMU
add logging to XKFS message
5 years ago
Harshit Kumar Sankhla
9588a68e1b
AP_Logger: added logging of baro, gps, airspeed to XKFS
...
new XKFS message for "XKF Sensor"
5 years ago
Harshit Kumar Sankhla
d7edc946b6
AP_NavEKF3: Relative Error based Lane-Switching
...
Improvments to the lane selection logic, we accumulate error for each
EKF lane relative to the primary for a more robust core selection
5 years ago
Harshit Kumar Sankhla
56cbcb42ee
AP_NavEKF2: Add core relative error and errorscore logging in NKF3 packet
...
TODO : Port lane switching logic from EKF3 to make use of these terms
Since both share the same NKF3 log structure, needed to do this.
Just log 0 as of.
5 years ago
Harshit Kumar Sankhla
775a40e4cc
AP_Logger: Add RErr and ErSc fields to NKF3 log
...
RErr (Core Relative Errors) and ErSc (Core Error Scores)
5 years ago
Pierre Kancir
16b499d0f6
Autotest: allow to select which GPS flags we want to wait for
5 years ago
Iampete1
c265a38344
Copter: add gripper release FS_Option
5 years ago
Pierre Kancir
af1bdcfdfc
AP_Scipting: fix memleak on generator
5 years ago
Rishabh
caf5bfed59
AC_Avoid: Added new OA type (Dijkstra + BendyRuler fusion)
5 years ago
Peter Barker
80bee19bc9
autotest: correct race condition in button test
...
A BUTTON_CHANGE may have been emitted after we send the parameter but before it is processed by the autopilot
5 years ago
Peter Barker
3ae83d70b1
autotest: ensure df log is present for rangefinder tests
...
there may not be a current onboard log present if we've just rebooted
5 years ago
Patrick José Pereira
6e24880f87
AP_Common: missing: Add definition for strndupa
...
`strndupa` is only available when using the GNU GCC suite.
With this definition is possible to use the MUSL compiler.
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
5 years ago
Patrick José Pereira
5746943f50
AP_HAL_Linux: Use pthread_self in place of _ctx
...
Avoid aproblem where _ctx is initialized in a race condition.
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
5 years ago
Patrick José Pereira
248daa85a1
AP_HAL_Linux: Scheduler: Use pthread_* over sched_* calls for setschedparam
...
musl implements `sched_*` following the posix standard,
where `sched_setschedule` is used for process scheduling.
Linux implementation defines `sched_*` functions based in
the thread scheduler and not with the process.
Using `pthread_*` should be used to follow such standard.
Ref: https://pubs.opengroup.org/onlinepubs/9699919799/
From: https://www.openwall.com/lists/musl/2016/03/01/5
> ... Linux does not provide a way
> to set scheduling parameters for a _process_, only for threads. The
> sched_setscheduler syscall is documented as taking a pid but actually
> takes a thread id and only operates on that thread. glibc just ignores
> this and provides sched_* functions that do the wrong thing.
This can be fixed by using `pthread_setschedparam` and requesting the current
thread id via `pthread_self`.
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
5 years ago
Patrick José Pereira
11c19a2dde
AP_HAL: RCOutput_Tap_Linux: Include arm/ioctls.h
...
Add missing include for TCGETS2 while compile with MUSL
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
5 years ago
Pierre Kancir
420587fb68
Tools: logger_metadata fix relative dir search
5 years ago
Pierre Kancir
a181fcf8a2
Autotest: common: put generated parameter and LogMessage files into buildlogs directory
5 years ago
Pierre Kancir
f6f418605f
.gitignore: add LogMessages output to ignore list
5 years ago
Peter Barker
a523868b33
autotest: fix Beacon test
5 years ago
Andrew Tridgell
155b39bab3
autotest: added loiter-to-alt test mission
5 years ago
Andrew Tridgell
bf0f359445
Plane: fixed LOITER_TO_ALT with terrain target
...
many thanks to Pompecukor for finding this!
Fixes #14951
5 years ago
Randy Mackay
46a7e96c48
AP_NavEKF3: readRngBcnData avoids array overflow from beacon count
5 years ago
Randy Mackay
660579f2f4
Tools: fix copter beacon test params
5 years ago
Randy Mackay
b314195f6e
AP_NavEKF3: minor spelling fix
5 years ago
Randy Mackay
b86e16e927
AP_NavEKF3: readRngBcnData gets minor formatting fix
5 years ago
Randy Mackay
384029d278
AP_NavEKF3: rngBcnDataNew made local
5 years ago
Randy Mackay
8c877f02af
AP_NavEKF3: shrink beacon arrays and add assert
5 years ago
Randy Mackay
d292ba028a
AP_NavEKF3: increase beacon buffer to imu + 1
5 years ago