Commit Graph

1970 Commits

Author SHA1 Message Date
Julien BERAUD
e22fe34259 Params: add arming check for bebop
Taken from bebop 2
2015-12-22 16:50:27 -02:00
Jonathan Challinger
07d87d8877 Replay: reflect renamed function in AP_AHRS 2015-12-18 18:08:37 +11:00
Julien BERAUD
514b60cf5e Tools: add bebop build to travis 2015-12-15 18:59:03 +09:00
Randy Mackay
4f612f5d69 Frame_params: Bebop2 parameters
Rate PIDs are taken from original bebop which are slightly too high
2015-12-14 11:51:34 +09:00
Randy Mackay
8be0f9371f Frame_params: update recommended Bebop parameters 2015-12-14 11:49:00 +09:00
Gustavo Jose de Sousa
c4c9ce6a2a waf: ardupilotwaf: use name without board extention
If the attribute name is passed, then it is the one used to process the option
--target[s] of waf build. The board name should be used only in configuration
time. The build targets should be board/platform agnostic.

Now, instead of using `waf --target ArduCopter.sitl`, we use `waf --target
ArduCopter` and the binary continues named as "ArduCopter.sitl".
2015-12-10 10:40:37 +09:00
Gustavo Jose de Sousa
9b7f365e3a travis: fix waf calls
The path to waf became wrong after the decision of using waf as a submodule.
2015-12-08 11:14:04 +11:00
Gustavo Jose de Sousa
1e119c2182 waf: remove AP_ADC_AnalogSource from common libraries
That library was removed in a recent pull request. That PR was raised before
waf build system was integrated in the tree, that's why the fix just now.
2015-12-07 15:42:02 +09:00
Lucas De Marchi
8f9fa568b4 Tools: remove unused AP_ADC_AnalogSource 2015-12-03 13:32:45 +11:00
Peter Barker
45d80080c3 Replay: use IMT in preference to IMU 2015-12-03 13:23:19 +11:00
Caio Marcelo de Oliveira Filho
6856950bd3 waf: use ConfigSet for board environments
Instead of a dictionary of dictionaries, have a dictionary of
ConfigSets. Using ConfigSet have two benefits: (1) allow easily copying
values from other, (2) have syntax for specifying the keys directly as
attributes.

With this change now it's easier to specify minlure without
repetition. New boards can override a value, append or prepend depending
on the need.

DEFINES attribute is treated as a dictionary instead of a list, so
that's easier to override values (at expense of ordering). When reading
the board environment, the code converts back to a list.

The board configuration is now stored in a separate file, there's also a
function to get the boards names.
2015-12-03 07:54:32 +11:00
Gustavo Jose de Sousa
8456cb4532 travis: support waf build
Currently, an associative array variable waf_supported_boards is used to
trigger waf build only the currently supported boards. After the transition to
the new build system is done, that variable can be removed.

We're just building for now - there is a current issue related to the rotation
for solo, and it turns out that the first unit test added as an example is for
vector rotations. After that is solved we can use waf check, so that unit tests
are run as well.
2015-12-03 07:54:32 +11:00
Gustavo Jose de Sousa
2828f66a6a waf: enable writing and building benchmarks 2015-12-03 07:54:31 +11:00
Gustavo Jose de Sousa
119948f263 waf: add gbenchmark Waf tool 2015-12-03 07:54:31 +11:00
Gustavo Jose de Sousa
6b4a6f5389 waf: use gtest for tests
It was implemented in such a way that gtest is required only if the user wants
to build and run tests. Initially we're considering all tests should be gtests.
We can change that assumption in the future if necessary.
2015-12-03 07:54:31 +11:00
Gustavo Jose de Sousa
8556b5dfb8 waf: add support to run (unit) tests
We're currently using the tests standard error for reporting tests. We can add
TAP later to integrate with other tools.

