Commit Graph

408 Commits

Author SHA1 Message Date
Lorenz Meier ae75ba26b7 MAVLink: Remove excessive stack 2016-05-05 19:36:39 +02:00
Lorenz Meier c958bfeaa3 MAVLink app: Report OS and Firmware version 2016-05-03 11:39:54 +02:00
Lorenz Meier ae123d9e20 MAVLink app: Do not accept config commands on wireless links when USB is connected 2016-04-30 09:15:06 +02:00
Lorenz Meier 796af52df2 MAVLink app: Offer a little more RAM 2016-04-29 22:05:56 +02:00
Lorenz Meier a663aa68af Send out ADS-B reports to GCS 2016-04-17 18:19:32 +02:00
Julian Oes 0438bf6a8b mavlink: get the ifdefs correct 2016-04-12 10:13:52 -07:00
Julian Oes 72be6de0cf mavlink: whitespace fix 2016-04-12 10:13:52 -07:00
Julian Oes 361c057412 mavlink: get mavlink reconnection working 2016-04-12 10:13:52 -07:00
Lorenz Meier d97f32cca1 Fix MAVLink not responding regression on TELEM2 2016-04-10 12:11:26 -07:00
Lorenz Meier d2c98a98e9 Rename stop-all to stop for MAVLink, but still keep stop-all for existing scripts 2016-04-10 11:18:05 -07:00
Julian Oes 727783fe94 mavlink: keep trying to find to broadcast
This should help the Snapdragon to connect if the network is not yet up
by the time the mainapp starts. It will retry to find a network and
broadcast once it finds one.
2016-04-08 22:38:22 -07:00
Julian Oes ae2c28677d mavlink: adapt network detection for Mac, use heap
It seems that Mac does not support the ioctl to check how big the ifconf
buffer needs to be. Therefore we just have to make a guess.
Alos, instead of allocating the variable size array on the stack, it's
probably safer to use the heap.
2016-04-08 09:41:10 +02:00
Julian Oes 20cd5f3e76 mavlink: make broadcast detection Mac compatible
This adresses that the ifconf interface is a bit different on Mac.
2016-04-07 15:21:24 +02:00
Julian Oes 66567baf89 mavlink: only try broadcast if valid address found 2016-04-07 13:20:48 +02:00
Lorenz Meier e832f7dbf5 Fix reporting on broadcast address 2016-04-02 00:04:26 +02:00
Lorenz Meier 76a9ee2618 MAVLink app: Limit to max updaate rate 2016-03-30 20:56:11 +02:00
Julian Oes 56585082ec mavlink: look up broadcast address, don't guess it 2016-03-30 17:36:04 +02:00
Julian Oes a7e9bc8ba5 mavlink: copyright and author update 2016-03-30 17:36:04 +02:00
Julian Oes df24852366 mavlink: fix broadcast on Snapdragon
Instead of using 255.255.255.255 as the broadcast address, go through
the network interfaces and and try to use a broadcast in the local
network such as 192.168.1.255.
2016-03-30 17:36:04 +02:00
Julian Oes f776a3dc37 mavlink: better broadcast failed error description 2016-03-30 17:36:04 +02:00
Lorenz Meier a66cf2a658 MAVLink app hotfix: Enable MAVLink daemon on default port 2016-03-28 17:30:43 +02:00
Lorenz Meier e26c5bb590 Do not receive anything in OSD mode 2016-03-28 12:37:03 +02:00
Lorenz Meier 6d42595c79 Fix MAVLink app teardown with mavlink stop-all command 2016-03-25 15:20:32 +01:00
Julian Oes de0e467150 mavlink: bring buffering for log messages back 2016-03-24 13:10:02 +01:00
Julian Oes 2d4179a35b mavlink: refactor mavlink_log
This moves the mavlink_log interface from ioctl to uORB and enables the
mavlink statusmessage output for Snapdragon. The API changes will lead
to changes in all modules that are using it.
2016-03-24 13:09:16 +01:00
Julian Oes a446a337e9 Revert "mavlink: send out parameters faster over UDP"
This reverts commit 213cdf1a91.

Raising the stream rate of param values had the nice effect that
receiving the params became really quick. However, on the downside it
set all other streams pretty slow. This needs to be fixed differently.
2016-03-23 11:46:25 +01:00
Lorenz Meier f3f01ad960 Fix NuttX compilation 2016-03-19 19:28:42 +04:00
Kevin Mehall afa06ba9d7 Disable UDP options on platforms where it's not supported 2016-03-19 19:19:29 +04:00
Kevin Mehall 0cc3b4becc Add mavlink start -t partner_ip option to pre-set partner IP.
This avoids the need to modify the source code to hard-code the IP when
broadcast doesn't work.

