reduce marker gap
This commit is contained in:
parent
183fffaa08
commit
1576fc1050
1 changed files with 3 additions and 2 deletions
|
@ -140,7 +140,8 @@ void HUD::TurnBankIndicator::draw_scale()
|
||||||
}
|
}
|
||||||
|
|
||||||
// bank marker
|
// bank marker
|
||||||
float a, rr = r + r * 2.0 / 70.0;
|
float a;
|
||||||
|
float rr = r + r * 0.5 / 70.0; // little gap for the arrow peak
|
||||||
|
|
||||||
a = (bank + 270.0) * SGD_DEGREES_TO_RADIANS;
|
a = (bank + 270.0) * SGD_DEGREES_TO_RADIANS;
|
||||||
float x1 = cx + rr * cos(a);
|
float x1 = cx + rr * cos(a);
|
||||||
|
@ -161,7 +162,7 @@ void HUD::TurnBankIndicator::draw_scale()
|
||||||
|
|
||||||
|
|
||||||
// sideslip marker
|
// sideslip marker
|
||||||
rr = r + r * 2.0 / 70.0;
|
rr = r + r * 0.5 / 70.0;
|
||||||
a = (bank + sideslip + 270.0) * SGD_DEGREES_TO_RADIANS;
|
a = (bank + sideslip + 270.0) * SGD_DEGREES_TO_RADIANS;
|
||||||
x1 = cx + rr * cos(a);
|
x1 = cx + rr * cos(a);
|
||||||
y1 = cy + rr * sin(a);
|
y1 = cy + rr * sin(a);
|
||||||
|
|
Loading…
Reference in a new issue