Commit Graph

288 Commits

Author SHA1 Message Date
Lorenz Meier
1522255c29 MAVLink app: Fix argument handling to work on all operating systems 2015-06-13 06:53:02 -07:00
Lorenz Meier
c9fefe236b Merged release into master 2015-06-13 11:06:01 +02:00
Lorenz Meier
94313323aa MAVLink app: Fix sending of autopilot capabilities 2015-06-12 13:53:20 +02:00
Lorenz Meier
085a69383a Merged master 2015-06-12 13:40:47 +02:00
David Sidrane
28d3729acd Backport of Fixes mavlink_if0: invalid data rate '(null)' bug 2015-06-11 15:43:28 -10:00
Mark Charlebois
13dd993e01 Nuttx: mavlink fixes
Needed to ifdef SITL functionality not supoprted in NuttX build.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-09 16:32:22 -07:00
tumbili
ac053e15da clean up mavlink network capability 2015-06-09 20:14:42 +02:00
Mark Charlebois
59ad47003a mavlink: simplified UDP suport by adding new -u option
Use:

    mavlink start -u portnum

to set the UDP port.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-08 22:21:59 -07:00
Mark Charlebois
aded2d3c03 Enable passing udp port to mavlink module via start args.
Usage is: -d udp[:<port>] If no port is specified, default port is
set to 14556. If -d isn’t specified then default is serial.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-08 22:21:59 -07:00
Mark Charlebois
5cf1140944 Add raw mode for UART to mavink_main.cpp
Raw mode is not the default mode in Ubuntu 14.04.

Disable echo and special character processing.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-08 22:21:59 -07:00
tumbili
9da40a69cc mavlink: do not send autopilot capabilities to avoid crash 2015-06-08 22:21:59 -07:00
tumbili
a77f637bc4 mavlink udp:
- added option to stream messages over udp
- still hardcoded stuff (port)
2015-06-08 22:21:58 -07:00
Lorenz Meier
c798b1165a MAVLink app: Complete OSD config 2015-06-08 11:25:44 +02:00
Lorenz Meier
6309aa612b MAVLink app: Introduce OSD mode 2015-06-08 11:25:44 +02:00
Lorenz Meier
4565f57468 Merged release_v1.0.0 into master 2015-05-27 15:28:41 -07:00
Ban Siesta
43d22619f6 mavlink: no need to shout about disabling hardware flow control 2015-05-26 23:03:14 -07:00
Lorenz Meier
c6fe4fd35a mavlink: rename field for RC input mode 2015-05-25 16:34:57 +02:00
Lorenz Meier
a14b020d63 Merge pull request #2203 from NaterGator/mavlink_usbfix
Fix MAVLink USB UART detection
2015-05-26 23:22:27 -07:00
Ban Siesta
40e9c83ed6 mavlink: no need to shout about disabling hardware flow control 2015-05-25 18:28:27 +01:00
Lorenz Meier
01fd84e4dc mavlink and commander app: Add support for manual input, either directly or via remote control 2015-05-24 20:11:50 +02:00
Lorenz Meier
8fd00f4d6d Merged release_v1.0.0 into master 2015-05-23 11:07:10 +02:00
Lorenz Meier
ccac324f5b mavlink: Fix GIT string transmission 2015-05-23 11:04:19 +02:00
Lorenz Meier
6d7e063148 Added GIT version which recompiles on each build 2015-05-23 09:59:46 +02:00
Roman Bapst
0eeaa83b3d send autopilot version message on startup and on request 2015-05-23 09:59:46 +02:00
Nate Weibley
b55361b472 Actually track USB uarts, eliminiate unnecessary passing / pointer to _is_usb_uart 2015-05-20 16:06:02 -04:00
Lorenz Meier
64ea4071a7 mavlink: Enable a few helpful streams on companion link 2015-05-20 21:02:58 +02:00
Lorenz Meier
9ea62e7402 mavlink: Enable a few helpful streams on companion link 2015-05-20 21:01:38 +02:00
Mark Charlebois
36f5d47ed9 Merge remote-tracking branch 'upstream/master' into linux
Signed-off-by: Mark Charlebois <charlebm@gmail.com>

Conflicts:
	src/modules/commander/gyro_calibration.cpp
	src/modules/mavlink/mavlink_ftp.cpp