Initializing the sockaddr_in structs with memset is unnecessary because
they are value-initialized by the Mavlink constructor.
2016-03-19 19:19:29 +04:00
Julian Oes 213cdf1a91 mavlink: send out parameters faster over UDP 2016-03-18 11:26:29 +00:00
Lorenz Meier a516450868 MAVLink: Send vibration status message 2016-02-25 15:57:53 +01:00
Lorenz Meier c6a30d74c1 Bump VFR HUD rate for OSD 2016-02-25 11:14:15 +01:00
Lorenz Meier 3e02bb1070 MAVLink: Improve network handling 2016-02-09 12:51:05 +01:00
Lorenz Meier b7470794c7 MAVLink: Send to first target system by default 2016-02-01 11:19:46 +01:00
Julian Oes b44f20d705 mavlink: option to specify the UDP remote port
This enables using several mavlink instances for SITL.
2016-02-01 11:15:21 +01:00
Lorenz Meier 56cd54ab71 MAVLink app: Fix network code to always prefer localhost, work still with remote targets 2016-01-31 20:16:26 +01:00
Lorenz Meier e17f344119 MAVLink: Enable 4 streams and fix OSD rate configuration 2016-01-23 18:25:19 +01:00
Lorenz Meier 619548b10a MAVLink: Send for the first 4 seconds to localhost on UDP to not interfere with the network 2016-01-20 11:53:58 +01:00
Lorenz Meier 9d239c10e5 Restore MAVLink network behaviour with fixed remote system approach 2016-01-18 23:19:51 +01:00
Lorenz Meier 57b95916f5 MAVLink: Add stack space for interface 2016-01-17 16:29:36 +01:00
Stefan 47786c8585 Update mavlink_main.cpp
spelling mistakes
2016-01-11 08:37:43 +01:00
Lorenz Meier a355bdeea3 Fix MAVLink radio status flow control 2016-01-10 23:24:33 +01:00
Lorenz Meier 41f36aa99f Enable debug key/value stream by default 2016-01-09 16:59:37 +01:00
Lorenz Meier 24116b2672 Only try to disable HW flow control when not being UDP 2016-01-07 23:19:00 +01:00
Lorenz Meier 268990f216 Merge pull request #3433 from PX4/posix_uart
MAVLink app: Enable network and serial on POSIX
2016-01-06 09:27:18 +01:00
dogmaphobic bd6e4b9d9d Merge remote-tracking branch 'PX4/master' into logHandler
* PX4/master: (45 commits)
  don't use default source address for onboard udp link, wait on remote
  Configure Easystar HIL setup to do Runway takeoff
  ROMFS: Set 3DR quad tuning to more realistic default values
  Fix incomplete boot on new EKF config
  Fix px4fmu-v2_ekf2 config
  Updated MAVLink protocol version
  MAVLink: Start slightly differently on USB
  Start shell only if SD card not present
  Update ECL
  NuttX configs: added px4fmu-v2_ekf2 target for EKF2 development on Pixhawk
  Get QuRT drivers out of the way, as we are using our own
  Fix POSIX eagle config
  Remove unmaintained NuttX config
  VDev: fix code style
  Add new posix_eagle_default and qurt_eagle_default targets
  Fix QuRT build error
  Fix FMUv4 USB PID
  Speed up Vagrant
  VTOL: Fix motor index use in VT_FW_MOT_OFF. Create new param to re-default all deployed vehicles to not shut down motors.
  VTOL: Fix MOT_OFF bug
  ...
2016-01-05 01:03:11 -05:00
Andreas Antener 11ed5169cc don't use default source address for onboard udp link, wait on remote 2016-01-04 23:58:05 +01:00
Lorenz Meier c343926b51 MAVLink app: Enable network and serial on POSIX 2016-01-04 12:25:35 +01:00
Lorenz Meier a8a9c9b8ec MAVLink: Start slightly differently on USB 2016-01-03 15:28:04 +01:00
Andreas Antener d39e313768 use the proper check to prevent multiple mavlink instances on the same udp port, added warning when different remote than localhost connects to udp 2015-12-31 11:50:52 +01:00