Additionally, this patch simplifies the exclude patterns passed to
collect_dirs_to_recurse.
2015-12-03 07:54:31 +11:00
Caio Marcelo de Oliveira Filho
6e7b73610d waf: add waf support 2015-12-03 07:54:30 +11:00
Lucas De Marchi
2591261af6 Global: rename min and max macros to uppercase
The problem with using min() and max() is that they conflict with some
C++ headers. Name the macros in uppercase instead. We may go case by
case later converting them to be typesafe.

Changes generated with:

	git ls-files '*.cpp' '*.h' -z | xargs -0 sed -i 's/\([^_[:alnum:]]\)max(/\1MAX(/g'
	git ls-files '*.cpp' '*.h' -z | xargs -0 sed -i 's/\([^_[:alnum:]]\)min(/\1MIN(/g'
2015-12-01 16:28:09 -02:00
proficnc
efbe350182 Tools: firmware.diydrones gets reference to companion computers 2015-12-01 20:04:52 +09:00
Michael du Breuil
f19be28e89 autotest: allow delaying the mavproxy instance in SITL
This useful when using X forwarding, as mavproxy can start to quickly, and then break the sim enviorment. If the argument isn't used there is no change in behaviour
2015-12-01 15:01:24 +11:00
mirkix
ef56d952cd Linux_HAL_Essentials: Add HC-SR04 README.md 2015-12-01 07:04:10 +11:00
mirkix
fe442d35df Linux_HAL_Essentials: Add AioPRU README.md 2015-12-01 07:03:28 +11:00
Hamish Willee
7bbe73b233 Tools: fix up URL in readme to SITL via Vagrant doc 2015-11-30 09:55:07 +09:00
Andrew Tridgell
dfa107c7bb autotest: added Dalby OBC2016 mission and geofence 2015-11-30 07:46:40 +11:00
Andrew Tridgell
a6ed3e5e80 autotest: added Dalby location
location of OBC2016
2015-11-30 07:46:18 +11:00
Andrew Tridgell
6fdc6074d6 autotest: fixed "Reached command" string 2015-11-29 21:46:31 +11:00
Andrew Tridgell
ffa316c1f3 autotest: fixed copter for new strings for arm/disarm 2015-11-29 18:39:32 +11:00
Andrew Tridgell
672fc86d44 Travis: added px4-v4 to the travis build 2015-11-27 19:23:29 +11:00
Andrew Tridgell
084b607862 autotest: updated string for "Flight plan received" 2015-11-26 12:52:19 +11:00
Lucas De Marchi
17d9da4036 travis: use container infrastructure
In order to use the container infrastructure we can't use sudo to
install packages. Now Travis has a way to install packages by specifying
them in the .travis.yml. This greatly simplifies how we install the
packages and there's no need for a separate script anymore.

