AP_NavEKF: review feedback

This commit is contained in:
Andrew Tridgell 2021-07-09 19:42:30 +10:00
parent f343c8501b
commit b11450c18c

View File

@ -50,7 +50,7 @@ protected:
// fill all the common scratch variables with NaN on SITL
void fill_scratch_variables(void);
// zero part of an array
// zero part of an array for index range [n1,n2]
static void zero_range(ftype *v, uint8_t n1, uint8_t n2) {
memset(&v[n1], 0, sizeof(ftype)*(1+(n2-n1)));
}