Commit Graph

157 Commits (ad85117f457698292347bcf6a5673dc7b76ebc1b)

Author SHA1 Message Date
Michel Pastor 4c59b7dc43
Fix OSD temperature sensor preview (#703) 6 years ago
Michel Pastor ef530b6279
OSD: Add symbols for temperature sensor values (#704) 6 years ago
Michel Pastor 8792188c78
Add temperature alarms settings to the OSD tab (#695) 6 years ago
Michel Pastor 3396eae8b2
Fix saving OSD alarms from GUI (#694)
Fixes #693
6 years ago
Paweł Spychalski 0305320fe5
Merge pull request #688 from iNavFlight/dzikuvx-fix-osd-partial-loading
Fix partial loading of OSD tab is some cases
6 years ago
Michel Pastor ccbb246b15
Fix IMU and Baro temp OSD preview (#684) 6 years ago
Pawel Spychalski (DzikuVx) 71f9703b22 remove undeeded console log 6 years ago
Pawel Spychalski (DzikuVx) ae6c37118d Fix partial loading of OSD tab is some cases 6 years ago
Michel Pastor 0a720f44f6
Temperature sensors support (#670) 6 years ago
Pawel Spychalski (DzikuVx) 3c19c15782 minor fix 6 years ago
Pawel Spychalski (DzikuVx) a35023c307 fix OSD tab 6 years ago
Pawel Spychalski (DzikuVx) 529c40e556 1.6 is gone 6 years ago
Michel Pastor 6eded9dcd0
Fix the code to select the previously set font (#641)
It was not working if the previously selected font wasn't existing
anymore
6 years ago
Alberto García Hierro 19610690d8 Add support for displaying +code in the OSD 6 years ago
Alberto García Hierro 534c172ca6 Add support for MSL Altitude OSD indicator 6 years ago
Alberto García Hierro a3ba54090c Add support for fonts with 512 characters
- When uploading fonts with less than 512 characters, fill the rest
with blank characters to make sure we completely overwrite the
old font. Characters 256-511 are uploaded first, so uploading works
on both chips with just 256 characters and firmware < 2.1.
- Add metadata to the font files, so the flight controller can detect
if they're out of date.
- Add boot logo to all fonts.
6 years ago
Michel Pastor 2b97becbab Use the last selected font for the OSD preview 6 years ago
Michel Pastor b8763cd982 Resize font manager window to fit the new fonts 6 years ago
Michel Pastor ff8201bd57
Merge pull request #592 from nmaggioni/osd_temperature
Gyro temperature in OSD
6 years ago
Michel Pastor 9fc446981f
Merge pull request #601 from shellixyz/3d_speed_min_version
Add min version requirement for the 3D speed OSD element
6 years ago
Michel Pastor a342b139fd
New OSD symbols for 3D speed, all fonts but Clarity (#599)
* Update Vision OSD font by Olivier C with 3D speed symbols
* Update default, bold and large OSD fonts with 3D speed symbols
* Update OSD preview 3D speed with the new symbols
6 years ago
Michel Pastor 693f016fac Add min version requirement for the 3D speed OSD element 6 years ago
Niccolò Maggioni e76b83b78f
Give precedence to PR #585 6 years ago
Niccolò Maggioni 303bfbe85d
Rewording & refactoring 6 years ago
Niccolò Maggioni 4970260a03
Reduce temperature precision in OSD 6 years ago
Niccolò Maggioni f63810ca27
Gyro temperature in OSD 6 years ago
Alexey Stankevich 5a68d9545d Add 3D speed OSD indicator 6 years ago
Alberto García Hierro 8c3d62cc8f Remove unintended console.log() call from OSD coordinate previews 6 years ago
Alberto García Hierro 142e960893 Add support for configuring coordinate digit count on OSD
Depends on https://github.com/iNavFlight/inav/pull/3573
6 years ago
Alberto García Hierro 5e5993cdef
Merge pull request #533 from iNavFlight/agh_osd_settings
Add support for editing more OSD settings from the OSD tab
6 years ago
Alberto García Hierro 42c45648d3 Add support for editing more OSD settings from the OSD tab
- Voltage decimals
- Crosshairs style
- Sidebar scroll for left and right
- Sidebar scrolling arrows
6 years ago
Alberto García Hierro c523846b70 Fix map center location in the OSD preview
It was not properly calculated because it used the AHI center as
a starting point, which is not actually vertically centered.
6 years ago
Michel Pastor 6b8876d853 Fix OSD attitude pitch and roll preview 6 years ago
Michel Pastor 0cc688ca21 Fix some OSD element IDs and previews 6 years ago
Michel Pastor 9365b46535 Add new OSD items 6 years ago
Alberto García Hierro 211d9b27fe Add support for the latest MSP2_INAV_OSD_LAYOUTS changes
OSD layouts are now sent separately via MSP to avoid overflowing the
TX buffer.
6 years ago
Alberto García Hierro f13231be9a
Merge pull request #481 from iNavFlight/agh_vtx_settings
Add support for latest VTX changes
6 years ago
Alberto García Hierro 18817b2f21
Merge pull request #479 from iNavFlight/agh_fix_osd_items_outside_viewport
Improve handling of OSD elements outside the viewport
6 years ago
Alberto García Hierro ba45e316e3 Update VTX OSD item preview
It will show the power level in 2.0
6 years ago
Alberto García Hierro 35775d5062 Improve handling of OSD elements outside the viewport
- Don't crash when showing the preview for an item which is turned
on but non-visible due to its position.
- Move items outside of the viewport inside it when switching them
from hidden to visible.
6 years ago
Michel Pastor 7462218f3e Add remaining flight time / distance OSD items 6 years ago
Michel Pastor c32ba2614e Add sag compensated battery voltage to the OSD tab 6 years ago
Paweł Spychalski 19c26446e5
Merge pull request #452 from iNavFlight/agh_fix_new_api_alarms
Correctly display alarms when using the new OSD API
6 years ago
Alberto García Hierro 6301dddcc6 Add support for configuring OSD wind indicators
Symbols for "[GB" and "BL]" have been replaced by the wind indicators,
since we're not using them (and it's unlikely we will).
6 years ago
Alberto García Hierro aeff96317a
Merge pull request #450 from iNavFlight/agh_workaround_f3_font_bug
Add a workaround for uploading fonts on F3 from macOS
6 years ago
Alberto García Hierro 55688abcbd Correctly display alarms when using the new OSD API
Fixes incorrect alarms in 2.0
6 years ago
Alberto García Hierro f64a707c37 Fix air speed preview in UK mode
As reported in https://github.com/iNavFlight/inav/issues/3235
6 years ago
Alberto García Hierro 205d8c2df7 Add a workaround for uploading fonts on F3 from macOS
Change MSP.send_message() and MSP.promise() to accept an optional
protocol version argument. If null or undefined, the default version
set for the MSP instance is used instead.

Use this additional argument in FONT.upload(), so we avoid generating
64 byte writes when uploading a font.
6 years ago
Alberto García Hierro 15e884acf1
Merge pull request #443 from iNavFlight/agh_osd_radar
Add support for OSD Radar mode
6 years ago
Konstantin Sharlaimov e8f37da7c7
Merge pull request #442 from iNavFlight/agh_map_version
Prevent map modes to be shown if firmware is < 2.0.0
6 years ago
Michel Pastor 909d183e82 Fix OSD AHI preview 6 years ago
Alberto García Hierro 7029323f49 Add support for OSD Radar mode 6 years ago
Alberto García Hierro 91d802a81b Prevent map modes to be shown if firmware is < 2.0.0
Oversight from the initial map mode support
6 years ago
Alberto García Hierro dfacb0b084 Add support for osd MAP mode
Includes new icon for the map scale a new group for the maps/radars,
since they're a bit special (they allow element overlapping inside
them).
6 years ago
Konstantin Sharlaimov e216d32850
Merge pull request #435 from shellixyz/add_pitch_and_roll_attitude_angle_in_osd
Add pitch and roll attitude angles OSD items
6 years ago
Michel Pastor 845a14ca1d Add pitch and roll attitude angles OSD items 6 years ago
Alberto García Hierro ac2b42c743 Add symbol for HOME and use it in the home distance indicator 6 years ago
Alexey Stankevich e7aeccbaed Change Watt symbol in OSD preview 7 years ago
Alberto García Hierro 32065e9f45 Add support for configuring multiple OSD layouts 7 years ago
Konstantin Sharlaimov c6dda46330
Merge pull request #408 from warhog/osd
Added indicator for overlapping osd elements
7 years ago
Michel Pastor 353e0cc0a6 Fix OSD AHI preview 7 years ago
warhog 693ef1c893 added indicator if osd elements are stacked over each other 7 years ago
Michel Pastor 2e180fe436 Fixes the issue of the OSD tab alarm tooltips not closing 7 years ago
Michel Pastor dd0f628740 Add trip distance OSD item 7 years ago
Michel Pastor b132aa774c New 1.9 OSD items 7 years ago
Tim Eckel 8a803b06a3 Change the OSD config to show ACRO instead of the defunct STAB flight mode placeholder 7 years ago
Alberto García Hierro e58513e9ae Fix preview of RTC OSD indicator
There was an extra space between the clock symbol and the hour
7 years ago
Alberto García Hierro d19bbe9bc1 Merge pull request #276 from fiam/osd_alarms
Add support for OSD alarms for distance and negative altitude
7 years ago
Konstantin Sharlaimov 56ded2e698 Merge pull request #274 from fiam/osd_efficiency
Add support for OSD_EFFICIENCY
7 years ago
Alberto García Hierro d3ab3986c5 Add support for displaying a small help besides an alarm
Also, add help messages for cap, dist and neg_alt alarms.
7 years ago
Alberto García Hierro 75db725f02 Perform UI-side conversion for alt_alarm too
alt_alarm now performs unit conversion on the UI if the FC
firmware version is greater than 1.7.3
7 years ago
Alberto García Hierro 72c3a48078 Add support for new distance and negative altitude alarms
Add support for alarms that require unit conversion and non-integer
steps.
Implement support for the aforementioned alarms by using unit
conversion to display them in more convenient units when the OSD
is set to display imperial units.
7 years ago
Alberto García Hierro 8ec5876ebf Refactor code for OSD alarms
Define an array of the available alarms. Display just the ones
understood by the FC.
Move alarm names and their help (if any) to the translatable
messages.
7 years ago
Alberto García Hierro e3c115d302 Add support for OSD_EFFICIENCY
Includes new 2-char symbol for mah/km
7 years ago
Alberto García Hierro e570fcbae4 Add support for configuring OSD_VTX_CHANNEL
Element was disabled due to missing support on INAV. Added messages
for element name and its help too.
7 years ago
Alberto García Hierro 9d7b31fd75 Show the correct preview for OSD_GPS_SPEED in UK mode
It was showing the speed in km/h rather than mp/h
7 years ago
Alberto García Hierro abfb27ecb7 Add support for OSD_HEADING_GRAPH 7 years ago
Alberto García Hierro 559ca3068f Add AIR symbol and use it for OSD_AIR_SPEED preview 7 years ago
Alberto García Hierro 968905a513 Load SENSOR_CONFIG before showing OSD UI
SENSOR_CONFIG is used for OSD_AIR_SPEED detection
7 years ago
Alberto García Hierro 6e17c69fd1 Update OSD element previews
Now the preview shows exactly the same image as the real OSD.
Also, remove some unused constants for symbols.
7 years ago
Alberto García Hierro 52b5039465 Add support for OSD_THROTTLE_POS_AUTO_THR
Shows actual THR from the navigation system when it's controlling
THR, stick input otherwise (like the normal THR indicator).

INAV counterpart submitted as
https://github.com/iNavFlight/inav/pull/2217
7 years ago
Alberto García Hierro 46ba69df98 Add support for OSD_MAIN_BATT_CELL_VOLTAGE
Shows the average cell voltage. INAV counterpart already merged
at https://github.com/iNavFlight/inav/pull/2212
7 years ago
Alberto García Hierro 9e95e441b1 Add support for configuring OSD_MESSAGES 7 years ago
Paweł Spychalski aee549dc57 Merge pull request #259 from fiam/osd_ignore_unknown
Ignore OSD items unknown by the FC in the OSD tab
7 years ago
Paweł Spychalski f896d52111 Merge pull request #252 from fiam/osd_hdop
Add HDOP character and support for OSD_GPS_HDOP
7 years ago
Alberto García Hierro c48a3f43f4 Add preview support for OSD vertical elements
Also, add preview for OSD_VARIO and rename SYM.VARIO to
SYM.M_S, since it points to the m/s character.
7 years ago
Alberto García Hierro d5bdf53b9a Ignore OSD items unknown by the FC in the OSD tab
Otherwise configuring the OSD of an INAV version older than the
configurator will cause errors.
7 years ago
Alberto García Hierro a9f6a9d5a7 Add HDOP character and support for OSD_GPS_HDOP 7 years ago
Alberto García Hierro 974ed52c11 Organize OSD elements into groups
Implement groups which can be declared in any order including
any item in the order deemed more useful. This way we no longer
need to put elements ordered by their osd_items_e value.

Also, elements and even groups can be disabled when the features
or hardware required for drawing them is not present or not
enabled.
7 years ago
Alberto García Hierro 1e18c6d08c Add support for new OSD elements
- Support OSD_ONTIME_FLYTIME and OSD_RTC_TIME
- Add support for OSD elements with localized names
- Add support for displaying some help besides an OSD element
7 years ago
Alberto García Hierro 868af88ea9 Add clock character to all fonts 7 years ago
Konstantin Sharlaimov 94ec0c0720 Merge pull request #236 from fiam/osd_uk_units
Add support for selecting UK mode in the OSD units
7 years ago
Alberto García Hierro 0c57b5d9f9 Fix drag and drop not working on NW.js
NW.js requires us to disable pointer events on the inline images,
otherwise the drag/drop events are generated for the images rather
than for the html elements representing OSD items.
7 years ago
Alberto García Hierro 37171dc603 Add support for selecting UK mode in the OSD units
Fixes #233
7 years ago
Alberto García Hierro 14f9cb80df Cleanup gulpfile.js, fix minification
Move outputDir to a constant.
Add an output variable which contains the filenames for each
output file.
Remove usage of 'let' and 'for(... of [Object])' from osd.js,
since uglify doesn't support ES6 and babel failed on
google-analytics-bundle.js
Fix 'deploy-receiver-css'. uglify() was being called as part of
the pipeline instead of the correct minifyCSS() call.
Let npm sort the deps rather than editing them manually
Add missing openlayers dependency
7 years ago
Alberto García Hierro e79911d327 Add characters for NAV modes
[RTH], [WPT], [ALT], [POS] and [A+H].

Characters have been added to all character maps. Leave a white
character after mp/h and the first 2-char image intentionally to
avoid the preview in the configurator showing an icon between
2 lines.
7 years ago
Pawel Spychalski (DzikuVx) 04f1f163e4 airspeed in OSD 7 years ago
Marcin Baliniak 03d725cf07 Lot of fixes to make OSD render more similar to real layout 7 years ago
Pawel Spychalski (DzikuVx) f1193c1a41 basic support for GPS elements 8 years ago
Pawel Spychalski (DzikuVx) 9d613be280 OSD support for PIDs and POWER 8 years ago