Lucas De Marchi
c9fbf7b722
global: use static method to construct AP_NavEKF3
2017-09-26 03:01:21 +01:00
Lucas De Marchi
e2fe36357a
global: use static method to construct AP_NavEKF2
2017-09-26 03:01:21 +01:00
Lucas De Marchi
72fd2d6f05
global: use static method to construct AP_SerialManager
2017-09-26 03:01:21 +01:00
Lucas De Marchi
40fd1b346c
global: remove rangefinder from AP_AHRS_NavEKF
...
AP_AHRS_NavEKF doesn't use the rangefinder, it just delegates the
calls to the right estimator.
For libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.cpp the initialization
order has also been modified to match the order on vehicles. It's more
correct since it passes a reference when EKF2/EKF3 are already
constructed, while thos constructors use a pointer. Ideally these
should be moved to an init() method though, or use a get_instance().
2017-09-26 03:01:21 +01:00
Lucas De Marchi
9027a55696
global: use static method to construct RangeFinder
2017-09-26 03:01:21 +01:00
Lucas De Marchi
53c82b4aaf
global: use static method to construct DataFlash_Class
2017-09-26 03:01:21 +01:00
Lucas De Marchi
8094482f21
global: use static method to construct AP_GPS
2017-09-26 03:01:21 +01:00
Lucas De Marchi
87b30b4552
global: use static method to construct AP_InertialSensor
2017-09-26 03:01:21 +01:00
Lucas De Marchi
c1a957fbf3
global: use static method to construct Compass
2017-09-26 03:01:21 +01:00
Lucas De Marchi
91feec0e14
global: use static method to construct AP_Baro
2017-09-26 03:01:21 +01:00
cclauss
654bb6ffce
Tools: runplanetest.py: Remove redundant parenthesis
...
This syntax error was mistakenly introduced in #6999 .
2017-09-25 14:55:51 +01:00
Lucas De Marchi
cd81b27c05
build: protect ap_version.h from inclusion
2017-09-23 21:37:45 -07:00
cclauss
a906d31c23
Tools: runplanetest.py: Resolve undefined name
...
Fixes : #6839
Undefined names can raise [NameError](https://docs.python.org/2/library/exceptions.html#exceptions.NameError ) at runtime.
2017-09-24 13:54:58 +10:00
cclauss
e5256d0bd5
Tools: TestPitchRollCoupling.py: Change usage of next()
...
__lit.next()__ is not Python 3 compatible but __next(lit)__ is compatible with both Python 2 and 3.
2017-09-24 12:36:03 +10:00
Peter Barker
ac3cb355c4
Tools: LogAnalyzer: fix bugs, handle newer log formats
...
Tools: LogAnalyzer: avoid fatal error if mag data is all zeros
Tools: LogAnalyzer: correct comparisons against logdata.vehicleType
Tools: LogAnalyzer: handle logs with TimeUS in place of TimeMS
Tools: LogAnalyzer: handle logs with CTUN.ThO in place of CTUN.ThrOut
Tools: LogAnalyzer: correct motor average value
2017-09-24 12:34:23 +10:00
Peter Barker
a87814b325
Tools: rename runfliptest.sh to runfliptest.py
...
As this is a Python script
2017-09-24 08:52:40 +10:00
cclauss
d2eec2db29
Tools: runfliptest.sh: Resolve undefined name
...
Fixes : #6839 (partial fix)
Undefined names can raise [NameError](https://docs.python.org/2/library/exceptions.html#exceptions.NameError ) at runtime.
2017-09-24 08:50:37 +10:00
cclauss
d583bb9cbc
Tools: update_wiki.py: fix syntax error
...
SyntaxError: print() is a function in Python 3
2017-09-23 21:44:56 +10:00
cclauss
f266c82040
Tools: magfit_flashlog.py: fix syntax errors
...
SyntaxError: print() is a function in Python 3
2017-09-23 21:44:11 +10:00
José Roberto de Souza
c6b19131ba
ardupilotwaf: AeroFC: Remove unused tools
...
before
BUILD SUMMARY
Build directory: /home/zehortigoza/dev/ardupilot/build/aerofc-v1
Target Text Data BSS Total
------------------------------------------------
bin/arducopter 860324 2032 55220 917576
bin/arducopter-heli 844204 2028 55028 901260
after
BUILD SUMMARY
Build directory: /home/zehortigoza/dev/ardupilot/build/aerofc-v1
Target Text Data BSS Total
------------------------------------------------
bin/arducopter 852248 2024 55156 909428
bin/arducopter-heli 836120 2020 54964 893104
2017-09-21 13:40:41 -07:00
Lucas De Marchi
015242c89b
Tools: add params for Aero Compute Board
...
These are the parameter for Aero Compute Board to fly Intel Aero RTF
without the flight controller, using just the internal sensors
on the Linux side.
2017-09-21 07:59:20 -07:00
Peter Barker
5a19301606
Tools: autotest: add a test for setting of modes using CMD_DO_SET_MODE
2017-09-19 01:24:11 +01:00
mirkix
6bc4ab638a
Tools: Add SITL tilthvec frame and default parameters
2017-09-18 21:20:39 +10:00
Peter Barker
27650c08aa
Tools: autotest: use -z in place of -v for checking variable settedness
...
Some bash versions out there don't like -v
2017-09-18 08:26:22 +10:00
Peter Barker
78a0298af0
Tools: autotest.py: look at EKF flags to determine armability
2017-09-15 15:57:11 +01:00
Peter Barker
d475b91564
Tools: Replay: pass a lambda function to LR_MsgHandler_PARM to set parameters
...
This avoid duplication of parameter setting logic.
2017-09-14 13:43:50 +01:00
Randy Mackay
ebea292d63
Tools: add frame params for eLAB 470 quad
2017-09-13 17:55:05 +09:00
Peter Barker
406f4a9ca7
Tools: generate-manifest: print errors to stderr
2017-09-13 10:09:00 +10:00
Lucas De Marchi
83b9518a49
build: remove raspilot
2017-09-12 15:06:19 -07:00
Peter Barker
0062084c40
Tools: Replay: option to print packet counts out at end
2017-09-12 19:01:59 +01:00
Francisco Ferreira
efc42edabe
waf: remove URUS
2017-09-11 10:04:11 -07:00
Marco Robustini
b4f46b14f0
Tools: add Marco's flying field to locations file
2017-09-11 17:58:01 +01:00
Peter Barker
20bfb82a7b
Tools: autotest.py: add --no-clean and --no-configure options
2017-09-11 12:45:27 +10:00
Peter Barker
e505635ddd
Tools: sim_vehicle: make gdb-stopped work again
2017-09-11 12:30:00 +10:00
Peter Barker
7f2882f54b
Tools: LogAnalyzer: cope with renamed GPS fields
2017-09-11 12:05:12 +10:00
Peter Barker
2c0e2aab15
Tools: LogAnalyzer: derive motor count from frame type MSG
2017-09-11 12:01:24 +10:00
Francisco Ferreira
84efe7e6f5
Tools: ci: reduce ccache sizes
2017-09-08 16:33:15 +01:00
Francisco Ferreira
be88b5a6e8
Tools: ci: get ccache statistics for SITL test
2017-09-08 16:33:15 +01:00
Francisco Ferreira
129fde128a
Tools: ci: let waf decide number of jobs for building SITL test
2017-09-08 16:33:15 +01:00
Francisco Ferreira
aa6b997a0b
Tools: ci: use number of CPUs to choose number of jobs on Make builds
2017-09-08 16:33:15 +01:00
Francisco Ferreira
c073263c8d
Tools: ci: disable ccache for Make builds
2017-09-08 16:33:15 +01:00
Francisco Ferreira
80e784c93d
Tools: ci: only do Make builds in some special cases
...
build using Make system for PX4-v3 or, if it is a cron job, for all PX4 boards and SITL
2017-09-08 16:33:14 +01:00
davidaroyer
bde8252359
waf: add support for Aerotenna OcPoC-Zynq hardware
2017-09-08 07:30:49 -07:00
Peter Barker
2738fc34f0
Tools: autotest.py: exit if step not matched
...
Also, stop shadowing a variable
2017-09-08 21:51:26 +10:00
Peter Barker
b5e206f72f
Replay: print some statistics on exit
2017-09-06 02:30:38 +01:00
Peter Barker
6928618de8
Tools: autotest.py: allow specification of a buildlogs directory
2017-09-01 23:39:38 +10:00
Peter Barker
681a5b5c2c
Tools: initvagrant: allow autotest to run
2017-09-01 23:39:38 +10:00
Luis Vale Gonçalves
c046824ce7
Added our testing location
...
Added testing location at Tagus Park, Oeiras, Portugal
2017-08-31 14:16:10 -07:00
Jacob Walser
19086e34f0
Frame_params: update BlueROV2 defaults for 3.5.1
2017-08-30 17:49:34 -04:00
Peter Barker
f0096d3c7a
Tools: apmrover2.py: add a test for MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES
2017-08-30 15:54:47 +01:00
Peter Barker
324d9f3c7d
Tools: apmrover2.py: add a test for MAV_CMD_DO_GET_BANNER
2017-08-30 15:54:47 +01:00
Peter Barker
1b7122d733
Tools: add a --speedup parameter to autotest to control speed of all sims
2017-08-29 22:49:40 +01:00
Francisco Ferreira
2645760d19
Tools: sim_vehicle.py: fix small bug introduced in e298e87
...
Thanks to @cclauss for finding this
2017-08-29 12:16:23 +01:00
Peter Barker
e298e87791
sim_vehicle: add --callgrind option
2017-08-28 13:47:27 +01:00
cclauss
0f08207bdb
Tools: define reduce() for Python 3
...
`reduce()` is called on line 55. Python 3 dropped reduce() as a builtin. https://docs.python.org/3/whatsnew/3.0.html#builtins encourages the rewriting of reduce() calls as explicit for loops or list comprehensions but I am not confident to try that in this context.
2017-08-28 11:43:39 +10:00
Peter Barker
24e616af7d
Tools: autotest.py: factor write_fullresults
2017-08-26 17:54:32 +01:00
Andrew Tridgell
8d0d4fe40a
Tools: added script to decode Saleae CSV capture file
2017-08-26 09:56:25 +10:00
Peter Barker
0334cc1c88
Tools: correct copter's fly_throttle_failsafe failure case
2017-08-26 09:36:09 +10:00
cclauss
13894506f4
from math import sqrt
...
Make the call match the import
2017-08-25 09:04:15 -07:00
cclauss
b26b6f07bd
from math import sqrt
...
sqrt() is called on lines 198, 200, 208. Without this change, sqrt() is an undefined name.
2017-08-25 09:04:15 -07:00
Francisco Ferreira
415cb41c7f
Tools: add gdbserver option to Rover autotest
...
commit 38297c4
missed changing Rover file
2017-08-25 02:38:12 +01:00
Peter Barker
a7b919f025
Tools: do not attach gdb to gdbserver unless --gdb is given
2017-08-24 21:37:06 +10:00
Miguel Arroyo
38297c4d19
Tools: Adds GDBServer with screen option for debugging
2017-08-24 21:37:06 +10:00
khancyr
db3c387916
Tools: update relay pins for brushed motors in SITL
2017-08-24 20:10:32 +09:00
Lucas De Marchi
bfe2acac33
build: add -Wno-attributes for PX4
...
This will allow us to use [[fallthrough]] attribute as an
statement.
2017-08-22 23:59:13 -07:00
Randy Mackay
cd8661c665
Replay: integrate simpler Log_Write_EKF
2017-08-23 11:19:14 +09:00
Andrew Tridgell
f5d91f63d2
autotest: fixed firefly parameters
2017-08-20 09:37:00 +10:00
khancyr
e116ec4eb0
Rover: update SITL parameters
2017-08-17 09:47:39 +09:00
Randy Mackay
7df73c50e8
SITL: remove unnecessary THR_MAX parameter default
2017-08-17 09:39:40 +09:00
Lucas De Marchi
47968cda09
scripts: don't set PKG_CONFIG_PATH globally
...
It was done only for Bebop, but we build it statically so it has
actually no effect.
2017-08-16 10:51:59 -07:00
Lucas De Marchi
8a9a08ed9b
build: generalize link fix
2017-08-16 10:51:59 -07:00
Miguel Arroyo
a2f327678b
waf: Fix for lttng linking
2017-08-16 10:51:59 -07:00
Jacob Walser
8121091fb6
Sub: Don't configure RC params in SITL
2017-08-16 11:37:46 -04:00
Francisco Ferreira
d41dd7e7e7
waf: add workaround for PE linker not removing unused methods
2017-08-15 21:51:08 +01:00
Michael du Breuil
1b6c3aeea1
Replay: Avoid linking AFS
2017-08-15 15:14:56 +01:00
Randy Mackay
9b63c8751f
SITL: rover default params in alphabetical order
2017-08-15 20:47:19 +09:00
Randy Mackay
1582bd85af
SITL: update rover default parameters
2017-08-15 20:47:19 +09:00
Peter Barker
d8e260874d
Tools: copyit must always be given fourth, src, parameter
2017-08-15 13:09:45 +10:00
Peter Barker
953eefa024
Tools: include Sub in the list of known vehicles for PrintVersion
2017-08-15 11:49:35 +10:00
Peter Barker
a2af13c17e
Tools: calibrate SITL sub RC in autotest's sub parameters
2017-08-14 15:32:25 +09:00
Daniel Orbach
3c66663880
Tools: autotest.py: Squashed the code for default.* steps in run_step().
2017-08-14 12:16:29 +10:00
Daniel Orbach
91e25bb937
Tools: autotest.py: Made use of shutil.copy2() where appropiate.
2017-08-14 12:16:29 +10:00
Daniel Orbach
befd8b028b
Tools: autotest.py: Moved all imports to top of file.
2017-08-14 12:16:29 +10:00
Daniel Orbach
e951df7d50
Tools: autotest.py: Simplified binary_path through lookup table
2017-08-14 12:16:29 +10:00
Daniel Orbach
29ab76e714
Tools: autotest.py: Slightly cleaned up run_tests.
2017-08-14 12:16:29 +10:00
Daniel Orbach
04791139c0
Tools: autotest.py: Separated function definitions and script code.
2017-08-14 12:16:29 +10:00
Andrew Tridgell
4c6922e413
Tools: fixed ardusub build
...
and manifest generation without PX4IO
2017-08-10 09:35:31 +10:00
Peter Barker
1c2e1eeaf8
Tools: provide dummy function to avoid linking the AP_Camera
2017-08-09 16:18:22 +01:00
Andrew Tridgell
1901cb6c7f
waf: added --disable-header-checks
...
the headers checks are most of the re-build time when editing class
headers. Disabling them makes development much faster
2017-08-08 00:42:19 -07:00
Andrew Tridgell
42b181b652
Tools: updates to build_binaries.sh (use waf)
...
this switches to waf for all the px4 builds, plus adds px4pro It also
removes apm1/apm2 for plane build, and removes the download directory
for PX4IO
2017-08-08 11:15:09 +10:00
Peter Barker
2437260f8a
Tools: copter horizontal fence test waits for disarm then rearms
2017-08-04 17:44:43 +01:00
Peter Barker
dd09bb338e
Tools: wait for vehicle to disarm after handling throttle failsafe
2017-08-04 17:44:43 +01:00
Andrew Tridgell
78f6a5a177
Tools: improve devid decode
2017-08-01 20:17:11 +10:00
Andrew Tridgell
224dc439ab
Tools: updated parameters to remove ELEVON and VTAIL settings
2017-08-01 08:25:32 +10:00
Andrew Tridgell
2fb94597ba
autotest: adjust default params for new mixing
2017-08-01 08:25:32 +10:00
Kevin Lopez Alvarez
34c977f046
waf: Initial waf support for ppro
2017-07-24 13:45:37 +10:00
Kevin Lopez Alvarez
33f6b30ef4
Tools: initial FMUv4pro support
2017-07-24 13:45:37 +10:00
Peter Barker
ebc8dc4afc
Tools: LogAnalyzer: fix whitespace
2017-07-22 10:40:22 +10:00
Peter Barker
a6fd812051
Tools: LogAnalyzer: use repr in place of deprecated backticks
2017-07-22 09:28:28 +10:00
Peter Barker
cb56cf38d0
Tools: LogAnalyzer: remove vehicle-type-is-first-MSG-assumption
2017-07-22 09:15:59 +10:00