Commit Graph

31843 Commits

Author SHA1 Message Date
Andrew Tridgell d4d7d1f734 AP_Math: avoid double maths when not needed 2018-05-07 11:43:23 +10:00
Andrew Tridgell c4fafa490f AP_Avoidance: fixed use of fabs() 2018-05-07 11:43:23 +10:00
Andrew Tridgell 27442e4a7b AP_Declination: use floorf() 2018-05-07 11:43:23 +10:00
Andrew Tridgell 553abda91c AP_NavEKF3: use single precision ceilf() 2018-05-07 11:43:23 +10:00
Andrew Tridgell 4404c95cc8 HAL_Linux: use ceilf() 2018-05-07 11:43:23 +10:00
Andrew Tridgell ce5db7b813 AP_Scheduler: fixed use of sqrt() 2018-05-07 11:43:23 +10:00
Andrew Tridgell a5fe798e7f GCS_MAVLink: we don't need the conversion helpers 2018-05-07 11:43:23 +10:00
Andrew Tridgell f2e2ece5a5 mavlink: submodule update 2018-05-07 11:43:23 +10:00
Andrew Tridgell 4e1d310959 AP_GPS: fixed use of pow() 2018-05-07 11:43:23 +10:00
Andrew Tridgell 86e85a7089 AP_Baro: fixed build warning 2018-05-07 11:43:23 +10:00
Andrew Tridgell 14cf54b2f0 AP_FlashStorage: fixed build warning 2018-05-07 11:43:23 +10:00
Andrew Tridgell 7cff648f8a StorageManager: fixed build warning 2018-05-07 11:43:23 +10:00
Andrew Tridgell 930d22daf9 AP_SmartRTL: fixed build warning 2018-05-07 11:43:23 +10:00
Andrew Tridgell 99884c89c9 AP_Scheduler: fixed build warning 2018-05-07 11:43:23 +10:00
Andrew Tridgell 61c8dfac31 AP_Math: split out double precision location functions
this allows ALLOW_DOUBLE_MATH_FUNCTIONS to be used
2018-05-07 11:43:23 +10:00
Andrew Tridgell a575608110 Rover: fixed build warnings 2018-05-07 11:43:23 +10:00
Andrew Tridgell cd8b001f63 Tracker: fixed build warning 2018-05-07 11:43:23 +10:00
Andrew Tridgell 9766c4ed26 AC_AttitudeControl: fixed use of double precision maths 2018-05-07 11:43:23 +10:00
Andrew Tridgell 48e27ab242 AP_Landing: fixed use of double precision maths
and rename log() to Log() to prevent name collision with libm function
2018-05-07 11:43:23 +10:00
Andrew Tridgell 3b8ec3a2a0 AP_Math: allow double precision maths where needed 2018-05-07 11:43:23 +10:00
Andrew Tridgell 53d36c02ae AP_GPS: enable double precision maths where needed 2018-05-07 11:43:23 +10:00
Andrew Tridgell 097632eeb3 AP_HAL: try to prevent use of double maths functions
this will help reduce the number of misuses of double precision maths
functions
2018-05-07 11:43:23 +10:00
Michael du Breuil 88ea7ac5fa AP_GPS: Remove software check from SBF driver 2018-05-06 14:52:04 -06:00
Randy Mackay c6638f66de Rover: Loiter mode for boats 2018-05-06 16:58:00 +09:00
Randy Mackay ce44326ba8 AR_AttitudeControl: fix get_steering_out_heading while reversing 2018-05-06 16:58:00 +09:00
Randy Mackay 341d75e0c9 AP_MotorsUGV: force throttle to zero when disarmed 2018-05-06 16:58:00 +09:00
Randy Mackay c69f7bb1d0 AP_MotorsUGV: consolidate parameter sanity checks 2018-05-06 16:58:00 +09:00
Randy Mackay c4804e4576 Rover: remove redundant avoidance call from steering 2018-05-06 16:58:00 +09:00
Peter Barker efdf03e27d AP_AdvancedFailsafe: remove rcmap member from AP_AdvancedFailsafe 2018-05-05 18:06:31 +09:00
Peter Barker 2e3a7fc5b6 Plane: remove rcmap member from AP_AdvancedFailsafe 2018-05-05 18:06:31 +09:00
Peter Barker 0b1091231c Rover: remove rcmap member from AP_AdvancedFailsafe
Also correct constructor for barometer

