Commit Graph

56 Commits

Author SHA1 Message Date
Peter Barker e69bc5f46b AP_ADSB: eliminate GCS_MAVLINK::send_statustext_all 2017-07-11 23:53:53 +01:00
Tom Pittenger 76dabf2dd9 AP_ADSB: cleanup
non-functional change
2017-02-22 11:55:47 -08:00
Tom Pittenger 5adbf9b232 AP_ADSB: populate altitude via pressure for ADSB-Out
fixes https://github.com/ArduPilot/ardupilot/issues/5424
2017-02-22 11:55:47 -08:00
murata 908d9a8a8c AP_ADSB: Change sprintf method to secure snprintf method. 2017-01-06 10:59:12 -08:00
Tom Pittenger 372837b959 Update AP_ADSB.cpp
AP_ADSB: fixed GPS.alt reporting  cm to mm conversion bug

Issue 5424
2016-12-20 15:57:52 +01:00
murata e15c234a4f AP_ADSB: Set in the sprintf method. 2016-11-01 08:36:52 -07:00
murata 0028bd7b3c AP_ADSB: Set in the sprintf method. 2016-11-01 08:36:52 -07:00
Peter Barker b9dcf1108d AP_ADSB: do not transmit by default
In various countries transmitting on the ADSB frequencies is a
federal offence.

