717 Commits

Author SHA1 Message Date
Lorenz Meier
3f545c270d Removed unused code 2016-12-21 08:37:45 +01:00
Lorenz Meier
417eda82ef ROMFS pruner: Kick out excluded files 2016-12-21 08:37:45 +01:00
Lorenz Meier
671e380fd2 Params script: Whitespace cleaning 2016-12-21 08:37:45 +01:00
Lorenz Meier
f23881d8ab Airframes tool: Support basic pruning 2016-12-21 08:37:45 +01:00
David Sidrane
2957b8d7d4 Adding Carlo Woods's config cloning tool 2016-12-21 08:34:22 +01:00
David Sidrane
dc8c6ea5e5 White space fixes 2016-12-21 08:34:21 +01:00
David Sidrane
57ac4dd401 Adding example of developer custom make file 2016-12-21 08:34:20 +01:00
David Sidrane
c417a1be7b Adding USVCAN bootloader support 2016-12-21 08:34:20 +01:00
David Sidrane
318c69c74b Honor GIT_SUBMODULES_ARE_EVIL 2016-12-21 08:34:20 +01:00
Mark Whitehorn
48778ed3f2 bump parameter minor version 2016-12-16 18:12:17 +01:00
Roman
3392e3f9f7 bebop2 upload script: create microsd filesystem so that logger does not
complain

Signed-off-by: Roman <bapstroman@gmail.com>
2016-12-15 00:11:13 +01:00
Andreas Antener
30445ebd68 log upload: ignore error if we cannot get git email, really be quiet with -q except for printing the URL in the end 2016-12-13 10:20:14 +01:00
Lorenz Meier
1926c7bca7 Revert "Implement the way to run posix simulator directly from IDE without the need to reconfigure command lines, but use runner created via CMake"
This reverts commit fff493474356f34c32075cc4f67e50d787efa7a2.
2016-12-12 22:32:34 +01:00
Bart Slinger
a7c8d77453 Generic helicopter mixer
fix code style
2016-12-10 14:45:49 +01:00
Mark Whitehorn
f0b41a0e52 change main trims to normalized values 2016-12-10 12:56:39 +01:00
Mark Whitehorn
dbc149c224 change trim units from absolute usec to normalized values 2016-12-10 12:56:39 +01:00
Mark Whitehorn
764101e41e bump parameter minor version 2016-12-10 12:56:39 +01:00
Mark Whitehorn
a0c8a78a14 use trim values to set mixer:scaler.offset
clamp mixer output offset to [-.2,.2] ([-2000, 2000] in mixer file)

add 8 main PWM trim parameters

add long desc to parameters and bump minor parameter version
2016-12-10 12:56:39 +01:00
Anton Matosov
fff4934743 Implement the way to run posix simulator directly from IDE without the need to reconfigure command lines, but use runner created via CMake
Steps to debug:
 * Run gazebo (or any other sim) server and client viewers via the terminal: `make posix_sitl_default gazebo_none_ide`
 * In your IDE select `px4_<mode>` target you want to debug (e.g. `px4_iris`)
 * Start debug session directly from IDE