Also make it compile again
2018-05-05 18:06:31 +09:00
Peter Barker dc61884303 Copter: remove rcmap member from AP_AdvancedFailsafe 2018-05-05 18:06:31 +09:00
Randy Mackay f8711f70c9 Tools: correct sitl rover-skid default params
steering rate P gain was too high, default is better
2018-05-05 10:13:06 +09:00
Andrew Tridgell dcab51801c HAL_ChibiOS: implement boost_end
this fixes problems with main thread priority and SPI bus delays on
fmuv3
2018-05-05 07:45:53 +10:00
Andrew Tridgell 5ae410f7ca AP_AHRS: called boost_end() on AHRS update 2018-05-05 07:45:53 +10:00
Andrew Tridgell 84a4f9dc96 AP_HAL: added boost_end() method to Scheduler API
this allows for a better method of controlling main thread priority
2018-05-05 07:45:53 +10:00
Lucas De Marchi 0355b1a340 waf: update submodule 2018-05-04 11:47:50 -07:00
Lucas De Marchi 98c741803f build: change default installation prefix to /usr 2018-05-04 11:47:50 -07:00
Lucas De Marchi 997d9f58de build: invert default for header checks
In the end the build time is always almost the same, but it's a pain to
change one header and have it check the world. CI continues to use the
check so we can get any mistake before merging.
2018-05-04 11:47:04 -07:00
Lucas De Marchi 7c068ee8ef build: add command to output currently configured board
./waf board now shows what's the currently configured board. Same as
    grep "'board':" build/.lock-waf*

but in a more pleasant way.
2018-05-04 11:47:04 -07:00
Lucas De Marchi 3ecc138c86 build: move more Linux-only options inside group
prefix, destdir, libdir, bindir only make sense for Linux targets.
2018-05-04 11:47:04 -07:00
Lucas De Marchi 73edda697d build: align help options
While it's aesthetically nice to start the help message in a new line
looking at the code, the first \n screws the output leaving them not
aligned.
2018-05-04 11:47:04 -07:00
Lucas De Marchi 9342bc5050 build: invert default for lttng
Since it's a debug option, particularly for the scheduler, leave it
disabled by default and let the user enable on demand.
2018-05-04 11:47:04 -07:00
Lucas De Marchi 4697089a82 build: move Linux configuration options to its own sections 2018-05-04 11:47:04 -07:00
Lucas De Marchi b1b4b66e65 AP_HAL_Linux: minlure: fix uart path
In some point in past it may have been ttyS2, but right now on kernel
4.16+ the UART is on ttyS5. We could do like is done for I2C and search
on sysfs, but it requires additional changes.
2018-05-04 11:47:04 -07:00
Lucas De Marchi b54b95de12 AP_HAL: minlure: search for specific I2C controller
The number can change from one kernel version to another and even from
one boot to another. Find the I2C controller on sysfs and stick to that,
like it's done for PCA9685.
2018-05-04 11:47:04 -07:00
Lucas De Marchi 320db1d79b AP_HAL_Linux: remove unused i2c devpaths 2018-05-04 11:47:04 -07:00
Lucas De Marchi 2000e17646 AP_HAL: move get_device() method from AP_HAL_Linux
This way it's possible to use the method in platform-independent code
without a need to up cast.
2018-05-04 11:47:04 -07:00
Lucas De Marchi 4f2498947b AP_HAL_Linux: remove redundant ifdef
CONFIG_HAL_BOARD_SUBTYPE should be set in the boards header.
2018-05-04 11:42:55 -07:00
Lucas De Marchi 904888fba7 DataFlash: Linux boards never use /fs 2018-05-04 11:42:55 -07:00