mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 17:25:18 +03:00
reverted wind direction icon side change
This commit is contained in:
parent
ab89c216c5
commit
2a91517f7f
1 changed files with 1 additions and 1 deletions
|
@ -2800,7 +2800,7 @@ static bool osdDrawSingleElement(uint8_t item)
|
|||
if (valid) {
|
||||
uint16_t angle;
|
||||
horizontalWindSpeed = getEstimatedHorizontalWindSpeed(&angle);
|
||||
int16_t windDirection = osdGetHeadingAngle( DECIDEGREES_TO_DEGREES(attitude.values.yaw) - CENTIDEGREES_TO_DEGREES((int)angle) + 22);
|
||||
int16_t windDirection = osdGetHeadingAngle( CENTIDEGREES_TO_DEGREES((int)angle) - DECIDEGREES_TO_DEGREES(attitude.values.yaw) + 22);
|
||||
buff[1] = SYM_DIRECTION + (windDirection*2 / 90);
|
||||
} else {
|
||||
horizontalWindSpeed = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue