Commit Graph

86 Commits

Author SHA1 Message Date
Peter Barker 610ba486ad AP_MSP: cut more code out based on defines 2024-08-12 18:07:21 +10:00
Andy Piper b6717e541a AP_MSP: use highest ESC temp rather than motor temp 2024-08-07 18:10:56 +10:00
Andrew Tridgell 5ca4bdbd8d AP_MSP: use NEW_NOTHROW for new(std::nothrow) 2024-06-04 09:20:21 +10:00
Michelle Rossouw 3ff790159f AP_MSP: Use scaled RC inputs instead of direct RC in. Also flip pitch to be correct. 2024-03-08 06:54:17 +11:00
Peter Barker fc1c30bc36 AP_MSP: correct compilation when GPS disabled
../../libraries/AP_MSP/AP_MSP_Telem_Backend.cpp: In member function 'virtual void AP_MSP_Telem_Backend::update_gps_state(AP_MSP_Telem_Backend::gps_state_t&)':
../../libraries/AP_MSP/AP_MSP_Telem_Backend.cpp:206:5: error: 'AP_GPS' was not declared in this scope; did you mean 'RAW_GPS'?
  206 |     AP_GPS& gps = AP::gps();
      |     ^~~~~~
      |     RAW_GPS
compilation terminated due to -Wfatal-errors.
2024-02-25 12:47:40 +11:00
Andrew Tridgell fca0aa3d02 AP_MSP: use gmtime_r() instead of gmtime()
using gmtime_r makes gmtime thread safe
2024-02-21 12:09:48 +11:00
Peter Barker e358d1d237 AP_MSP: add rcmapper config 2024-02-10 11:47:10 +11:00
Peter Barker cfab2e08ef AP_MSP: add and use AP_BATTERY_ENABLED 2024-02-06 11:01:02 +11:00
Peter Barker 03218b11ac AP_MSP: add and use AP_RSSI_ENABLED 2023-12-12 11:37:57 +11:00
Henry Wurzburg f9c9a09327 AP_MSP: update option metadata for clarity 2023-11-21 10:05:56 +11:00
Peter Barker 8f2c35d1e9 AP_MSP: add and use an AP_RTC_config.h 2023-10-11 19:17:27 +11:00
Peter Barker a8bb397eb7 AP_MSP: remove references to HAL_BUILD_AP_PERIPH
HAL_MSP_ENABLED is already explicitly off in chibios_hwdef.py for Periph
2023-08-09 17:39:49 +10:00
Peter Barker 3750a632e3 AP_MSP: use minimize.inc for HAL_MSP_ENABLED and dependencies 2023-06-14 17:44:13 +10:00
Peter Barker da36de3b80 AP_MSP: add and use AP_MSP_config.h 2023-05-09 10:56:13 +10:00
Peter Barker 48d6b34969 AP_MSP: add and use RC_Channel_config.h 2023-03-22 14:25:09 +11:00
yaapu f15d939823 AP_MSP: Increase DisplayPort UART TX buffer to prevent OSD corruption
Note: UART RX buffer has been decreased by the same amount to keep the memory footprint constant
2023-02-15 12:31:37 +11:00
Peter Barker 2ae1062ad5 AP_MSP: regularise compass defines
start to make compass backends look like backends from our other libraries
2022-11-15 16:44:38 +11:00
Peter Barker 6561398a46 AP_MSP: tidy AP_SerialManager.h includes 2022-11-08 09:49:19 +11:00
jackhong12 4a4f361a17 all: use CLASS_NO_COPY() macro 2022-10-04 11:23:04 +11:00
yaapu 5cad520acf AP_MSP: move arming status to MSP telemetry base class 2022-09-21 17:18:53 +10:00
yaapu 25e0edc54b AP_OSD: New per screen PARAMs for OSD overlay resolution and font
This adds
 OSDn_TXT_RES to select SD/HD overlay resoloution
 OSDn_FONT_INDEX for font index selection

Right now support is limited to MSP Displayport OSD devices
2022-09-21 17:16:20 +10:00
Andrew Tridgell 286ea7499b AP_MSP: use BIT_IS_SET_64()
the bitmask is 64 bits wide
2022-09-06 10:49:50 +10:00
Peter Barker c95ff4b82b AP_MSP: rename OpticalFlow class to AP_OpticalFlow
Brings us in-line with other classes in ArduPilot.

