yaapu
6b26a64f77
AP_Frsky_Telem: added support for passthrough telemetry over crossfire
4 years ago
yaapu
e044cdfde7
AP_Frsky_Telem: fix for conditional compilation of bidir support
4 years ago
yaapu
988af83fce
AP_Frsky_Telem: added support for frsky sport/fport bidirectional telemetry
4 years ago
Peter Barker
0bb7a31850
AP_Frsky_Telem: move all method implementations into correct files
4 years ago
Peter Barker
05d7950261
AP_Frsky_Telem: frontend/backend split
4 years ago
yaapu
683df64d86
AP_Frsky_Telem: fix frsky serial 10 parameters
...
param rotation now is frame_type, battery_1, battery_2 (only if present)
5 years ago
yaapu
6303c700d4
AP_Frsky_Telem: prevent SPort frame fragmentation by writing whole 8byte frames vs writing single bytes
...
general scheduler delays could introduce small delays when writing SPort frames to the uart one byte
at the time potentially leading to rx desyncs on the SPort bus.
This fix replaces single byte writes with full frame writes.
The library has around 10ms to repond to polling so to guarantee frame integrity responses taking
longer than 7500us are discarded
5 years ago
Andy Piper
44e5171f2b
AP_Frsky_Telem: refactor common code into AP_RCTelemetry
...
refactor naming
when using external data AP_Frsky_Telem::init() has to call AP_RCTelemetry::init() and exit.
No need to initialize serial ports
5 years ago
yaapu
fed8ecc3b0
AP_Frsky_Telem: fix for protocol=4 GAlt=0 and GSPd=0
...
This fixes protocol 4 GPS altitude and speed error, both were reported as constant 0
for cal_gps_position() was never called
5 years ago
yaapu
0c5618c9e7
AP_Frsky_Telem: add semaphores to ahrs access and fix potential array out of bounds access
...
use a semaphore for non atomic ahrs calls and fix a potential array out of bounds
access for faster than sport telemetry links.
5 years ago
yaapu
b606c0df64
AP_Frsky_Telem: added VSpd to telemetry protocol 4
...
The Frsky vario "virtual" sensor was reporting altitude but not vertical speed.
This patch adds VSpd as a new sensor when protocol 4 is selected.
GPS frsky sensor is migrated to 2 byte sensor ID and needs rediscovery if using the previous 1 byte version
5 years ago
yaapu
e9e02542f1
AP_Frsky_Telem: fix for missing WFQ scheduler initialization
...
this fixes a missing WFQ scheduler initialization and sets a rate limiter on
status text messages to prevent text corruption
5 years ago
Andrew Tridgell
3556f33051
AP_Frsky_Telem: fixed a race condition with statustext handling
...
this fixes an issue that can cause a hardfault. See this bug report:
https://discuss.ardupilot.org/t/hexa-crash-after-watchdog-reset/50917
ObjectArray is not thread safe
5 years ago
Andrew Tridgell
9579e64a03
AP_Frsky_Telem: make get_telem_data() static
...
auto-create the object when it is needed for FPort
5 years ago
Andrew Tridgell
49f81fbd18
AP_FrSky_Telem: allow for external library to send SPort data
...
this provides the API needed for AP_RCProtocol_FPort to send
passthrough data over FPORT
5 years ago
yaapu
dddfaa256f
Ap_Frsky_Telem: replaced the passthrough scheduler with a WFQ one.
...
This replaces the default scheduler with a WFQ one
5 years ago
Andrew Tridgell
7afd51d03e
AP_Frsky_Telem: move FrSky handling to it's own thread
...
we are getting timing issues sharing with the other users of the IO
thread. The FrSky protocols are quite timing sensitive, so this should
help
6 years ago
Michael du Breuil
67898d7320
AP_FrSky_Telem: Don't statically allocate the statustext_queue
...
This saves 280 bytes of RAM
6 years ago
Michael du Breuil
59e62ca2fc
AP_FrSky_Telem: Make init return false if we failed to init
6 years ago
yaapu
efdad1fca7
AP_Frsky_Telem: fix for passthrough telemetry stall while sending message chunks
...
This prevents the library from giving message chunks a too high priority leading to
all telemetry packets but 0x5006(attitude) to starve.
6 years ago
Luis Vale Gonçalves
70c1414026
FrSky: Adjusted offsets
...
Following up on @yaapu comment https://github.com/ArduPilot/ardupilot/pull/10499#issuecomment-474625077
6 years ago
Peter Barker
1efc08b54e
AP_FrSky_Telem: eliminate use of Copter's _ap data
6 years ago
Peter Barker
0194cd69a1
AP_Frsky_Telem: take is_flying from AP_Notify
6 years ago
Peter Barker
680008ba4f
AP_Frsky_Telem: use gcs() to get frame string
6 years ago
Peter Barker
e5818308b9
AP_Frsky_Telem: move FRsky telemetry up into common GCS telemetry class
6 years ago
Peter Barker
9023e6eb7d
AP_Frsky_Telem: use rangefinder singleton
6 years ago
Peter Barker
4776183554
AP_Frsky_Telem: use battery singleton
6 years ago
Peter Barker
53111129f2
AP_Frsky_Telem: use AHRS singleton
6 years ago
Peter Barker
db4b1aa7aa
AP_Frsky_Telem: use serialmanager singleton
6 years ago
Jochen Anglett
1c60417d03
AP_Frsky_Telem: add IMU temperature reporting
6 years ago
Peter Barker
4168bd709c
AP_Frsky_Telem: use AP_FWVersion singleton
7 years ago
Michael du Breuil
3f581d0479
AP_Frsky_Telem: Remove unneeded battery failsafe parameters
7 years ago
Andrew Tridgell
c618a27ee0
AP_Frsky_Telem: 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
Florent Martel
fee79afb8e
AP_Frsky_Telem: add second battery info
7 years ago
Florent Martel
5d9299d72f
AP_Frsky_Telem: add second battery capacity parameter
7 years ago
Lucas De Marchi
8b5d799885
AP_Frsky_Telem: add static create method
7 years ago
Florent Martel
949aa4d9ca
AP_Frsky_Telem: replace VDOP with extra GPS status bits
...
This removes VDOP (not really that useful) and replaces two of those
bits with GPS status info that now allows to differentiate between 3D
fix, DGPS, RTK Float, and RTK Fixed. This is written to maximize
backwards compatibility (by not shifting any other bits of the
gps_status variable)
8 years ago
Florent Martel
75905be376
AP_Frsky_Telem: simplified set_is_flying and moved to header file
8 years ago
Florent Martel
bc4ab70c1c
AP_Frsky_Telem: added const to some declarations
8 years ago
Florent Martel
328e6d6886
AP_Frsky_Telem: removed sending redundant VSpd, Alt, and VFAS sensor values, which can now be handled by OpenTX
8 years ago
floaledm
5386edb791
AP_Frsky_Telem: fix setting of land_complete flag
...
When is_flying is true, land_complete should be set to 0, and
conversely.
8 years ago
floaledm
1aab5eec38
AP_Frsky_Telem: send ap_status only once initialized
...
Same as what is found in GCS_MAVLink.cpp for copter
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
Peter Barker
6ccf36439d
AP_Frsky_Telem: actually set _ap.value flags based in is_flying
...
Closes #5017
8 years ago
floaledm
602b81a4d7
AP_Frsky_Telem: add ekf_status check
8 years ago
floaledm
fcfaa98bb6
AP_Frsky_Telem: reworked _statustext_queue.empty() check
8 years ago
Tom Pittenger
8001cc403b
AP_Frsky_Telem: fix is_flying assignment
8 years ago
floaledm
5e022bf631
AP_Frsky_Telem: fix *_ap.value issue for Plane
...
set_is_flying does operations on a nullptr, plus we loose the ability to
update ap_status accordingly for Plane
8 years ago
floaledm
ff0d0b1aa5
AP_Frsky_Telem: use ringbuffer for Frsky message queueing
8 years ago
Tom Pittenger
6991ca53b3
AP_Frsky_Telem: allow default arguments in init() to set things to nullptr
8 years ago