Commit Graph

296 Commits

Author SHA1 Message Date
Peter Barker 2656bcf5fa AP_OSD: add and use AP_VIDEOTX_ENABLED 2023-01-24 11:03:27 +11:00
Iampete1 82dabd1872 AP_OSD: use new param defualting method 2023-01-24 10:16:56 +11:00
Iampete1 5c013552ed AP_OSD: align param info structures to save flash 2023-01-11 18:41:34 +11:00
Iampete1 e2535d1197 AP_OSD: rework param defualting 2023-01-10 10:42:52 +11:00
Peter Barker aea39a1d18 AP_OSD: remove GCS.h from library header files 2022-11-16 18:29:07 +11:00
Peter Barker 40c420e2dc AP_OSD: guard constructor requiring MAVLink with HAL_GCS_ENABLED
OSD_PARAM_NONE comes from mavlink headers
2022-11-16 18:29:07 +11:00
Peter Barker ad32805213 AP_OSD: tidy includes 2022-11-08 09:49:19 +11:00
Henry Wurzburg ac9631f316 AP_OSD: fix error in stats screen introduced in #18396 2022-11-01 11:50:18 +11:00
jackhong12 4a4f361a17 all: use CLASS_NO_COPY() macro 2022-10-04 11:23:04 +11:00
Henry Wurzburg b10344bac4 AP_OSD: update font files to remove blank space artifacts 2022-09-27 09:23:59 +10:00
Henry Wurzburg fa8e5ad3f1 AP_OSD:Add HD fonts for DJI googles 2022-09-22 18:04:15 +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
yaapu 28f2adf1b2 AP_OSD: added missing parameter meta information for OSD_TYPE=5 2022-09-15 10:17:52 +10:00
yaapu ca588b2eed AP_OSD: Fixed UART thread ownership for the MSP DisplayPort OSD Backend 2022-09-14 18:47:01 +10:00
Peter Barker 6fc7209c69 AP_OSD: add required include
Was getting APM_BUILD_COPTER_OR_HELI  transitively
2022-08-16 09:45:51 +10:00
Iampete1 28007bfc1e AP_OSD: params always use set method 2022-08-03 13:43:48 +01:00
Iampete1 94004db13f AP_OSD: change AC_FENCE to AP_FENCE_ENABLED 2022-07-27 19:04:56 +10:00
Iampete1 520fc01739 AP_OSD: fix complation without fence 2022-07-27 19:04:56 +10:00
Peter Barker d926aa2e11 AP_OSD: correct includes for AP_Arming change
This file was getting the copter-or-heli define from AP_Arming, which was getting it from AP_InertialSensor.  This broke when AP_Arming stopped getting AP_InertialSensor, so add the include.

