Lucas De Marchi
7ba6f92eb5
AP_Common: give some type safety to ARRAY_SIZE macro
...
Now that most places in the code use the ARRAY_SIZE macro instead of
coding it by hand, let's use some type safety in its definition. This is
a C++ version of similar macros used in kmod, Linux kernel and the
source of them, ccan.
A C++ version like this is used in V8 (the JS engine) and other open
source projects.
The main benefit of this version is that you get a compile error if you
pass in a variable that's not an array. For example,
Bla y[10];
Bla *y_ptr = y;
void foo(Bla x[])
{
// build error since x[] decay to a pointer in function
// parameter
for (int i = 0; i < ARRAY_SIZE(x); i++) {
...
}
// build error since y_ptr is not an array
for (int i = 0; i < ARRAY_SIZE(y_ptr); i++) {
...
}
}
I added the additional specialization to allow arrays of size 0.
10 years ago
stew@lovinggibbard.com
9ed6e6afa4
Copy paste errors and naming issues in documentation help.
10 years ago
Andrew Tridgell
e0810c2e54
AP_RSSI: fixed doc prefixes for RSSI variables
10 years ago
Paul Riseborough
53e58f1075
AP_NavEKF2: Update default parameters
...
Updates from preliminary tuning in Replay
10 years ago
Paul Riseborough
73686dfa89
DataFlash: fix error in NKF descriptor
10 years ago
Paul Riseborough
2fb72b6e6a
AP_NavEKF2: Clean up loss of GPS logic
10 years ago
Paul Riseborough
df0eb9d9d7
AP_NavEKF2: Don't run GPS checks when not required
10 years ago
Paul Riseborough
1986af021f
AP_NavEKF2: Remove un-used flight mode and duplicate variable
10 years ago
Paul Riseborough
7230472516
AP_NavEKF2: Adjust parameter defaults
10 years ago
Paul Riseborough
8bcedb228b
AP_NavEKF2: Bring pre-flight GPS checks up to date with EKF1
10 years ago
Andrew Tridgell
f22a1d3e6d
AP_Motors: display message in heli parameter_check()
10 years ago
Andrew Tridgell
9da2b2b430
AP_Motors: added H_GYR_GAIN_ACRO
10 years ago
Andrew Tridgell
ac363c5447
AP_RPM: added RPM_MAX parameter
...
attempt to avoid noise in the pulses
10 years ago
Andrew Tridgell
e3f7b002c2
AC_AttitudeControl: use non-flybar leaky I handling
...
The standard leaky-I handling works fine on a flybar, so better not to
have a special case that isn't needed
10 years ago
Randy Mackay
9f59b6f7b5
AP_AHRS: getLastYawResetAngle returns reset time
10 years ago
Randy Mackay
015f700bc0
AP_NavEKF2: getLastYawResetAngle returns last reset time
10 years ago
Randy Mackay
b5c49e0792
AP_NavEKF: minor comment fix
...
No functional change
10 years ago
Jonathan Challinger
51fb13a329
AP_NavEKF: fix getLastYawResetAngle to return yaw reset system time
10 years ago
Andrew Tridgell
06c0ad987e
AP_AHRS: fixed divide by zero in SITL
...
fixes issue#2875
10 years ago
Lucas De Marchi
fc2a1d27b4
AP_HAL_Linux: fix build for raspilot after Util change
...
Make sure raspilot also builds after making the Util class common for
RPI-based boards.
10 years ago
Lucas De Marchi
55e1d60b54
AP_HAL_Linux: Use from() method for downcast in Util class
10 years ago
Michael du Breuil
cf6e6b7e82
DataFlash: Remove stale UBX3 message
10 years ago
Michael du Breuil
75c0644b9a
AP_GPS: Use state.instance instead of trying to track instance numbers inside of the ublox driver
10 years ago
Andy Piper
5adb6d2b89
AP_GPS: Support UBX messages for dual UBLOX GPS setups.
...
Add extra DOP information to UBX precision messages.
10 years ago
mirkix
eee9522ca5
AP_Compass: Add MPU9250 multiple instance support
10 years ago
mirkix
840f583d23
AP_InertialSensor: Add MPU9250 multiple instance support
10 years ago
dgrat
15b3717d89
AP_HAL_Linux: Move RPi version check to util class
...
- Moved the version check functions to util.
- Removed a redundant version check.
- Removed redundant version check functions from RCInput.
10 years ago
dgrat
2590db378a
AP_HAL_Linux: remove extra spaces in RCInput_Navio
10 years ago
dgrat
e96a1bae8a
AP_HAL_Linux: cleanup pointer casts in RCInput_Navio
...
Although RPi is 32 bits, use uintptr_t and friends for casts.
10 years ago
Paul Riseborough
80e182f827
AP_NavEKF2: Update EKF2 data logging
10 years ago
Paul Riseborough
86ad1e6e66
DataFlash: Update EKF2 data logging
10 years ago
Paul Riseborough
f77bdd90fc
AP_AHRS: Update EKF2 data logging
10 years ago
Paul Riseborough
4acd6c129a
AP_NavEKF2: Update parameters
10 years ago
Paul Riseborough
9c5e48e7e9
AP_NavEKF2: Remove unused variables and improve variable names
10 years ago
Paul Riseborough
4a7714e15d
AP_NavEKF2: Remove unused parameters and improve naming consistency
10 years ago
Paul Riseborough
8afb26087d
AP_NavEKF2: Remove unused function
10 years ago
Paul Riseborough
02408861a1
AP_NavEKF: Remove unused function
10 years ago
Andrew Tridgell
fe76662faf
AP_NavEKF2: added set_enable() API
10 years ago
Andrew Tridgell
ba8e63d8e7
DataFlash: handle unitialised EKF2 in logging
10 years ago
Andrew Tridgell
dde8330077
AP_AHRS: rename using_EKF to active_EKF_type()
...
thanks to Randy for the suggestion
10 years ago
Paul Riseborough
f270573acc
AP_NavEKF2: Use library functions for quaternion corrections
10 years ago
Andrew Tridgell
f9348887c5
AP_AHRS: added getLastYawResetAngle() and resetHeightDatum()
10 years ago
Andrew Tridgell
0677c2c80c
AP_AHRS: run astyle for formatting
10 years ago
Andrew Tridgell
cbc62238a9
AP_NavEKF2: run astyle for reformatting
10 years ago
Andrew Tridgell
7a3b59652f
GCS_MAVLink: show EKF2 status via AHRS3 message
10 years ago
Andrew Tridgell
ce9fa45b3a
DataFlash: added logging of EKF2
10 years ago
Andrew Tridgell
13f72e5ba9
AP_AHRS: expose EKF2 for logging
10 years ago
Andrew Tridgell
760dafbb9d
AP_NavEKF2: added enabled() function
10 years ago
Andrew Tridgell
7ba45444a2
AP_AHRS: added selection of EKF type using AHRS_EKF_TYPE
10 years ago
Andrew Tridgell
ed25c85d21
AP_AHRS: added NavEKF2 to constructor
10 years ago