Skip to content

Commit 8535e68

Browse files
committed
Corrections to pass status checks
1 parent 49539ca commit 8535e68

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

docs/Settings.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4674,7 +4674,7 @@ Number of decimals for the battery voltages displayed in the OSD [1-2].
46744674

46754675
### osd_map2d_hmargin
46764676

4677-
Horizontal margin (both left and right) for OSD 2D map borders. The map items won't be drawn into any of the columns within this number.
4677+
OSD 2D Map horizontal margin (on left and right, columns the map won't use for drawing)
46784678

46794679
| Default | Min | Max |
46804680
| --- | --- | --- |
@@ -4684,7 +4684,7 @@ Horizontal margin (both left and right) for OSD 2D map borders. The map items wo
46844684

46854685
### osd_map2d_ref_line_heading
46864686

4687-
Draws a dashed line on the center of the map display, if using "up is north" setting. The line is aligned at the heading set by this parameter. This should be set to the same heading as an easily recognizable feature nearby the place you are flying, for example the same heading as the runway (if flying from a club), street or a nearby fence. So now you are able to compare the craft's position on the OSD map with this reference, making it easier to orientate yourself, better align directional antennas and so on. Default setting of -1 disables this line.
4687+
OSD 2D Map reference line heading (0 is north, 90 east, 180 south and so on, -1 disabled). Requires using "up is north" map setting. The dashed line will be aligned to the heading set by this parameter. So should be set to the same heading as an easily recognizable and static feature nearby the place you are flying, for example a runway, a street, a fence, etc. Then you are able to compare the craft's position on the OSD map with this reference, making it easier to orientate yourself, align directional antennas and so on.
46884688

46894689
| Default | Min | Max |
46904690
| --- | --- | --- |
@@ -4694,7 +4694,7 @@ Draws a dashed line on the center of the map display, if using "up is north" set
46944694

46954695
### osd_map2d_vmargin
46964696

4697-
Vertical margin (both top and bottom) for OSD 2D map borders. The map items won't be drawn into any of the lines within this number.
4697+
OSD 2D Map vertical margin (on top and bottom, lines the map won't use for drawing)
46984698

46994699
| Default | Min | Max |
47004700
| --- | --- | --- |

src/main/fc/settings.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3716,21 +3716,21 @@ groups:
37163716
max: 5000
37173717

37183718
- name: osd_map2d_vmargin
3719-
description: OSD 2D Map vertical lines margin (on top and bottom, spaces where nothing will be drawn)
3719+
description: OSD 2D Map vertical margin (on top and bottom, lines the map won't use for drawing)
37203720
field: map2d_vmargin
37213721
default_value: 3
37223722
min: 0
37233723
max: 10
37243724

37253725
- name: osd_map2d_hmargin
3726-
description: OSD 2D Map horizontal lines margin (on left and right)
3726+
description: OSD 2D Map horizontal margin (on left and right, columns the map won't use for drawing)
37273727
field: map2d_hmargin
37283728
default_value: 5
37293729
min: 0
37303730
max: 15
37313731

37323732
- name: osd_map2d_ref_line_heading
3733-
description: OSD 2D Map reference line heading (0 is north, 90 east, 180 south and so on, -1 disabled)
3733+
description: OSD 2D Map reference line heading (0 is north, 90 east, 180 south and so on, -1 disabled). Requires using "up is north" map setting. The dashed line will be aligned to the heading set by this parameter. So should be set to the same heading as an easily recognizable and static feature nearby the place you are flying, for example a runway, a street, a fence, etc. Then you are able to compare the craft's position on the OSD map with this reference, making it easier to orientate yourself, align directional antennas and so on.
37343734
field: map2d_ref_line_heading
37353735
default_value: -1
37363736
min: -1

src/main/io/osd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,7 @@ int osdGetHeadingAngle(int angle)
13051305
static void osdDrawMapReferenceLine(uint8_t midX, uint8_t midY)
13061306
{
13071307
float heading = osdConfig()->map2d_ref_line_heading;
1308-
float rollAngle = DEGREES_TO_RADIANS(90.f - (heading > 180.0 ? heading - 180.f: heading));
1308+
float rollAngle = DEGREES_TO_RADIANS(90.f - (heading > 180.f ? heading - 180.f: heading));
13091309
const float ky = sin_approx(rollAngle);
13101310
const float kx = cos_approx(rollAngle);
13111311
const float ratio = osdDisplayIsPAL() ? 12.0f/15.0f : 12.0f/18.46f;

0 commit comments

Comments
 (0)