Randy Mackay
b3431685a8
AP_ADSB: resolve gcs::send_text compiler warning
6 years ago
Pierre Kancir
78cd3cc722
AP_ADSB: pass mavlink_message_t by const reference
6 years ago
Peter Barker
90edc8b51a
AP_ADSB: move include of AHRS to .cpp
...
Not used in header, helps fix include loops
6 years ago
Michael du Breuil
2dcbe5a49b
AP_ADSB: Include needed AP_Baro.h
6 years ago
Michael du Breuil
a09ead5819
AP_ADSB: Fix AP_GPS include
6 years ago
Tom Pittenger
b79993a2f2
ADSB: rename dataflash to logger and fix @values whitespace
6 years ago
IamPete1
20e6f6045d
AP_ADSB: add logging
6 years ago
Peter Barker
495111d67e
AP_ADSB: use enum class for AltFrame enumeration
6 years ago
Tom Pittenger
8d6748dc4f
AP_ADSB: add special vehicle that ignores range filters
6 years ago
Tom Pittenger
ec59fe9398
ADSB: cleanup, make more things const
6 years ago
Tom Pittenger
624d6b5490
AP_ADSB: add accessor to fetch a vehicle from database by icao
6 years ago
Tom Pittenger
6145711931
ADSB: add param ADSB_LIST_ALT to filter aircraft by altitude. default is disabled
6 years ago
Peter Barker
384ab476b4
AP_ADSB: adjust for Location_Class and Location unification
6 years ago
hoangthien94
0d964a5502
AP_ADSB: Fix error snprintf output truncated
...
AP_ADSB: Change octal squawk code mask to 0x1FFF
6 years ago
Dr.-Ing. Amilcar do Carmo Lucas
c9bbc2773d
AP_ADSB: Add valid parameter range to squawk codes
7 years ago
Pierre Kancir
9ada804489
AP_ADSB: fix snprintf warning
7 years ago
Tom Pittenger
657f515f40
AP_ADSB: add cfg_out passthrough parsing
...
- add param ADSB_SQUAWK
- add param ADSB_RF_CAPABLE
7 years ago
Patrick José Pereira
0c18b43351
AP_ADSB: Use SSL air pressure value
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
7 years ago
Peter Barker
02205a0cb3
AP_ADSB: use baro singleton
7 years ago
Peter Barker
ae3099ef4b
AP_ADSB: use AP::ahrs() singleton
7 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
d1a96ca4ff
AP_ADSB: fix spelling in comments
...
non-functional change
7 years ago
Andrew Tridgell
9ceddbdab6
AP_ADSB: fixed build warning
7 years ago
Peter Barker
d1d5a484ce
AP_ADSB: use GPS singleton
7 years ago
Andrew Tridgell
6487a22acd
AP_ADSB: removed create() method for objects
...
See discussion here:
https://github.com/ArduPilot/ardupilot/issues/7331
we were getting some uninitialised variables. While it only showed up in
AP_SbusOut, it means we can't be sure it won't happen on other objects,
so safest to remove the approach
Thanks to assistance from Lucas, Peter and Francisco
7 years ago
Lucas De Marchi
cce51ec1c3
AP_ADSB: add static create method
7 years ago
Tom Pittenger
1c223b520c
AP_ADSB - update description of ADSB_RF_SELECT to say Rx-only devices are always in Rx mode
8 years ago
Lucas De Marchi
cb9c626577
AP_ADSB: fix getting a copy rather than a reference
...
These have been caught by making constructors private and enforcing
calling a create() method to create objects are supposed to be
statically allocated only.
The Vector3f reference was just nearby and was a change copied from
similar PR from Peter Barker (#6873 ).
8 years ago
Peter Barker
e69bc5f46b
AP_ADSB: eliminate GCS_MAVLINK::send_statustext_all
8 years ago
Tom Pittenger
76dabf2dd9
AP_ADSB: cleanup
...
non-functional change
8 years ago
Tom Pittenger
5adbf9b232
AP_ADSB: populate altitude via pressure for ADSB-Out
...
fixes https://github.com/ArduPilot/ardupilot/issues/5424
8 years ago
murata
908d9a8a8c
AP_ADSB: Change sprintf method to secure snprintf method.
8 years ago
Tom Pittenger
372837b959
Update AP_ADSB.cpp
...
AP_ADSB: fixed GPS.alt reporting cm to mm conversion bug
Issue 5424
8 years ago
murata
e15c234a4f
AP_ADSB: Set in the sprintf method.
8 years ago
murata
0028bd7b3c
AP_ADSB: Set in the sprintf method.
8 years ago
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.
8 years ago
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.
8 years ago
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
9 years ago
Tom Pittenger
78e7acf25c
AP_ADSB: do not detect, and thus avoid, yourself
9 years ago
Tom Pittenger
b6810006eb
AP_ADSB: move mavlink msg handling into library
9 years ago
Tom Pittenger
282817eeb9
AP_ADSB: revert default enable = 0
9 years ago
Tom Pittenger
b5ec37b9d8
AP_ADSB: change adsb.enable param to be a flag
9 years ago
Tom Pittenger
2be32e9daa
AP_ADSB: remove all threat logic in adsb lib in favor of avoidance lib
9 years ago
Tom Pittenger
b2b63b4d80
AP_ADSB: change param ADSB_ENABLE default from 0 to 1
9 years ago
Tom Pittenger
89271c29ab
AP_ADSB: move variable into struct like the rest
9 years ago
Tom Pittenger
f7c2df8e91
AP_ADSB: sanity check data via valid_flags before forwarding to avoidance lib
9 years ago
Tom Pittenger
5c0b5f5cd1
AP_ADSB: reject packets that are invalid or already stale
9 years ago
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
9 years ago
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)
9 years ago
Tom Pittenger
59135fc615
AP_ADSB: fixed comment for default chan -1 means transceiver is not detected
9 years ago
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
9 years ago