Removes ambiguity with AP_HAL::OpticalFlow which can cause compilation errors as we start to make code more portable across targets
2022-08-18 14:24:01 +10:00
Pierre Kancir 0c9060753e AP_MSP: fix line ending 2022-06-08 08:16:42 +09:00
Peter Barker c8f1d2f023 AP_MSP: allow baro backends to be individually compiled out
filtering by define name is the most useful bit
2022-05-22 12:11:45 +10:00
Peter Barker 10ce2c7fff AP_MSP: allow backends to be compiled out 2022-05-10 09:02:51 +10:00
Peter Barker 92b44c118f AP_MSP: tidy includes 2022-05-03 09:14:58 +10:00
Peter Barker 7a0c3dc911 AP_MSP: include cleanups 2022-03-01 11:21:33 +11:00
Peter Barker 1c63aa1e4d AP_MSP: rename AP_AHRS::get_position to get_location 2022-01-25 10:47:22 +11:00
Joshua Henderson 1aacd7ba02 AP_MSP: add define AP_AIRSPEED_ENABLED 2022-01-19 18:21:32 +11:00
Shiv Tyagi 4b7b5a4d90 AP_OSD: fix code causing errors when OSD is compiled out
This fixes the code causing problem in compiling out OSD
2021-12-21 10:06:01 +11:00
Shiv Tyagi 1c33cfca5d AP_MSP: factor code in init method
This factors code in AP_MSP:init() and removes two of the three identical implementations for initialising backends
2021-10-28 20:37:24 +11:00
Peter Barker 4aa6c212d2 AP_MSP: move from HAL_NO_GCS to HAL_GCS_ENABLED 2021-09-22 21:37:00 +10:00
yaapu f33d6c4ec1 AP_MSP: fix rssi rounding issue 2021-09-22 17:09:50 +10:00
yaapu 9f0d9a5652 AP_MSP: added multi screen and stats support to DJI FPV OSD 2021-09-16 09:54:25 +10:00
yaapu 53ea385291 AP_MSP: removed unnecessary pure virtual methods 2021-09-15 17:28:56 +10:00
yaapu e1b12fbee3 AP_MSP: use const structures and brace initialization where possible
saves ane extra 130bytes
2021-09-15 17:28:56 +10:00
yaapu 3bbf2c1f70 AP_MSP: removed unstructured writes to msp dst buffer 2021-09-15 17:28:56 +10:00
Andrew Tridgell 1655beeca9 AP_MSP: fixed build without MSP
found by custom.ardupilot.org
2021-08-26 10:01:35 +10:00
yaapu 188b7a50a9 AP_MSP: added a new backend for msp displayport aka canvas mode support 2021-08-25 17:12:15 +10:00
yaapu 05686f3c60 AP_MSP: fixed MSP RC out command 2021-08-25 17:12:15 +10:00
Michel Pastor 765b71adb6 AP_OSD: rename BLH elements to ESC 2021-07-06 12:18:21 +10:00
Michel Pastor 61073de909 AP_MSP: fix DJI FPV temperature and RPM 2021-07-06 12:18:21 +10:00
Michel Pastor f4e2d462f7 AP_MSP: Telem_Backend: do not round vertical speed to 1m/s 2021-05-26 18:33:27 +10:00
Michel Pastor 0090d8b1c0 AP_MSP: Telem_Backend: fix temperature 2021-05-26 17:34:57 +10:00
Andy Piper fcc8853244 AP_MSP: generalise ESC telemetry to allow data from other ESCs
enable with HAL_WITH_ESC_TELEM
2021-05-12 17:01:11 +10:00
Andrew Tridgell 106162b0c5 AP_MSP: removed date/time from MSP
we don't want to use real dates here as that would mean we don't get
consistent builds. Being able to reproduce the exact build at a later
date is a valuable property of the code

The git hash should be enough
2021-02-13 19:24:48 +11:00
yaapu 89802ed6fc AP_MSP:Tools: use BATTERY_STATE.voltage_cv for cell voltage calculation to replicate actual DJI Goggles behaviour
This becomes apparent when pack voltage is above DJI's hard limit of 25.5v
with this fix the cell voltage is correct even for 12s packs just like on real hardware
2021-01-13 17:59:15 +11:00
yaapu 0f49058fbd AP_MSP: fix for missing ACK on unsupported MSP messages
MSP requires all messages to be acknowledged even if unsupported
2021-01-11 08:54:15 +11:00
yaapu 42b85c88ed AP_MSP: fix for multiple backends initialization 2020-12-09 19:40:22 +11:00