Commit Graph

52 Commits

Author SHA1 Message Date
Peter Barker 6ebd73f144 AP_RCTelemetry: add and use AP_RCTelemetry_config.h 2023-03-21 08:47:53 +11:00
Andrew Tridgell 3bead4f88a AP_RCTelemetry: fixed warning with gcc 12.2 2023-02-19 13:26:54 +11:00
Peter Barker e4d827a3d6 AP_RCTelemetry: add support for AP_VIDEOTX_ENABLED 2023-02-07 16:54:40 +11:00
Andy Piper 78c70c74dc AP_RCTelemetry: report CRSF link rate rather than mode.
Encode actual protocol being used
cleanup is_elrs() and version numbers
2022-12-22 18:38:31 +00:00
Mingchen Zhang bb18372d95 Add RC_OPTIONS feature gating of crsf flight mode star 2022-11-29 10:30:47 +11:00
Mingchen Zhang ad6355c029 Add * to the end of flight mode string in CRSF 2022-11-29 10:30:47 +11:00
Peter Barker 720bfc8dc8 AP_RCTelemetry: CRSF telemetry depends on SPortPassthrough 2022-11-15 18:44:45 +11:00
Peter Barker 6f9a6d2973 AP_RCTelemetry: tidy AP_SerialManager.h includes 2022-11-08 09:49:19 +11:00
Peter Barker c3c6842e5a AP_RCTelemetry: include required AP_Vehicle_Type header 2022-11-02 18:35:48 +11:00
Peter Barker 79b22a7ed8 AP_RCTelemetry: move defaulting of HAL_CRSF_TELEM_ENABLED to minimize_features.inc 2022-11-01 10:59:14 +11:00
jackhong12 4a4f361a17 all: use CLASS_NO_COPY() macro 2022-10-04 11:23:04 +11:00
Peter Barker bdc848743d AP_RCTelemetry: add and use AP_RPM_ENABLED 2022-09-20 09:28:27 +10:00
Andy Piper 25785e12d9 AP_RCTelemetry: don't spam mode changes on CRSF startup
rewrite device ping bootstrap to avoid ping flood
enable device pings on CRSF in the event of TX loss.
only send pings if not negotiating the version
2022-06-15 17:20:36 +10:00
Peter Barker 0e8ac68af4 AP_RCTelemetry: tidy includes 2022-05-03 09:14:58 +10:00
Andy Piper 13464ebb20 AP_RCTelemetry: check EKF checks against failsafe defaults. 2022-04-12 11:14:44 +10:00
Josh Henderson 56a30617e2 AP_RCTelemetry: add define AP_AIRSPEED_ENABLED 2022-01-19 18:21:32 +11:00
yaapu c0663da918 AP_RCTelemetry: added ExpressLRS support 2021-12-22 18:48:49 +11:00
Andrew Tridgell 178ae9e0c1 AP_RCTelemetry: use have_serial when detecting
avoid find_serial() as it changes port options
2021-12-21 11:07:44 +11:00
Jaaaky 8512652511 AP_RCTelemetry: Fix multi #include's 2021-12-21 10:38:46 +11:00
Hwurzburg a18a4e5719 AP_RCTelemetry: add RC option to report CRSF LQ as RSSI
Co-author: Jules Gilson <julesgilson@yahoo.co.uk>
2021-12-21 10:04:33 +11:00
yaapu b97e335940 AP_CRSF_Telem: adjusted status text frame size based on actually used bytes 2021-11-01 21:32:24 +11:00
yaapu 1850851869 AP_CRSF_Telem: adjusted flight mode frame length based on actually used bytes 2021-11-01 21:32:24 +11:00
Andy Piper e1fdab8423 AP_RCTelemetry: don't enter parameter mode while armed.
exit parameter mode quickly on ping
construct and respond to ping frames correctly
2021-09-21 10:41:58 +10:00
Willian Galvani c08e04a16a AP_RCTelemetry: update to use capacity_remaining_pct() as a bool 2021-09-08 17:17:41 +10:00
yaapu d91e2008d3 AP_RCTelemetry: incremented WFQ scheduler slots to 20 2021-08-25 17:13:16 +10:00
Andrew Tridgell fed927f1a4 AP_RCTelemetry: fixed CRSF build dependency issue
found on custom.ardupilot.org
2021-08-20 06:46:15 +10:00
Andy Piper 6f53337b88 AP_RCTelemetry: add baud rate change command frame processing.
report CRSF version when rate changes
2021-08-04 17:26:18 +10:00
Hwurzburg 89246739c4 AP_RCTelemetry: warn if Passthru miss-configured
Co-authored-by: Alessandro Apostoli <30294218+yaapu@users.noreply.github.com>
2021-08-03 11:00:11 +10:00
Hwurzburg ceeabb85a5 AP_RCTelemetry: fix ELRS systems spamming CRSF mode/rate messages 2021-07-13 09:52:53 +10:00
Andy Piper 40ec8c723b AP_RCTelemetry: correct firmware string length for CRSF 2021-07-12 11:25:31 +10:00
Andy Piper 96acb46fbf AP_RCTelemetry: correct VTX power settings and pass parameter requests more quickly
return parameter ids when CRSF folder request is made
turn off telemetry while processing parameters
2021-06-09 17:35:11 +10:00
murata 072420d98e AP_RCTelemetry: Do uart's nullptr check first 2021-05-11 10:24:50 +10:00
Andy Piper 94d4252a2a AP_RCTelemetry: warn if using CRSF on non-DMA channel
don't produce rf_mode messages when not using CRSF for RC control
2021-05-05 17:50:42 +10:00
Andy Piper de64467ca3 AP_RCTelemetry: prioritize pitmode changes over power changes 2021-04-12 16:22:36 +10:00
Andy Piper f1eee860c0 AP_RCTelemetry: don't process VTX frames when VTX support is disabled 2021-03-17 18:27:11 +11:00
Andy Piper d97079e53b AP_RCTelemetry: move AP_VideoTX to AP_VideoTX 2021-02-23 11:43:32 +11:00
Andy Piper a98f85502a AP_RCTelemetry: add support for SmartAudio protocol.
treat VTX frequency as a first class citizen, match band/channel to frequency
update CRSF to use new VTX configuration
use a 6-position switch to control VTX power
add support for VTX GCS announcement
announce VTX updates on CRSF
support pitmode-until-arm and pitmode-on-disarm