This approach significantly reduces the debug cycle time because simulator (e.g. gazebo) is always running in background and you only re-run px4 process which is very light.
2016-12-10 12:48:53 +01:00
Beat Küng
9442c89691 Tools/upload_log.py: add script to upload ulog file to logs.px4.io 2016-12-09 17:57:29 +01:00
Julian Oes
fc9f2143d2 sitl_gazebo: update submodule 2016-12-07 16:23:21 +01:00
James Goppert
13df03c78a Fix bug with imu rotation for tyhpoon in sitl gazebo. (#5988) 2016-12-06 12:55:05 -05:00
James Goppert
4b6a11161e Fixes for sitl gazebo ground truth. (#5932)
* Fixes for sitl gazebo ground truth.

* Switch ekf2 to new logging module for sitl.
2016-12-03 11:40:53 -05:00
bharathr
fee75c61a1 Added PX4 sanity test script for Snapdragon Flight 2016-12-02 18:49:30 +01:00
José Roberto de Souza
c49c3f469e aerofc: add upload command
AeroFC is updated by Aero board using the UART between AeroFC
and Aero board.

This script will copy firmware and px_uploader.py to Aero board and run
px_uploader.py with the correct paremeters. User only needs to have a
network connection (Ethernet over USB or WiFi) with Aero board to update
AeroFC firmware. The IP/hostname can be given by AERO_HOSTNAME
environment variable.
2016-11-28 09:21:12 +01:00
David Sidrane
4b90daf605 WIP:Using _PX4_ wildcard match - needs testing 2016-11-28 09:18:45 +01:00
Julian Oes
cf9945ecdc sitl_run.sh: env variable NO_PXH for deamon mode
This allows to set the environment variable NO_PXH to start SITL without
the interactive pxh> shell. For this, px4 is called with the -d arg
which sets it to deamon mode.

This feature is handy to script sitl_run.sh.
2016-11-25 17:51:50 +01:00
Beat Küng
0a0f268407 RPi: improve upload script, upload mixer files & all startup scripts 2016-11-24 14:43:45 +01:00
Beat Küng
2f19aebac0 mavlink_ulog_streaming: always send an ack (#5853)
Fixes the case where an ack got lost and the FMU resends the data, but
the client does not resend the ack.
2016-11-14 17:06:21 +01:00
Carlo Wood
a96ee50442 Stop people from using broken awk. 2016-11-13 19:36:27 +01:00
Carlo Wood
0fbf26e955 Add Tools/fix_headers.sh
Running this script will parse the top of all source files
that are not submodules, examples or test cases, to find
all #include's and then do basically two things:

1) Reorder and group the headers so that px4_* headers are
   included first, then local headers (headers of the project
   that aren't submodules) then C++ headers if any, then C
   headers if any, then system headers (which includes submodules)
   and finally any #includes that are inside #if*...#endif
   constructs.
2) Fix the use of "" or <> in a consistent manner.

Afterwards few fixes might be necessary for compile errors that
pop up. Most of those are already fixed in my previous commits.
However, I was not able to test a compilation for ros
(with __PX4_ROS defined) -- so some more fixes might be necessary
because of the header reordering.

The script comes with a progress counter and an error summary
(if any) at the end (so no scrolling back is necessary).
It is highly recommended to only run this script in a clean
project with no outstanding changes that need to be committed.
In fact, the script enforces this (unless you pass --force).
Reverting a run of the script is then easy with 'git checkout .'.

It is also possible to run the script on a single file
by passing that on the command line. In that case it
might make sense to pass --debug too, though that was really
meant for just me, while developing the script. This will write
debug output into the file that is passed, so you don't
want to commit that! ;)
2016-11-13 19:36:27 +01:00
Beat Küng
587c5161a3 mavlink_{shell,ulog_streaming}.py: show full error output when pymavlink import fails 2016-11-04 11:08:06 +01:00
Beat Küng
fa461d018d mavlink_{shell,ulog_streaming}.py: send heartbeat
This is helpful, so that a connected partner can switch from broadcasting
to a 'connected' state.
2016-11-04 11:08:06 +01:00
Lorenz Meier
b9cf679118 Update sitl_gazebo 2016-10-29 00:01:39 +02:00
Lorenz Meier
b3e948d28c Update simulators 2016-10-29 00:00:33 +02:00
Julian Oes
62603bee45 simulation: SITL outputs from 0..1
Instead of sending actuator controls from -1..1 for SITL, we should send
0..1 like we already do for HIL. This will enable negative thrust in the
future, e.g. for pusher props that spin backwards, or for vehicles with
variable pitch propellers.
2016-10-28 23:56:46 +02:00
Beat Küng
95f5ba9635 fix mavlink_shell.py: python3 compat for octal numbers 2016-10-24 12:51:50 +02:00
Lorenz Meier
8d51e4ade1 MAVLink shell: Fix OS X default path 2016-10-23 17:46:22 +02:00
Lorenz Meier
296b07f9d8 Update Gazebo plugin to fix plane model 2016-10-23 14:21:50 +02:00
Julian Oes
3aa9a72562 mavlink_shell.py: default to 57600 baudrate 2016-10-23 14:00:29 +02:00
Julian Oes
d57e9f13d7 px_uploader.py: catch exception in except block
This could lead to an exception if serial is not available.
2016-10-20 23:18:56 +02:00
Julian Oes
d1822699a9 px_uploader.py: remove unused variable 2016-10-20 23:18:56 +02:00
Julian Oes
a14c565ab1 px_uploader.py: trailing whitespace 2016-10-20 23:18:56 +02:00
Beat Küng
0002e86b6f jmavsim_run.sh: add additional arguments for HITL 2016-10-20 18:54:47 +02:00
Beat Küng
8f5656f033 mavlink ulog: add target sys & component ids (update to changed mavlink message) 2016-10-19 13:13:47 +02:00
Beat Küng
6999bb3e9a Tools: add mavlink_ulog_streaming.py script to stream ULog via MAVLink to a file 2016-10-19 13:13:47 +02:00
Michael Schaeuble
ffaed18e67 Reduce the binary size Bebop
The firmware binary is to large to fit into the onboard memory of the Parrot
Bebop. It could be uploaded to the emmc, but for ease of use it would be nice
to have it in /usr/bin. To strip the binary seems to be the best option right now.
2016-10-18 23:56:56 +02:00
Julian Oes
cd937321c8 px_mkfw.py: fix indent (fix for Python 3) 2016-10-15 22:01:22 +02:00
Julian Oes
7eabf1ccb3 px_mkfw.py: remove unused import 2016-10-15 22:01:22 +02:00
Julian Oes
2d039af7a4 sitl_gazebo: update submodule yet again
This fixes the build for Gazebo >= 7.4.
2016-10-14 20:38:29 +02:00