Also takes the opportunity to stop including GCS.h
2022-07-19 12:27:26 +10:00
Peter Barker 55fb6c2c51 AP_OSD: include GCS_MAVLink for OSD_PARAM_NONE 2022-07-13 18:32:35 +10:00
Andy Piper 1899962175 AP_OSD: update parameter menu flightmodes for plane and copter. 2022-05-30 11:16:39 +09:00
Peter Barker 016c9d8239 AP_OSD: correct compilation without OSD_ENABLED
The max7456 header file is guarded by his macro
2022-05-17 10:26:50 +10:00
murata cd9b4b48ae AP_OSD: Console output can be disabled 2022-05-17 09:53:06 +10:00
Peter Barker 97ccf77941 AP_OSD: tidy includes 2022-05-03 09:14:58 +10:00
murata e977f85647 AP_OSD: Change from division to multiplication 2022-03-16 18:41:52 +11:00
Henry Wurzburg 73006d9a7c AP_OSD: make OSD rssi scale match link quality (0-100) 2022-03-15 10:18:09 +11:00
Peter Barker 26c4b65d4e AP_OSD: rename AP_AHRS::get_position to get_location 2022-01-25 10:47:22 +11:00
Joshua Henderson 3ff13733ea AP_OSD: add define AP_AIRSPEED_ENABLED 2022-01-19 18:21:32 +11:00
Jaaaky da3b064a31 AP_OSD: Fix multi #include's 2021-12-21 10:38:46 +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
Andy Piper 97b57519bf AP_OSD: convert APM_BUILD_COPTER_OR_HELI() to APM_BUILD_COPTER_OR_HELI 2021-10-26 11:42:12 +11:00
Sebastian Quilter c8434fe1ed AP_OSD: make rangefinder ranges m rather than cm 2021-10-21 21:28:53 +11:00
Michel Pastor c590e1f1c5 OP_OSD_Screen: make the rangefinder distance element fixed length 2021-10-05 12:15:08 +11:00
Gone4Dirt e5488e1869 AP_OSD: Add APM_BUILD_Heli 2021-09-29 19:55:48 +10:00
Tatsuya Yamaguchi 0b06d4072e AP_OSD: remove OSDn_BTEMP_* params when BARO_MAX_INSTANCES=1 2021-09-29 10:51:14 +10:00
Sebastian Quilter 69120fa1c7 AP_OSD: #if sidebars 2021-09-28 09:04:45 +10:00
Sebastian Quilter 9a58ccb3cd AP_OSD: sidebar support for remaining 4 fonts 2021-09-28 09:04:45 +10:00
Sebastian Quilter 2379036e9a AP_OSD: Add sidebars for MAX7456 2021-09-28 09:04:45 +10:00
Peter Barker 6ce79785b5 AP_OSD: move from HAL_NO_GCS to HAL_GCS_ENABLED 2021-09-22 21:37:00 +10:00
Peter Barker 4aa6c212d2 AP_MSP: move from HAL_NO_GCS to HAL_GCS_ENABLED 2021-09-22 21:37:00 +10:00
yaapu 6a459af624 AP_OSD: decrease blink frequency from 2Hz to 1Hz on MSP DisplayPort
Allows to actually see the blinking on hardware with a slow screen refresh rate
2021-09-22 18:06:12 +10:00
yaapu 9acfdaaa19 AP_OSD: added packed decimal support to MSP DisplayPort
This allows to take advantage of ArduPilot's compact decimal fonts
2021-09-22 18:06:12 +10:00
yaapu 94aba33d10 AP_OSD: added multi screen and stats support to DJI FPV OSD 2021-09-16 09:54:25 +10:00
Willian Galvani f7fa4b7c19 AP_OSD: update to use capacity_remaining_pct() as a bool 2021-09-08 17:17:41 +10:00
Andrew Tridgell 8366a1622c AP_OSD: hide disabled parameters in OSD var_info2 2021-09-07 10:36:16 +10:00
yaapu 7e3395eebd AP_OSD: added a new backend for msp displayport aka canvas mode support 2021-08-25 17:12:15 +10:00
Hwurzburg 0d3b1d90b0 AP_OSD: fixes bug introduced by #16477 2021-08-14 10:17:42 +10:00
Pierre Kancir bff899e8f2 AP_OSD: check for nullptr before using it 2021-08-12 13:56:53 +10:00
giacomo892 8da8b34b49 AP_OSD: Add option to disable Crosshair on horizon element 2021-08-11 18:42:11 +10:00
Hwurzburg 2939efe2c6 AP_OSD: add option to convert to miless at 5280ft vs 10000ft 2021-08-09 16:33:01 +10:00
Hwurzburg e680611324 AP_OSD: Add Link Quality icon 2021-08-06 10:16:24 +10:00
Hwurzburg b2a100f41b AP_OSD: correct OSD horizon for VTOL modes and TRIM_PITCH_CD in FW modes 2021-08-03 10:09:28 +10:00
Andrew Tridgell 2bd04c14fd AP_OSD: move OSD_LINK_Q_* to a new param table
this gives us room for up to 63 more entries
2021-07-16 13:27:38 +10:00
Hwurzburg ca92d73f25 AP_OSD: Add RX Link Quality Panel 2021-07-16 13:27:38 +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
giacomo892 6df65e694d AP_OSD_Screen: Blink the OSD VTX Power element indicating configuration in progress 2021-06-16 18:49:13 +10:00
Dr.-Ing. Amilcar do Carmo Lucas 2d5ac0009a AP_OSD: Fix compilation when HAL_WITH_ESC_TELEM == 0 2021-06-09 21:42:51 +10:00
Peter Barker ff048990d9 AP_OSD: correct format string issues
AP_OSD: remove spurious % in fmt string

AP_OSD: cast to (signed) to fix fmt string issue

