Francisco Ferreira
a74a7e5dfe
ci: update ccache and improve its support
...
Update ccache to 3.2.5
Set ccache size
Display ccache statistics for each build
Disable ccache for configure phase
Export ccache bin path
travis: remove ccache stats before saving cache
2016-05-25 11:38:51 -03:00
Andrew Tridgell
736c162d21
Replay: added --param-file option
2016-05-25 20:46:18 +10:00
Andrew Tridgell
600c23f3bf
Replay: use SCHED_LOOP_RATE for loop rate if available
2016-05-25 10:45:46 +10:00
Peter Barker
0c70f0fc35
sim_vehicle.py: correct rebase
2016-05-24 21:02:36 +10:00
khancyr
c9e877b3a5
sim_vehicle.py : reorder frame by type
2016-05-24 19:54:12 +10:00
khancyr
25066be990
sim_vehicle.py : add hexacopter
2016-05-24 19:53:36 +10:00
Grant Morphett
2f7a386b30
Rover: Added the new skid steering parameters file for SITL.
2016-05-24 12:24:53 +10:00
Grant Morphett
d993c25cb1
Rover: Added skid steering rover as frame type for SITL.
2016-05-24 12:24:53 +10:00
Grant Morphett
6d675dfcb7
Rover: Just fixing a type in the default params.
...
Should of been RC1, not RC2. I also added a couple of other default
parameters for completeness.
2016-05-24 12:24:53 +10:00
Lucas De Marchi
92411402b6
Tools: remove support for flymaple
2016-05-23 21:49:45 -03:00
Lucas De Marchi
563614e84b
waf: check for libiio for all linux boards
2016-05-23 12:06:42 -03:00
Lucas De Marchi
04fc1e22da
waf: check for lttng-ust for all linux boards
2016-05-23 12:06:42 -03:00
Lucas De Marchi
9ac6c399e9
waf: accept env variable to append library
...
Change check_librt() to do everything it needs to check for librt.
2016-05-23 12:06:42 -03:00
Andrew Tridgell
a1c52415e9
waf: pass mavlink include path into cmake build
2016-05-21 15:25:18 +10:00
Andrew Tridgell
7e7c21d114
waf: update for MAVLink2 build
2016-05-21 15:25:17 +10:00
Andrew Tridgell
d521852f84
autotest: make -P2 only control mavproxy mavlink protocol version
2016-05-21 15:25:15 +10:00
Andrew Tridgell
511ca6d764
autotest: support -P2 option for SITL with MAVLink2
2016-05-21 15:25:11 +10:00
Paul Riseborough
b1e9207c0f
Replay: extend ekf fault status reporting coverage
2016-05-21 15:13:51 +10:00
Randy Mackay
00445ce7bd
SITL: parameter file to enable rangefinder in copter
2016-05-21 10:36:53 +09:00
Peter Barker
a5db4194bd
Tools: update PrintVersion.py for new firmware version location
2016-05-21 09:03:31 +10: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
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
Gustavo Jose de Sousa
8578d7c16f
waf: px4: don't add libarm_cortexM4lf_math.a to extra libs
...
This is following d02abf2 ("Removed CMSIS.") from PX4Firmware.
2016-05-18 15:36:48 -03:00
Gustavo Jose de Sousa
de96ca95a6
CPUInfo: cast result of sizeof to unsigned long
...
That fix works when size_t is 32 or 64 bits.
2016-05-18 15:36:48 -03:00
Gustavo Jose de Sousa
f29d8bd42c
waf: px4: set ARDUPILOT_BUILD cmake variable
...
That allow changing PX4Firmware build system to accommodate ardupilot's build.
2016-05-18 15:36:48 -03:00
Gustavo Jose de Sousa
5b91a6e065
Tools: magcal_graph: add mavproxy module
...
That is added as a reference implementation on how to interpret the field
`completion_mask` from the `MAG_CAL_PROGRESS` mavlink message.
2016-05-18 13:28:52 -03:00
Gustavo Jose de Sousa
2b57c146fe
Tools: sitl_calibration: add note on using calibration model
...
This can avoid users having problems as reported at issue #4088 ("Calibration
not working in sitl").
2016-05-18 13:28:52 -03:00
Gustavo Jose de Sousa
91e7f02d9d
Tools: sim_vehicle: add calibration frame
...
The module `sitl_calibration` is loaded for convenience.
2016-05-18 13:28:52 -03:00
Gustavo Jose de Sousa
41f5602fea
Tools: sim_vehicle: add local mavproxy modules path to PYTHONPATH
...
That's helpful for users that don't have that in their PYTHONPATH environment
variable and want to load a local module.
2016-05-18 13:28:52 -03:00
Gustavo Jose de Sousa
ede0360ee1
Tools: sim_vehicle: allow passing keywords to run_cmd_blocking
...
That is redirected to subprocess.Popen().
2016-05-18 13:28:52 -03:00
Lucas De Marchi
524b0870ff
Tools: remove unused Linux scripts/sources
2016-05-18 11:51:45 -03:00
mblsktxy
bc5fb10ddc
Added name to GIT_Success.txt
2016-05-18 10:26:31 +09:00
Glody Guo
cda21a3d78
Fix argument 'valgrind' issue about fly.CopterAVC test
...
Commit 8774f15
causes fly.CopterAVC test failure.
Here is the failure info below:
>>>> FAILED STEP: fly.CopterAVC at Tue May 17 13:21:56 2016 (fly_CopterAVC() got an unexpected keyword argument 'valgrind')
Traceback (most recent call last):
File "./Tools/autotest/autotest.py", line 406, in run_tests
if not run_step(step):
File "./Tools/autotest/autotest.py", line 232, in run_step
return arducopter.fly_CopterAVC(viewerip=opts.viewerip, map=opts.map, valgrind=opts.valgrind)
TypeError: fly_CopterAVC() got an unexpected keyword argument 'valgrind'
('check step: ', 'fly.CopterAVC')
FAILED 1 tests: ['fly.CopterAVC']
Here is the commit info below:
commit 8774f15b9a
Author: Peter Barker <pbarker@barker.dropbear.id.au>
Date: Mon Apr 11 18:05:39 2016 +1000
Tools: add valgrind option to autotest.py
:040000 040000 a111bc5b18
609503f3b1
M Tools
2016-05-17 21:36:57 +10:00
Peter Barker
27e7c870ed
Tools: remove absolute paths in run_in_terminal_window
...
Also add quotes to avoid ambiguous redirect issue
2016-05-16 19:39:37 +10:00
Andrew Tridgell
4116f80901
Replay: added --no-params option
2016-05-16 17:22:11 +10:00
Peter Barker
18e0131680
sim_vehicle.py: avoid requesting process name on zombie process
...
This method does on OSX - in a non-catchable way prior to Py3
2016-05-16 17:18:32 +10:00
Peter Barker
38010cf3f3
sim_vehicle.py: wrap jsbsim version fetch in a try
2016-05-16 11:58:53 +10:00
Ricardo de Almeida Gonzaga
1062aed91e
Tools: Fix typos
2016-05-13 19:20:07 -03:00
Francisco Ferreira
1ae85be918
autotest: fix copter_mission
...
Conditional command was left when change_alt command was removed and is now useless. Also fix jump to do what it did before
2016-05-13 19:06:03 +09:00
Francisco Ferreira
ae5fdc2fde
autotest: if auto mission fails, land the copter
2016-05-13 19:06:00 +09:00
Francisco Ferreira
c873524966
autotest: change wait_waypoint mode check
...
If we change mode while waiting for waypoints then we are no longer running the mission and should fail
2016-05-13 19:05:57 +09:00
khancyr
14e2fa5642
sim_vehicle.py : load Rover default params
...
related to https://github.com/ArduPilot/ardupilot/issues/4090
2016-05-13 08:53:53 +10:00
Peter Barker
f33cdaa212
sim_vehicle.py: add --strace option
2016-05-13 08:43:08 +10:00
Gustavo Jose de Sousa
4529028c8a
waf: ardupilotwaf: ap_get_all_libraries: ignore non-directory files
...
Each library in ardupilot is a folder with the source in. That avoids build
failures when there are files in libraries/. That fixes #4099 ("waf doesn't
seem to like TAGS files") and #4093 ("sim_vehicle.py /w waf /w eclipse project
broken on Cygwin").
That problem can be reproduced by just creating a file in libraries/ and trying
to build with waf.
There should be a better way to confirm a path is an ardupilot library. That
can be done later.
2016-05-12 13:47:44 -03:00
Lucas De Marchi
b012d5bb7b
sim_vehicle.py: fix error to find binary
...
When trying to execute sim_vehicle.py this is the current output:
Warning: Could not find '../Tools/autotest/../../ArduCopter/../build/sitl/bin/arducopter-quad',
starting '/bin/bash' instead. Please check your profile settings.
Fix the path to the binary and use absolute paths to ease the debug.
2016-05-12 00:34:02 -03:00
Lucas De Marchi
ad8cedc452
sim_vehicle.py: remove unused AUTOTEST variable
2016-05-12 00:31:37 -03:00
Lucas De Marchi
e772c70536
sim_vehicle.py: use helper function to execute blocking command
2016-05-12 00:31:07 -03:00
Lucas De Marchi
1ef9eb637f
sim_vehicle.py: configure project only once
2016-05-11 23:44:24 -03:00
Lucas De Marchi
7a548e45f9
sim_vehicle.py: default to -j1 if running in compat mode
2016-05-11 23:34:49 -03:00
Pierre Kancir
03e565ee47
sim_vehicle.py : change default number of jobs
...
By default waf use the max num of proc available. So let it set jobs by
itself. On contrary, with make only use one job by default.
2016-05-11 22:55:30 -03:00
Francisco Ferreira
efc3f5058b
ci: simplify build script
2016-05-11 22:48:03 -03:00
khancyr
bb648280ae
sim_vehicle.py: correct APMrover2 typo
2016-05-11 09:43:06 +02:00
Peter Barker
b7d1e047aa
sim_vehicle.py: correct binary to use for --debug
2016-05-11 16:37:34 +10:00
Andrew Tridgell
45609bb568
autotest: don't use --sitl if using flightaxis
...
we want rc override if using flightaxis
2016-05-11 05:55:25 +10:00
Andrew Tridgell
401b8d4fa6
autotest: use channel 13 for firefly tilt
2016-05-11 05:55:25 +10:00
Andrew Tridgell
cafc3f131e
autotest: improved firefly default parameters
2016-05-11 05:55:24 +10:00
Andrew Tridgell
5b3e4fc47a
autotest: adjust tricopter parms for default yaw servo
2016-05-11 05:55:24 +10:00
Andrew Tridgell
12e5b7881f
autotest: use more default parms for quadplanes
2016-05-11 05:55:24 +10:00
Andrew Tridgell
b3cb83731c
autotest: added quadplane-tilttri model
2016-05-11 05:55:24 +10:00
Lucas De Marchi
cb0ffc0e07
Replay: fix build error due to missing noreturn
...
Add noreturn attribute to field_not_found(). This function always call
abort() if the field was not found. The compiler may not know about it
and may think some variables are used uninitialized:
../../Tools/Replay/LR_MsgHandler.cpp: In member function ‘void LR_MsgHandler_GPA_Base::update_from_msg_gpa(uint8_t, uint8_t*)’:
../../Tools/Replay/LR_MsgHandler.cpp:212:24: error: ‘sacc’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
gps.setHIL_Accuracy(gps_offset, vdop*0.01f, hacc*0.01f, vacc*0.01f, sacc*0.01f, have_vertical_velocity, sample_ms);
^
Instead of just initializing the variable (which is pointless in this case),
teach the compiler that this function never returns so require_field() works
properly.
2016-05-10 16:15:41 -03:00
Lucas De Marchi
f04b954a1c
build_binaries.sh: fix typo on rebase
2016-05-10 14:34:30 -03:00
Lucas De Marchi
06f5a3ac39
build_binaries.sh: replace tabs with spaces
2016-05-10 14:32:47 -03:00
abilbaotm
9814955eef
Update build_binaries.sh
2016-05-10 14:31:36 -03:00
LanderU
df84cde3e6
Added erlebrain2 in build_binaries.sh
2016-05-10 14:28:22 -03:00
dgrat
76362caee0
AP_Math: Replace wrap_* functions with template versions
2016-05-10 11:41:26 -03:00
Gustavo Jose de Sousa
a136e42d39
Tools: sitl_calibration: fix mavlink_packet() for magcal
...
That controller shouldn't actuate when inactive.
2016-05-10 10:56:28 -03:00
Gustavo Jose de Sousa
c77e763eca
Tools: sitl_calibration: add sitl_magcal command
2016-05-10 16:16:38 +10:00
Gustavo Jose de Sousa
fcc80de20a
Tools: sitl_calibration: add sitl_accelcal command
2016-05-10 16:16:38 +10:00
Gustavo Jose de Sousa
363f241e9a
Tools: sitl_calibration: add initial implementation
...
Add initial implementation to interface with SITL calibration model.
2016-05-10 16:16:38 +10:00
Andrew Tridgell
84d45cce40
Replay: fixed log rate detection
2016-05-10 15:40:48 +10:00
Andrew Tridgell
fcd7611248
waf: ensure we don't build a library twice
2016-05-10 14:21:43 +10:00
Andrew Tridgell
2f656c187a
waf: cope with -ve return from mavgen on segv
2016-05-10 13:41:48 +10:00
Andrew Tridgell
9653aae21f
waf: fixed link of antennatracker on windows
2016-05-10 12:48:41 +10:00
Andrew Tridgell
5ef0c4d3fe
waf: added AP_RPM to build
2016-05-10 12:20:44 +10:00
Andrew Tridgell
237b63284b
waf: fixed typo
2016-05-10 12:17:44 +10:00
Lucas De Marchi
e5a21cd459
waf: allow mavgen to segfault without failing
...
This is a hackish way to allow waf running on windows. In some
combinations of the tools the python interpreter seems to be crashing on
windows:
Found 180 MAVLink message types in 2 XML files
Generating C implementation in directory /tmp/ArduPlane.build/libraries/GCS_MAVLink/include/mavlink/v1.0/ardupilotmega
Generating C implementation in directory /tmp/ArduPlane.build/libraries/GCS_MAVLink/include/mavlink/v1.0/common
Copying fixed headers
last line in mavgen.py
Aborted (core dumped)
michael@WIN-3NBOUTHN4TN /cygdrive/c/Users/michael/Desktop/DIYDrones/ardupilot/ArduPlane
$ echo $?
134
Here we check the return code to be greater than 128 since that means the
interpreter received a signal. In this case we clear the return code.
2016-05-10 12:17:10 +10:00
Andrew Tridgell
276f5dd3f1
Replay: use a larger LOG_FILE_BUFSIZE for Replay
2016-05-09 13:58:37 +10:00
Andrew Tridgell
248ce2e0e6
Replay: enable LOG_REPLAY in replay
2016-05-09 12:48:30 +10:00
Peter Barker
5d24f0de23
sim_vehicle: use waf --debug option to create debug builds
2016-05-09 08:59:59 +10:00
Lucas De Marchi
b07acea6b6
Tools: get version exclusively from version.h
2016-05-07 22:55:48 -03:00
Gustavo Jose de Sousa
ff46384258
waf: add --debug configuration option
...
That sets a variant <board>-debug.
2016-05-07 22:55:03 -03:00
Peter Barker
50330e22d4
sim_vehicle.py: set default_waf_target, clearer help
...
sim_vehicle.py: choose default waf_target based on specified vehicle
sim_vehicle.py: add --no-rebuild-on-failure option
sim_vehicle.py: make help clearer by adding option groups
2016-05-08 09:57:11 +10:00
Peter Barker
39c29820c4
sim_vehicle.py: avoid exception when frame information not found
2016-05-08 00:31:23 +10:00
Andrew Tridgell
d1a2749317
waf: fixed build for AP_Tuning
2016-05-07 18:34:11 +10:00
Andrew Tridgell
dbe9091d58
Replay: set last sample time for GPS
2016-05-07 18:27:23 +10:00
Andrew Tridgell
7abaa75653
Replay: added --logmatch option
...
match logging rate to input log
2016-05-07 18:27:22 +10:00
Andrew Tridgell
c2aeb058cd
Replay: mark GPA as generated
2016-05-07 18:27:22 +10:00
Andrew Tridgell
468f020b51
Replay: cope with GPS ground couse in degrees
2016-05-07 18:27:21 +10:00
Andrew Tridgell
2bcd3c48f0
Replay: use baro last update time if available
2016-05-07 18:27:21 +10:00
Andrew Tridgell
0571f86c17
Replay: handle float ground speed in GPS
2016-05-07 18:27:21 +10:00
Andrew Tridgell
d116071054
Replay: use new setHIL API for baro
2016-05-07 18:27:20 +10:00
Andrew Tridgell
827551c99f
Replay: added replay of GPS speed accuracy
2016-05-07 18:27:20 +10:00
Andrew Tridgell
772acf056b
Replay: fixed overriding of parameters
...
bug was later PARM messages in log
2016-05-07 18:27:19 +10:00
Andrew Tridgell
295c65277d
Replay: restore exact timestamp in HIL
2016-05-07 18:27:19 +10:00