Co-authored-by: luis.martinez.exts <luis.martinez@juntadeandalucia.es>
2021-02-17 18:23:33 +11:00
yaapu ecfcd98f8a AP_RCTelemetry: apply a 5s hysteresis to RF mode changes and rate reporting 2021-01-20 18:06:24 +11:00
Andy Piper 23158480c7 AP_RCTelemetry: calculate CRSF custom frame support correctly 2021-01-20 18:06:24 +11:00
Andy Piper 39219451bd AP_RCTelemetry: detect CRSF tracer RX and switch to 250Hz high speed telemetry 2021-01-20 18:06:24 +11:00
yaapu 4933544489 AP_RCTelemetry: added support for passthrough telemetry over crossfire 2021-01-20 18:06:24 +11:00
Peter Barker 7bf7402561 AP_RCTelemetry: get airspeed sensor from singleton not AHRS object 2020-12-07 15:57:28 -08:00
Andrew Tridgell 19c42ca0ed AP_RCTelemetry: fixed build for gcc 9.x 2020-11-13 14:30:11 +11:00
Andy Piper 06feecfaf2 AP_RCTelemetry: support CRSF parameter ping requests
process read and write parameter request frames
add support for getting OSD parameters on read requests
send text selections over CRSF
chunker algorithm for CRSF text selections
disable functions if OSD_PARAM_ENABLED is not set
create separate parameter scheduler entry
don't enable CRSF text selection on 1mb boards
2020-11-11 18:13:11 +11:00
Randy Mackay bb25e4f6a3 AP_RCTelemetry: integrate ahrs::get_variances change
offset is no longer returned
2020-10-21 08:58:45 +09:00
Andy Piper 4535e749e1 AP_RCTelemetry: move CRSF link statistics definition to AP_RCProtocol
correctly calculate attitude
fix GPS alt message  - expects alt in m + 1000,  0 - 5000 m - from vierfuffzig <tunella@gmx.de>
fix used battery capacity - from vierfuffzig <tunella@gmx.de>
2020-08-06 18:24:46 +10:00
Andy Piper 111a4a735b AP_RCTelemetry: add setters for vtx configuration
deal with CRSF pitmode and options correctly
2020-07-14 16:50:08 +10:00
Andrew Tridgell 7e41874d8f AP_RCTelemetry: use strncpy_noterm 2020-07-10 13:32:24 +10:00
Andy Piper be3a2cc294 AP_RCTelemetry: disable CRSF debug 2020-07-09 17:42:17 +10:00
Andy Piper 5bc1b11a80 AP_RCTelemetry: CRSF support
battery and heartbeat telemetry
parse VTX packets and VTX telemetry
provide GPS, Battery, Attitude, FlightMode telemetry
issue parameter updates at scheduled rate
support setting power levels with dbm
support standalone mode
set defaults from incoming VTX packets
output configured VTX settings
2020-07-07 18:48:06 +10:00