Paul Riseborough
703f56908f
AP_NavEKF2: Correct comment
9 years ago
Paul Riseborough
26815ace7a
AP_NavEKF2: Remove redundant logic check
9 years ago
Jonathan Challinger
bd8c804ab5
AP_NavEKF2: correct comments
9 years ago
Jonathan Challinger
ebae95d7f6
AP_NavEKF2: apply corrections to new inertial data when using for output prediction
9 years ago
Jonathan Challinger
2f709dfe86
AP_NavEKF2: improve inertial prediction
9 years ago
Paul Riseborough
262c5fe56d
AP_NavEKF2: Make setter loop through all instances
...
For setters where a success boolean is returned, return false if any instance fails.
9 years ago
Jonathan Challinger
8baf064317
AP_NavEKF2: setTakeoffExpected and setTouchdownExpected loop through instances
9 years ago
Paul Riseborough
ec5c460584
AP_NavEKF2: Fix predicted nav reporting
...
Predicted nav should never be false if current nav is true
9 years ago
Jonathan Challinger
99f481e098
AP_NavEKF2: always calcGpsGoodForFlight
9 years ago
Jonathan Challinger
3382e09580
AP_NavEKF2: add height constraint during takeoff
9 years ago
Paul Riseborough
4bb46af861
AP_NavEKF2: Increase allowable gyro bias offset
9 years ago
Andrew Tridgell
af23a681e0
AP_BoardConfig: improved docs for BRD_SAFETYENABLE
9 years ago
Peter Barker
b23f983459
autotest: add --gdb option to autotest.py
9 years ago
Lucas De Marchi
1f96336f7c
Global: rename bus type enum entries
9 years ago
Gustavo Jose de Sousa
f6bebc96c0
AP_InertialSensor: INS_generic: remove unused includes
9 years ago
Gustavo Jose de Sousa
e85ac8b2c5
AP_InertialSensor: inform maximum gyro average difference
...
While at it, define GYRO_INIT_MAX_DIFF_DPS.
9 years ago
Gustavo Jose de Sousa
e6f62080f5
AP_InertialSensor: fix best_diff on gyro initialization
...
Without this patch, if accel_diff.length() > 0.2f and j == 0, then
best_diff[k] would be zero forever since diff_norm[k] >= 0 for any j.
9 years ago
Gustavo Jose de Sousa
de94392759
AP_InertialSensor: MPU9250: remove _bus_type field
...
Use _dev->bus_type instead.
9 years ago
Gustavo Jose de Sousa
83feb2e2ae
AP_InertialSensor: MPU9250: let Device handle read flag
...
There's no need to handle that in MPU9250 anymore.
9 years ago
Gustavo Jose de Sousa
1e99a7125c
AP_InertialSensor: MPU9250: remove _register_write_check()
...
That function isn't used in the code base and there should be a better way to
debug writes on registers.
9 years ago
Gustavo Jose de Sousa
a6e5eb9e14
AP_InertialSensor: MPU6000: remove _bus_type field
...
Use _dev->bus_type instead.
9 years ago
Gustavo Jose de Sousa
0718649c8b
AP_InertialSensor: MPU6000: let Device handle read flag
...
There's no need to handle that in MPU6000 anymore.
9 years ago
Gustavo Jose de Sousa
309fe4a88c
AP_InertialSensor: MPU6000: remove _register_write_check()
...
That function isn't used in the code base and there should be a better way to
debug writes on registers.
9 years ago
Gustavo Jose de Sousa
d35cf60ce1
AP_HAL_Linux: I2CDevice: use read flag in read_registers_multiple
...
Use the generic support in Device interface for read flag when we are
using read_registers_multiple() method.
9 years ago
Gustavo Jose de Sousa
66f1ad9ed0
AP_HAL: Device: add support for read flag
...
Many of our SPI and I2C sensors define the protocol of setting the most
significant bit of the register address in order to perform a read operation.
Thus, enable the use of a "read flag" that is ORed with the register's address.
Since this is an abstraction for general devices, it's a good idea to have zero
as the default value for that flag.
While at it, add documentation to read_registers().
9 years ago
Gustavo Jose de Sousa
b6a1d598e3
AP_HAL: Device: document write_register()
9 years ago
Gustavo Jose de Sousa
4693501d9d
AP_HAL: Device: add bus_type field
...
Sometimes it's necessary to know the type of bus to make some decisions where
AP_HAL::Device abstraction is used.
9 years ago
Randy Mackay
7edb6e76f0
Copter: set terrain capabilities only if terrain code is compiled in
...
Thanks to OXINARF for finding this
9 years ago
Michael du Breuil
c2da36d505
GCS_MAVLink: fix race condition when recieving last waypoint
...
only shows up when the waypoint is about to time out
9 years ago
Andrew Tridgell
689595080a
AP_Airspeed: ensure we have at least 10 samples for airspeed cal
...
thanks to Michael for pointing out this issue
9 years ago
Andrew Tridgell
bf2e30f858
Plane: removed demo_servos()
...
this really didn't help much and slows down startup
9 years ago
Andrew Tridgell
66e43bf6a2
Plane: start with low integrator on back quadplane transition
...
When changing to alt_hold controller in quadplane with significant
airspeed set the initial integrator to minus the hover throttle to
allow the accel controller to climb slowly
9 years ago
Tom Pittenger
37f990bfad
AP_ADSB: allow param based VEHICLE list sizes, 1 to 100.
9 years ago
Lucas De Marchi
3a5bc141bb
build: use format macros in all linux boards
...
This doesn't work for px4 since it manually defines __STDC_FORMAT_MACROS
in some px4 modules, which needs to be updated.
9 years ago
Lucas De Marchi
b70b9ed8d1
AP_HAL_Linux: fix warning on 64b printf
...
../../libraries/AP_HAL_Linux/Perf.cpp: In member function ‘void Linux::Perf::_debug_counters()’:
../../libraries/AP_HAL_Linux/Perf.cpp:85:36: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
c.name, c.count);
^
9 years ago
Randy Mackay
dd5e8f3780
Copter: git ignore fence.txt
9 years ago
Randy Mackay
52d81f630f
Copter: pass polygon fence mavlink messages to fence
9 years ago
Daniel Ricketts
865aad7598
AC_Avoid: add support for stopping at polygon fence
9 years ago
Randy Mackay
26a6234a29
AC_Avoid: do not attempt to stop at circular fence if already breached
9 years ago
Randy Mackay
c6f9889a25
AC_Avoid: constify get_max_speed
...
Also get_stopping_distance and get_margin
9 years ago
Randy Mackay
5153c3d195
AC_Fence: merge with add polygon support
9 years ago
Randy Mackay
d91805edbf
AC_Fence: add support for polygon fences
9 years ago
Randy Mackay
f0bb1ac1d2
AC_Fence: AC_Polygon_loader loads points from eeprom
...
Thanks to Peter Barker for his work to library-ify Plane's geofence which was the basis for this work.
9 years ago
Daniel Ricketts
249d95b413
AP_Math: add Polygon_outside and Polygon_complete functions
9 years ago
Leonard Hall
80bda572ba
AC_AttutudeControl: Yaw shift fix
9 years ago
Randy Mackay
b61ae1a4a1
Copter: log EKF yaw reset event
9 years ago
Leonard Hall
f1bca63094
Plane: consolidate input_euler_angle calls to use smoothing gain
9 years ago
Leonard Hall
07cadc7ddd
Copter: rename limit_angle_to_rate_request to use_input_shaping
9 years ago
Leonard Hall
3b7658c502
Copter: land and crash detector use thrust angle error
...
The thrust angle error is the difference between our desired thrust vector
and the actual thrust vector
Also some changes to use definitions in place of constants in the checks
9 years ago
Leonard Hall
7d54c268f6
Copter: consolidate input_euler_angle calls to use smoothing gain
...
Previously we had _smooth and non-smooth methods in the attitude
controller but as part of the move to quaternions these have been replaced
by a single call which always takes a smoothing gain
9 years ago