This also removes several outdated packages that aren't needed anymore.
2015-11-26 07:56:52 +11:00
Andrew Tridgell
fc7cdc1266 autotest: support a wider range of heli backends 2015-11-22 17:30:28 +11:00
Caio Marcelo de Oliveira Filho
071d8e541e Replay: use millis/micros/panic functions 2015-11-20 12:26:55 +09:00
Caio Marcelo de Oliveira Filho
ee7e3e34c0 Tools: CPUInfo use millis/micros/panic functions 2015-11-20 12:26:48 +09:00
Andrew Tridgell
4192c3d0ad autotest: calibrate 2nd accel in SITL for rover 2015-11-17 08:56:48 +11:00
Andrew Tridgell
8f4ce7f20b build: removed all nocore.inoflag files
these were APM2 specific
2015-11-16 08:05:17 +11:00
Andrew Tridgell
d43ef07f98 autotest: switched examples build to navio
apm2 no longer supported. Navio provides good coverage of the code for
example builds
2015-11-16 07:57:57 +11:00
Robert Lefebvre
4f7246c432 SITL: Helicopter parameter updates 2015-11-12 19:37:38 +09:00
Grant Morphett
5c499484a8 Added a default astyle options file and a linux script to run it. 2015-11-11 13:53:28 +11:00
Grant Morphett
e1b608d56d autotest: added arming to the Rover autotesting. 2015-11-11 13:39:39 +11:00
Andrew Tridgell
6bad33c922 scripts: use px4-clean for all binaries targets 2015-11-05 16:38:48 +11:00
Andrew Tridgell
ad9d50a457 autotest: changed -A to be used for arbitrary command line options 2015-11-04 14:24:01 +11:00
Gustavo Jose de Sousa
fe8d471490 Tools: RCInput_UART PIC firmware: keep status led on
Keep status led on while we are continuously sending packets to serial. That
shows the user we are receiving input properly.
2015-11-04 13:55:10 +11:00
Gustavo Jose de Sousa
2c9472c634 Tools: RCInput_UART PIC firmware: blink status led when idle
Blink status led if there's no input in more than (2 * NUM_INPUT) ms. That's
useful to show the user that the program is working, but not receiving proper
input.
2015-11-04 13:55:10 +11:00
Gustavo Jose de Sousa
6a8420aa48 Tools: RCInput_UART PIC firmware: remove code out of place
That code for serial configuration was not really setting TXSTA register, since
the selected bank is 2. Looking at the datasheet, it seems that we were
actually messing with a register named VRCON (full name "VOLTAGE REFERENCE
CONTROL REGISTER").

This is probably a leftover from a copy/paste, since the same is done (in the
right place) previously.
2015-11-04 13:55:10 +11:00
Gustavo Jose de Sousa
2a7e4baa7d Tools: RCInput_UART PIC firmware: add informative comments 2015-11-04 13:55:10 +11:00
Fabio Mello
8110104361 Tools: add PIC assembly code for RCInput_UART
This patch adds the assembly source code for the PIC firmware responsible for
processing PWM input from the RC Receiver and pushing the values to the serial
output.
2015-11-04 13:55:10 +11:00
Lucas De Marchi
d16a924a15 scripts: don't install avr tools 2015-11-04 12:14:16 +11:00
Lucas De Marchi
5c29703732 build: remove tools to find arduino 2015-11-04 12:14:16 +11:00
Lucas De Marchi
5244559010 Minimize AP_Progmem.h includes
Most of AP_Progmem is already gone so we can stop including it in most
of the places. The only places that need it are the ones using
pgm_read_*() APIs.

In some cases the header needed to be added in the .cpp since it was
removed from the .h to reduce scope. In those cases the headers were
also reordered.
2015-10-30 14:35:32 +09:00
Lucas De Marchi
6f4904189b Replace use of println_P() with println() 2015-10-30 14:35:22 +09:00
Lucas De Marchi
831d8acca5 Remove use of PROGMEM
Now variables don't have to be declared with PROGMEM anymore, so remove
them. This was automated with:

    git grep -l -z PROGMEM | xargs -0 sed -i 's/ PROGMEM / /g'
    git grep -l -z PROGMEM | xargs -0 sed -i 's/PROGMEM//g'

The 2 commands were done so we don't leave behind spurious spaces.

AVR-specific places were not changed.
2015-10-30 14:35:16 +09:00
Lucas De Marchi
2c38e31c93 Remove use of PSTR
The PSTR is already define as a NOP for all supported platforms. It's
only needed for AVR so here we remove all the uses throughout the
codebase.

This was automated with a simple python script so it also converts
places which spans to multiple lines, removing the matching parentheses.

AVR-specific places were not changed.
2015-10-30 14:35:04 +09:00
Lucas De Marchi
ddc3988b4a Travis: add minlure target 2015-10-24 14:28:31 +11:00
Peter Barker
5da7d6eac2 Replay: set INS_GYRO_CAL to never to avoid losing samples 2015-10-23 12:37:44 +11:00
Caio Marcelo de Oliveira Filho
f27f8f2f5d Tools: include SITL only for SITL board
Include board-specific files only when the board is used. Since these
should be exceptional cases, let the includer handle the ifdef instead
of putting ifdefs in every platform-specific header.

In the future we should evaluate whether the HAL for the board should
instantiate this.
2015-10-22 13:36:14 -02:00
Caio Marcelo de Oliveira Filho
49a42dc985 SITL: use a SITL namespace 2015-10-22 11:04:42 -02:00
Peter Barker
e502f353c1 Replay: handle df format changes - IMT vs IMU 2015-10-22 16:28:11 +11:00
Caio Marcelo de Oliveira Filho
36ffef97c0 CPUInfo: remove unnecessary includes 2015-10-21 09:16:10 +11:00
Caio Marcelo de Oliveira Filho
01b11ba48f Hello: remove unnecessary includes 2015-10-21 09:16:09 +11:00
Caio Marcelo de Oliveira Filho
ef615a5da1 Replay: implement HAL::Callbacks
Also removes includes for each board since they are not necessary
anymore.
2015-10-21 09:16:09 +11:00
Caio Marcelo de Oliveira Filho
ec52df991c build: compile only the HAL files needed by the board
Instead of requiring every program to specify the HAL related modules,
let the build system do it (in practice everything we compiled depended
on HAL anyway). This allow including only the necessary files in the
compilation.
2015-10-21 09:16:07 +11:00
Caio Marcelo de Oliveira Filho
2e464a53c2 AP_HAL: make code not depend on concrete HAL implementations
The switching between different AP_HAL was happening by giving different
definitions of AP_HAL_BOARD_DRIVER, and the programs would use it to
instantiate.

A program or library code would have to explicitly include (and depend)
on the concrete implementation of the HAL, even when using it only via
interface.

The proposed change move this dependency to be link time. There is a
AP_HAL::get_HAL() function that is used by the client code. Each
implementation of HAL provides its own definition of this function,
returning the appropriate concrete instance.

Since this replaces the job of AP_HAL_BOARD_DRIVER, the definition was
removed.

The static variables for PX4 and VRBRAIN were named differently to avoid
shadowing the extern symbol 'hal'.
2015-10-21 09:16:07 +11:00
Andrew Tridgell
3af4a7fee7 autotest: make CopterAVC use EKF2
this gives some testing of EKF2 in autotest
2015-10-20 21:00:59 +11:00
Andrew Tridgell
16bc7d8b2e Tools: fixed datestamp on compiler download 2015-10-20 15:54:44 +11:00
Andrew Tridgell
279a320f44 Tools: switch autobuild to 4.9 compiler 2015-10-20 15:28:13 +11:00
orlando3d
6d266d2063 Update 3DR_X8-M_RTF.param 2015-10-18 09:27:54 +09:00
orlando3d
7c0239e59c Update 3DR_X8+_RTF.param 2015-10-18 09:27:51 +09:00
orlando3d
11ae5a64d0 Update 3DR_Iris+.param 2015-10-18 09:27:49 +09:00
Peter Barker
e357be3d85 LogAnalyzer: adjust for change in vehicle definition MSG string
We changed from ArduCopter to APM:Copter, breaking parts of the LogAnalyzer

This change has LogAnalyzer canonicalise its output to Ardu{Plane,Rover,Copter}

Also account for change in MODE message - ThrCrs has gone away
2015-10-15 09:40:25 +09:00
Randy Mackay
b068f51c45 SITL: update copter_optflow params
Allow sonar to become healthy even if reported alt is zero
switch off EKF's use of GPS
2015-10-14 12:01:38 +09:00
Peter Barker
82d36520ad LogAnalyzer: fix for 64-bit ints
Also, sqrt must come from math
Also, d indicates a double (a Python float)
2015-10-14 08:50:38 +09:00
Peter Barker
f49aedb639 LogAnalyzer: turn times from strings to ints before doing maths 2015-10-13 19:39:02 +09:00
Grant Morphett
fd0a442c92 autotest: added a timeout check
There was 1 while loop in the arducopter.py autotest that didn't have
a timeout check and of course we tripped over it.
2015-10-12 14:20:52 +09:00
Philippe Hamelin
3af95cc3da scripts: add catkin_pkg and python-empy to Ubuntu prerequisites 2015-10-08 15:30:10 +09:00
Mirko Denecke
d93200f3b1 Linux_HAL_Essentials: Update README.md 2015-10-08 15:24:14 +09:00
Leonard Hall
041dd3c855 Frame: new Bebop default parameters 2015-10-08 12:21:14 +09:00
Randy Mackay
c4f1cf2a64 SITL: add Karuizawa to Locations 2015-10-05 21:00:11 +09:00
Andrew Tridgell
fd5d449210 autotest: enable EK2 for autotest 2015-09-29 11:01:43 +10:00
Lucas De Marchi
6cf1c5fdd6 Tools: add raspilot to travis builds 2015-09-24 15:31:32 +10:00
Andrew Tridgell
643178fbe3 Replay: handle EKF2 replay 2015-09-23 18:56:15 +10:00
Andrew Tridgell
b71678b901 Replay: fixed build with NavEKF2 2015-09-23 11:57:18 +10:00
Randy Mackay
803ca92f73 Replay: remove INS start style 2015-09-21 17:06:53 +09:00
Stephen Dade
a15d27194c Scripts: JSBSim now runs when user selects HIL mode in sim_vehicle.sh 2015-09-17 21:37:43 +10:00
Grant Morphett
f871f040fb scripts: Adding AT to autotest build 2015-09-16 09:24:29 +09:00
Grant Morphett
69a65a7234 autotest: Adding AntennaTracker to build and test results 2015-09-16 09:24:26 +09:00
Andrew Tridgell
9346596949 autotest: allow for multiple heli frame types 2015-09-14 12:46:03 +10:00
Leonard Hall
1f287da70b Tools: first draft Parrot Bebop parameters 2015-09-12 12:53:43 +09:00
Gustavo Jose de Sousa
18ec6aa7b4 Tools: gittools: add git-subsystems-split
A git extension for splitting HEAD commit into commits separated by subsystems.
2015-09-09 10:50:35 +10:00
Gustavo Jose de Sousa
fea8299ff3 Tools: gittools: add git-commit-subsystems
A git extension for committing multiple subsystems.
2015-09-09 10:50:35 +10:00
Gustavo Jose de Sousa
c2a940ddea Tools: gittools: add scripts that list subsystems
Those scripts print a list of subsystems (first level folders and libraries).
They are useful for other future tools.
2015-09-09 10:50:35 +10:00
Víctor Mayoral Vilches
5036be6771 Linux_HAL_Essentials: ERLEBOARD legacy support
This config referred to the legacy Erle-Board
https://erlerobotics.com/blog/product/erle-board/
The configuration is preserved to support the
existing boards.
2015-09-09 10:31:55 +10:00
Andrew Tridgell
da2ad49276 Replay: fix for changes to AP_RangeFinder API 2015-09-08 16:46:52 +10:00
Grant Morphett
00e6cd40e5 scripts: Support to build for frame specific tags
The driver for this is to separate the Copter and TradHeli builds so
Copter and TradHeli do not have to be released at the same time.  This
will also work for all frame times but it is anticipated only required
by Heli.
2015-09-08 09:05:43 +10:00
Andrew Tridgell
6c74782997 autotest: added QMAC to locations list
Queanbeyan Model Aircraft Club, where CASA OC tests are run in
Canberra
2015-09-07 08:07:17 +10:00
Peter Barker
43adcd39ab Replay: DataFlash needs a version string 2015-09-03 15:20:20 +10:00
Andrew Tridgell
ee91a41405 autotest: added H_RSC_MIN/MAX to heli parms 2015-09-01 16:34:20 +10:00
Andrew Tridgell
717c04d507 autotest: fly CopterAVC mission as a helicopter
this ensures heli gets basic testing
2015-09-01 16:34:20 +10:00
Randy Mackay
a21eed9695 AutoTest: reduce MOT_THST_EXPO to 0.5 2015-08-31 21:53:43 +09:00
Grant Morphett
ccfefac2fe build_all: Remove the all target as it just builds SITL. 2015-08-31 20:45:11 +09:00
Grant Morphett
2769487ac0 build_all: Need to remove APM2 from the default master build 2015-08-31 18:31:43 +10:00