Peter Barker
a5db4194bd
Tools: update PrintVersion.py for new firmware version location
2016-05-21 09:03:31 +10:00
Andrew Tridgell
b7fe96188d
Plane: raise range of THR_FS_VALUE
...
need to cope with reversed throttle
2016-05-21 07:39:02 +10:00
Andrew Tridgell
e0a9a8196c
Plane: fixed throttle failsafe with THR_PASS_STAB=1
...
this prevents using pass-thru throttle when in throttle failsafe
2016-05-21 07:39:02 +10:00
Gustavo Jose de Sousa
9a100afede
AP_HAL_Linux: Thread: add doc about rounding function
2016-05-20 16:31:15 -03:00
Lucas De Marchi
359417d544
AP_HAL_Linux: Thread: make sure pointer is aligned
...
Implementation of alloca() is very much architecture and compiler
dependent. Avoid the case in which it could return a non-aligned
pointer, which would mean Thread::_poison_stack() would do the wrong
thing.
2016-05-20 16:31:15 -03:00
Lucas De Marchi
7e49d0c53f
AP_HAL_Linux: Thread: fix alignment warning
...
../../libraries/AP_HAL_Linux/Thread.cpp: In member function ‘void Linux::Thread::_poison_stack()’:
../../libraries/AP_HAL_Linux/Thread.cpp:87:31: warning: cast from ‘uint8_t* {aka unsigned char*}’ to ‘uint32_t* {aka unsigned int*}’ increases required alignment of target type [-Wcast-align]
for (p = (uint32_t *) end; p > curr; p--) {
^
../../libraries/AP_HAL_Linux/Thread.cpp:93:31: warning: cast from ‘uint8_t* {aka unsigned char*}’ to ‘uint32_t* {aka unsigned int*}’ increases required alignment of target type [-Wcast-align]
for (p = (uint32_t *) end; p < curr; p++) {
^
../../libraries/AP_HAL_Linux/Thread.cpp:98:39: warning: cast from ‘uint8_t* {aka unsigned char*}’ to ‘uint32_t* {aka unsigned int*}’ increases required alignment of target type [-Wcast-align]
_stack_debug.start = (uint32_t *) begin;
^
../../libraries/AP_HAL_Linux/Thread.cpp:99:37: warning: cast from ‘uint8_t* {aka unsigned char*}’ to ‘uint32_t* {aka unsigned int*}’ increases required alignment of target type [-Wcast-align]
_stack_debug.end = (uint32_t *) end;
^
2016-05-20 16:31:15 -03:00
Lucas De Marchi
18af4da690
AP_HAL_Linux: Thread: fix warning regarding shadow member
...
../../libraries/AP_HAL_Linux/Thread.cpp: In member function ‘void Linux::Thread::_poison_stack()’:
../../libraries/AP_HAL_Linux/Thread.cpp:63:20: warning: declaration of ‘start’ shadows a member of 'this' [-Wshadow]
uint8_t *end, *start, *curr;
^
2016-05-20 16:31:15 -03:00
Tom Pittenger
684ac12dd6
AC_WPNav: fix compile when using AP_TERRAIN_AVAILABLE 0
2016-05-20 12:29:19 -07:00
Tom Pittenger
f085666032
AP_Common: fix compile when using AP_TERRAIN_AVAILABLE 0
2016-05-20 12:28:46 -07:00
Leandro Pereira
3555e439a4
AP_HAL_Linux: Simplify I2C initialization in HAL_Linux_Class
2016-05-20 10:12:17 -03:00
Aaron Wang Shi
cb9cd9008a
AP_HAL_Linux: fix bhat spi device driver build error
2016-05-20 10:09:50 -03:00
Lucas De Marchi
035937ea7e
AP_GPS: add some safety checks to _parse_decimal_100()
2016-05-20 10:06:45 -03:00
Lucas De Marchi
994b2fc966
AP_GPS: add unit test for _parse_decimal_100()
2016-05-20 10:06:44 -03:00
Lucas De Marchi
fc6dd97e61
AP_GPS: make _parse_decimal_100() a static function
...
This allows to easily write tests for it as opposed to having to
construct the entire object.
2016-05-20 10:06:44 -03:00
Bert Regelink
7379d120e1
AP_GPS: fix _parse_decimal_100() with negative numbers
...
_parse_decimal_100() did not parse the fractional part for negative
numbers. Furthermore, use the third decimal (when present) for proper
rounding.
2016-05-20 10:06:44 -03:00
Gustavo Jose de Sousa
0e09d0b996
waf: rename config_header variable to config_hash
...
That's a better name. The other name would give the wrong idea that that
variable would store a path to the header.
2016-05-20 09:45:53 -03:00
AndersonRayner
aaa8709194
AP_RPM: Added an example script
2016-05-19 19:01:03 -03:00
Don Gagne
151686ce9d
ArduPlane: SET_SENSORS_OFFSETS support for third compass
2016-05-19 18:51:17 -03:00
Don Gagne
97d361333d
ArduCopter: SET_SENSORS_OFFSETS support for third compass
2016-05-19 18:51:17 -03:00
Don Gagne
4743a34cf7
APMrover2: SET_SENSORS_OFFSETS support for third compass
2016-05-19 18:51:17 -03:00
Gustavo Jose de Sousa
bc62164ac9
waf: mavgen: scan for implicit dependencies
...
Process the input file to catch dependencies. Otherwise, changes in included
files wouldn't trigger the code regeneration.
2016-05-19 18:47:07 -03:00
Gustavo Jose de Sousa
0f60c8ed4f
waf: boards: check for librt when necessary
2016-05-19 18:15:06 -03:00
Gustavo Jose de Sousa
f10c150e70
waf: cxx_checks: add check_librt()
...
That function verifies for the necessity of linking against librt. If so, then
it checks if it is possible to do so.
2016-05-19 18:15:06 -03:00
Gustavo Jose de Sousa
e630c2b33f
waf: cxx_checks: define ap_common_checks() instead of configure()
...
That allow loading the cxx_checks tool before the calls to configure_env().
That way, we can add check functions to be used across boards.
2016-05-19 18:15:06 -03:00
Gustavo Jose de Sousa
83244dfe10
waf: cxx_checks: add copyright notice
2016-05-19 18:15:06 -03:00
Gustavo Jose de Sousa
468e8284f0
waf: cxx_checks: use check() instead of check_cxx()
...
check_cxx() is deprecated.
2016-05-19 18:15:06 -03:00
Gustavo Jose de Sousa
89ebe34992
mk: board_native: link with librt
...
This fix compilation errors on some systems that require linking with that
library in order to use some functions.
2016-05-19 18:15:06 -03:00
Vinicius Juvinski
ed2718a183
AP_Notify: Buzzer: change pin 11(P8_31) to pin 12(P8_32)
...
Avoid boot conflict during power on.
2016-05-19 17:22:27 -03:00
Lucas De Marchi
a9ae5476f3
waf: fix configure not using WAF_BUILD
...
The configure phase need the WAF_BUILD var defined, otherwise it will
execute code that's only meant for the make build system.
2016-05-19 09:53:41 -03:00
Randy Mackay
a9d16f3373
Copter: move auto's take-off check to beginning of auto_init
...
This ensures there are no side-effects of a failed switch to AUTO like stopping the vehicle or affecting the yaw mode
2016-05-19 19:43:24 +09:00
Randy Mackay
54731a139f
AP_Mission: rename starts_with_takeoff_cmd
2016-05-19 19:43:22 +09:00
Niti Rohilla
26e41fee7a
Copter: prevent Auto tipovers caused by missing takeoff command
2016-05-19 19:43:19 +09:00
Niti Rohilla
9ec0000691
AP_Mission: add check_takeoff_cmd
...
This checks that the first command in the mission is a takeoff command which helps avoid mission setup errors in which users forget to start a mission with a takeoff command
2016-05-19 19:43:17 +09:00
Allan Matthew
1f4ba62456
Rover: handle new MAVLink rangefinder input
2016-05-19 16:21:28 +09:00
Randy Mackay
793e3da904
Copter: rename variables used for NAV_DELAY command
2016-05-19 16:16:03 +09:00
Niti Rohilla
55f66b7696
Copter: Add support for MAV_CMD_NAV_DELAY
2016-05-19 16:16:02 +09:00
Niti Rohilla
d771017c25
AP_Mission: support MAV_CMD_NAV_DELAY command
2016-05-19 16:16:02 +09:00
Randy Mackay
28b52a6b78
Modules: update mavlink to include MAV_CMD_NAV_DELAY
2016-05-19 16:15:56 +09:00
Randy Mackay
67620f312d
AP_HAL: fix comment for get_time_utc
2016-05-19 16:05:29 +09:00
Niti Rohilla
faec752801
AP_HAL: add get_system_clock_utc functions to Util
2016-05-19 16:05:26 +09:00
Andrew Tridgell
4080c6091d
AP_NavEKF2: fixed an assumption that _ahrs->get_compass() always works
...
if MAG_ENABLE=0 in plane there is no compass
2016-05-19 14:16:40 +10:00
Lucas De Marchi
71e10c9132
AP_HAL_Linux: fix include order
...
Sort include alphabetically and make them in order:
Main header
system headers
library headers
local headers
While reordering, change a include of endian.h to our sparse-endian.h
which is more reliant to toolchain changes.
2016-05-18 23:05:56 -03:00
Lucas De Marchi
45c6b750f2
AP_HAL_Linux: remove ifdef checks for HAL_BOARD_LINUX
...
Everything inside libraries/AP_HAL_Linux is for Linux boards, there's
not need to add the ifdefs.
2016-05-18 23:05:56 -03:00
Lucas De Marchi
c4306de122
AP_Common: fix build on windows
...
The way the build was fixed for gcc >= 5.3 breaks the build for older
compiler versions on waf. Fix this by ifdef'ing for WAF_BUILD and
checking the compiler version.
2016-05-18 22:56:50 -03:00
Lucas De Marchi
11e508e3a6
waf: define WAF_BUILD to allow different behavior in make
2016-05-18 22:56:50 -03:00
Lucas De Marchi
9ccce2c980
AP_Compass: explicitely add compasses for erlebrain2, pxf and pxfmini
2016-05-18 18:24:14 -03:00
Lucas De Marchi
8372e74c0f
AP_Compass: simplify handling of sensors for Linux boards
...
In addition:
- bbbmini, navio and navio2 can force HMC5843 backend to
be external.
- there was a typo in the backend name that's now fixed:
AK8953 vs AK8963
2016-05-18 18:24:14 -03:00
Lucas De Marchi
1ddbafabdd
AP_Compass: add name field to internal compass drivers
2016-05-18 18:24:14 -03:00
Francisco Ferreira
f7f90546d1
ci: build PX4 with waf again
2016-05-18 15:36:48 -03:00
Francisco Ferreira
057124bd90
waf: px4: use lib/rc for v4
...
Some functions from that module are necessary for px4-v4.
2016-05-18 15:36:48 -03:00