AP_OSD: cast to (unsigned) to fix fmt string issues
2021-06-08 17:08:43 +10:00
Peter Barker e06f937486 AP_OSD: add FMT_PRINT to write(...) call 2021-06-08 17:08:43 +10:00
Michel Pastor 30029f59db AP_OSD_Screen: make BLH RPM fixed length 2021-06-08 10:40:44 +10:00
vierfuffzig bed7d5f125 AP_OSD: add rangefinder panel 2021-06-01 11:33:05 +10:00
Michel Pastor 468838ff7f AP_OSD: do not show hgt_abvterr and fence elements by default 2021-05-26 19:01:56 +10:00
Michel Pastor 1b84852d79 AP_OSD: fix BLH elements 2021-05-26 17:33:54 +10:00
Andy Piper 45e1b56f17 AP_OSD: generalise ESC telemetry to allow data from other ESCs 2021-05-12 17:01:11 +10:00
Hwurzburg fda07e7dc8 AP_OSD: Add fence indicator panel 2021-05-11 09:36:15 +10:00
Hwurzburg defc81443c AP_OSD: fix disable value for terrain alt warning 2021-05-04 10:13:56 +10:00
giacomo892 b5ebf9022c [AP_OSD] Fix wrong comment in OSD_W_TERR param 2021-04-28 18:14:52 +10:00
Andrew Tridgell 8f249d5ece AP_OSD: fixed param edit for new plane PIDs 2021-04-15 06:57:16 +10:00
Hwurzburg cc4fe29d8f AP_OSD: add icon for terrain alt panel and font editor 2021-04-13 14:50:07 +10:00
vierfuffzig 10f15fbba5 AP_OSD: add kilo symbol to RPM panel 2021-04-13 09:08:36 +10:00
Andrew Tridgell 483ed19662 AP_OSD: change for AP::terrain as a pointer 2021-04-07 20:56:01 +10:00
Michel Pastor 46fb88e5a0 AP_OSD: Fix ground and wind speed varying length 2021-03-23 12:16:35 +11:00
Hwurzburg c1f56c4b22 AP_OSD: Add cell voltage and resting voltage displays
Co-authored-by:shellixyz
2021-03-23 10:24:12 +11:00
Hwurzburg fd9c497232 AP_OSD: Add height above terrain panel and warning 2021-03-11 11:54:47 +11:00
Sebastian Quilter b4119aa07b AP_OSD: remove font bins from gitignore 2021-02-23 15:22:22 +11:00
Sebastian Quilter bea8bf3afb AP_OSD: Add draw_vtx_power() 2021-02-23 15:22:22 +11:00
Sebastian Quilter e44eb47143 AP_OSD: Update fonts to include mW char 2021-02-23 15:22:22 +11:00
Pierre Kancir 67bdec3325 AP_OSD: use AUX_PWM_TRIGGER_LOW and AUX_PWM_TRIGGER_HIGH 2021-02-10 18:48:06 +11:00
basti a3c47e0a23 AP_OSD: add SD-card handling to font README 2021-02-05 19:48:06 +11:00
Patrick José Pereira a902c1d54b AP_OSD: Add missing const in member functions
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-03 18:45:14 +11:00
Andrew Tridgell cfe63f8657 AP_OSD: changed OSD screen switching logic
this prevents us constantly changing screens when a PWM is given that
matches multiple screens. Instead the first matching screen is used
2021-02-03 10:09:41 +11:00
Andrew Tridgell 12b93e2922 AP_OSD: fixed valgrind errors with AP_Param::ParamToken 2021-01-26 10:43:09 +11:00
vierfuffzig c4a644100d AP_OSD: refactor current panel and add 2nd instance 2020-12-02 06:27:59 +11:00
Andrew Tridgell 1bef41b42e AP_OSD: fixed param metadata for several OSD settings
only found now we build OSD for SITL
2020-12-01 18:34:37 +11:00
Andrew Tridgell 42b1d2135a AP_OSD: fixed enable of OSD on boards with no built-in OSD
this fixes MSP enable
2020-12-01 18:34:37 +11:00
Michel Pastor eb88e6a37c AP_OSD: Fix vertical speed varying length 2020-12-01 11:20:16 +11:00
Peter Barker 3baaa84de1 AP_OSD: remove duplicate parameter definition 2020-11-24 12:15:15 +11:00
vierfuffzig e830494f0f AP_OSD_Screen: move vspeed decimal switch to 10 m/s 2020-11-18 09:27:54 +11:00
Andrew Tridgell 3a0e494085 AP_OSD: fallback to font 0 on load failure
this will allow us to reduce the number of fonts we include as
standard without breaking existing setups
2020-11-18 09:11:36 +11:00
Andrew Tridgell a2d86eac6d AP_OSD: allow for loading fonts from sdcard
user can put fontN.bin on their sdcard and it will replace the font in
romfs. This makes for easy font development, and allows for multiple
languages

This replaces #15668
2020-11-18 09:11:36 +11:00
yaapu 026ddfa679 AP_OSD: fix for sim_vehcile --osdmsp 2020-11-15 15:01:13 +11:00
Andrew Tridgell 8c59575646 AP_OSD: support callsign display on OSD
use a file "callsign.txt" on the sdcard for callsign
2020-11-12 14:22:44 -08:00
Andy Piper 8cd9af5ddd AP_OSD: refactor to enable a TX-only set of parameter screens
add accessor for getting parameter names
add camel-case conversion for parameters names
enable OSD parameters unless HAL_MINIMIZE_FEATURES
correct OSD parameter documentation
don't default to TXONLY
2020-11-11 18:13:11 +11:00
Iampete1 c591e45e59 AP_OSD: get wind speed from wind vane on rover 2020-10-13 11:39:43 +11:00
vierfuffzig 60b37f395e AP_OSD_Screen.cpp: add decimal precision to vspd 2020-10-06 10:17:43 +11:00
Michel Pastor 8465588467 AP_OLC: clean namespace and use constexpr instead of init method 2020-10-01 09:40:45 +10:00
giacomo892 4eeccb61cd WAF: Add AP_OLC to build 2020-10-01 09:40:45 +10:00
giacomo892 b00d3e00bc AP_OSD: Add OLC (pluscode) element 2020-10-01 09:40:45 +10:00
Andy Piper 46d4d9a97e AP_OSD: use cleaner conditional compilation for the various OSD options
provide suitable defaults for parameter screens on different vehicles
build fixes
Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
2020-09-16 18:11:54 +10:00