Let's not have our users do that be default.
2016-11-01 14:21:07 +09:00
Mathieu OTHACEHE 152edf7189 Global: remove mode line from headers
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
2016-10-24 09:42:01 -02:00
Tom Pittenger 1612110d16 AP_ADSB: fixed signed int compare compile warning/error and reject >24bit ICAO
- The value is only 24bits anyway so sign conversion does not matter
- also reject ICAO values > 24bits
2016-08-16 18:49:48 -07:00
Tom Pittenger 78e7acf25c AP_ADSB: do not detect, and thus avoid, yourself 2016-08-16 17:29:34 -07:00
Tom Pittenger b6810006eb AP_ADSB: move mavlink msg handling into library 2016-08-16 16:33:36 -07:00
Tom Pittenger 282817eeb9 AP_ADSB: revert default enable = 0 2016-08-01 17:56:04 -07:00
Tom Pittenger b5ec37b9d8 AP_ADSB: change adsb.enable param to be a flag 2016-08-01 17:51:24 -07:00
Tom Pittenger 2be32e9daa AP_ADSB: remove all threat logic in adsb lib in favor of avoidance lib 2016-08-01 15:27:40 -07:00
Tom Pittenger b2b63b4d80 AP_ADSB: change param ADSB_ENABLE default from 0 to 1 2016-08-01 15:27:39 -07:00
Tom Pittenger 89271c29ab AP_ADSB: move variable into struct like the rest 2016-08-01 15:27:38 -07:00
Tom Pittenger f7c2df8e91 AP_ADSB: sanity check data via valid_flags before forwarding to avoidance lib 2016-08-01 12:47:18 -07:00
Tom Pittenger 5c0b5f5cd1 AP_ADSB: reject packets that are invalid or already stale 2016-08-01 12:44:20 -07:00
Tom Pittenger b12edf6a71 AP_ADSB: fix bug where the update timeout wasn't being stored correctly
- causes immediate timeout so all samples were dropped
- now the timeout is current and respects the time-since-last-comms/packet so we can ignore stale packets
2016-08-01 12:43:47 -07:00
Tom Pittenger e0bb77726e AP_ADSB: do not service transceiver if it is not detected
- also allow forced detected (setting chan in header) for testing by not having it time out in that special case (timer = 0)
2016-08-01 09:06:05 -07:00
Tom Pittenger 59135fc615 AP_ADSB: fixed comment for default chan -1 means transceiver is not detected 2016-07-28 09:41:38 -07:00
Tom Pittenger 2c6340bb10 AP_ADSB: compiler warning: init value before use even though it already is
silly compiler warnings.. this one is incorrect but it throws a conservative warning which this solves
2016-07-25 10:14:00 -07:00
Tom Pittenger dce734d196 AP_ADSB: treat invalid vehicle same as out-of-range: ignore and/or delete it
- aircraft that travel out of range will now get dropped instantly instead of linger and go stale then timeout
2016-07-25 10:03:48 -07:00
Tom Pittenger 726d1d515e AP_ADSB: use correct units (sec) in time since last update for vehicle update 2016-07-25 10:00:57 -07:00
Peter Barker 1cdb97e605 AP_ADSB: support for provision of samples to other libraries 2016-07-25 20:24:37 +09:00
Peter Barker 4639d12f0e AP_ADSB: break circular dependency with Avoidance 2016-07-25 20:24:37 +09:00
Tom Pittenger cb91f25dd7 AP_ADSB: change adsb-out param desc and defaults 2016-07-22 17:09:10 -07:00
Tom Pittenger 9b390fcc1b AP_ADSB: add mavlink handlers 2016-07-22 13:55:20 -07:00
Tom Pittenger a5f256229f AP_ADSB: remove mavlink specific source, xml not ready yet 2016-07-21 00:04:17 -07:00
Tom Pittenger 8617880714 AP_ADSB: check buffer space before sending 2016-07-20 22:40:13 -07:00
Tom Pittenger 8b9057f23c AP_ADSB: run dynamic at 5Hz and static/cfg at 5sec 2016-07-20 22:40:12 -07:00
Tom Pittenger ea0a5c973c AP_ADSB: simplify logic in update_vehicle() 2016-07-20 22:40:12 -07:00
Tom Pittenger cf77ff6d4f AP_ADSB: convert all function calls to use const and use Location_Class 2016-07-20 22:40:11 -07:00
Tom Pittenger 4c9642ac08 AP_ADSB: callsign gen should use ICAO in hex 2016-07-20 22:40:10 -07:00
Tom Pittenger 69887e1646 AP_ADSB: do not init variables in header class definition 2016-07-20 22:40:09 -07:00
Tom Pittenger f5bf98041e AP_ADSB: do not spam to all mavlink ports, require the transceiver health heartbeat 2016-07-20 22:40:09 -07:00
Tom Pittenger b6e25e7d64 AP_ADSB: add support for ADSB transceiver mavlink packets 2016-07-20 22:40:08 -07:00
Tom Pittenger 2223216ca2 AP_ADSB: add param ADSB_LIST_RADIUS to ignore distant aircraft 2016-07-20 22:32:47 -07:00
Tom Pittenger 454560ca4c AP_ADSB: organize variables into in_state and avoid_state structs 2016-07-20 22:32:47 -07:00
Tom Pittenger 37f990bfad AP_ADSB: allow param based VEHICLE list sizes, 1 to 100. 2016-06-26 11:03:33 -07:00
Tom Pittenger 746e2211e9 AP_ADSB: remove extra include 2016-06-19 11:24:31 -07:00
Tom Pittenger 4cd1721bf9 AP_ADSB: add ADSB_streamrate 2016-06-19 11:24:29 -07:00
Tom Pittenger 8036912173 AP_ADSB: clarified some minor logic 2016-06-14 21:05:44 -07:00
Tom Pittenger ad81e56a64 AP_ADSB: allow buffer to add to the max, instead of one less than the max 2016-06-14 21:00:27 -07:00
Lucas De Marchi 5047f2b6f8 AP_ADSB: replace header guard with pragma once 2016-03-16 18:40:39 +11:00
Tom Pittenger 4e4c1831f0 AP_ADSB: added guided mode handling 2015-12-31 15:36:49 +11:00
Tom Pittenger d003e24189 AP_ADSB: fix unit conversion 2015-12-18 13:49:47 +09:00
Tom Pittenger 87fccce9e2 AP_ADSB: update units for new mavlink msg 2015-12-09 14:36:30 +11:00
Tom Pittenger decac5cb15 AP_ADSB: delete furthest when buffer is full
- added lowest/highest_threat tracking. This is currently defined as 2D distance. Room for improvement to make it 3D and be flight vector based instead of distance
- when trying to add a vehicle but  the buffer is full, overwrite the lowest_threat/furthest
- added basic THREAT enum of high/low which means in or our of the 200m radius. Room for improvement here.
2015-12-09 14:35:20 +11:00