2015-05-16 15:04:38 -07:00
Lorenz Meier
dabcf63c50 mavlink FTP: Drop rate to realistic value 2015-05-15 11:16:48 +02:00
Lorenz Meier
f154f6e5e7 MAVLink transmission: Allow faster overall transmissions. 2015-05-15 11:16:11 +02:00
Nate Weibley
b4e7b041ca Fix potential null pointer deref if Mavlink start fails before task_main loop
LL_APPEND is called just before the loop spins up but various error conditions can cause the task to exit before then.
When that happens Mavlink::start_helper calls delete on the instance which tries to prune it from the global list.
If this is the first Mavlink instance to attempt starting the list head is null and we hardfault in the Mavlink dtor.

Only call LL_DELETE after checking the list head for a null pointer.
2015-05-13 11:33:11 -04:00
Mark Charlebois
2002d4e774 POSIX: disable UART in mavlink
Most of the current POSIX builds will not use the UART and it
is just a unnecessary dependency to satisfy when running in a
test environment.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-07 10:07:18 -07:00
Mark Charlebois
db52227409 Merge remote-tracking branch 'upstream/master' into linux
Signed-off-by: Mark Charlebois <charlebm@gmail.com>

Conflicts:
	src/modules/commander/accelerometer_calibration.cpp
2015-05-06 15:51:39 -07:00
Lorenz Meier
0d1d92484b MAVLink app: Parameter docs and new test parameter 2015-05-06 19:39:17 +02:00
Mark Charlebois
12a25e4b63 Merge remote-tracking branch 'upstream/master' into linux
Signed-off-by: Mark Charlebois <charlebm@gmail.com>

Conflicts:
	makefiles/firmware.mk
	src/modules/commander/module.mk
	src/modules/mavlink/mavlink_ftp.h
	src/modules/mavlink/mavlink_tests/module.mk
2015-05-04 16:36:59 -07:00
Don Gagne
46da294ffb New bust mode ftp file download 2015-05-03 19:26:54 -07:00
Mark Charlebois
190814bc97 Merge remote-tracking branch 'upstream/master' into linux
Signed-off-by: Mark Charlebois <charlebm@gmail.com>

Conflicts:
	src/drivers/rgbled/rgbled.cpp
	src/modules/commander/PreflightCheck.cpp
	src/modules/commander/airspeed_calibration.cpp
	src/modules/commander/calibration_routines.cpp
	src/modules/commander/gyro_calibration.cpp
	src/modules/commander/mag_calibration.cpp
	src/modules/mc_att_control/mc_att_control_main.cpp
2015-04-28 11:48:26 -07:00
Lorenz Meier
0ebf626632 MAVLink app: Allow higher max data rate 2015-04-26 14:24:01 +02:00
Mark Charlebois
d913ec8dc9 Changed device::px4_device_handle_t to device::file_t
This change allowed the _posix.cpp file changes to be merged
back into the original files.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-24 17:49:35 -07:00
Mark Charlebois
ac0df5c61d Linux: added HRT test, moved tests to linux/tests
Also fixed naming of mavlink files for NuttX build.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 11:07:00 -07:00
Mark Charlebois
9758112e31 Use px4_config.h instead of nuttx/config.h
Modified code to use OS independent header file for config settings.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 10:55:41 -07:00
Mark Charlebois
bf429188b4 Reverted: Use OS independent API for task creation/deletion
Keep existing API use in code. Bind the use of the OS independent
implementation in the systemlib layer.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 10:49:44 -07:00
Mark Charlebois
ddb32742eb Use OS independent API for task creation/deletion
Calls to task_delete and task_spawn_cmd are now
px4_task_delete and px4_task_spawn_cmd respectively.

The px4_tasks.h header was added to the affected files
and incusions of nuttx/config.h were removed.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 10:49:44 -07:00
Lorenz Meier
79f6459740 mavlink app: Code style fix 2015-04-09 19:35:14 +02:00
philipoe
309a767c06 mavlink: Allow mavlink_send to take component_ID into account. Still use a default argument in case the user does not supply a component_ID 2015-04-09 19:12:38 +02:00
Lorenz Meier
a184aebf0f mavlink: Crank up param transmission rate 2015-03-28 13:54:19 -07:00
Lorenz Meier
78741c87e5 MAVLink app: 1) only transmit active params, 2) send params faster, 3) ensure no overflow occurs on buffer when sending at higher rate. 2015-03-28 13:07:01 -07:00
Lorenz Meier
0261f5dfbe MAVLink: Reduce stack usage 2015-03-03 17:30:34 +01:00
Lorenz Meier
0ebbb5f533 MAVLink: Use less RAM 2015-03-01 18:32:07 +01:00
Lorenz Meier
ccc6f0b020 Improve multi-stream handling by template and index usage. Can be consolidated slightly once multiplatform code knows about multi-topics 2015-02-13 09:33:12 +01:00