Get rid of double math on <512kB targets

This commit is contained in:
Štěpán Dalecký 2021-12-23 00:15:37 +01:00
parent 4f0d4b81b1
commit 12dc2eb3fb
1 changed files with 2 additions and 2 deletions

View File

@ -727,8 +727,8 @@ static void osdElementUpDownReference(osdElementParms_t *element)
psiB = earthUpinBodyFrame[1]; // calculate the yaw w/re to zenith (use small angle approx for sine)
direction = UP;
}
int posX = element->elemPosX + round(scaleRangef(psiB, -M_PIf / 4, M_PIf / 4, -14, 14));
int posY = element->elemPosY + round(scaleRangef(thetaB, -M_PIf / 4, M_PIf / 4, -8, 8));
int posX = element->elemPosX + lrintf(scaleRangef(psiB, -M_PIf / 4, M_PIf / 4, -14, 14));
int posY = element->elemPosY + lrintf(scaleRangef(thetaB, -M_PIf / 4, M_PIf / 4, -8, 8));
osdDisplayWrite(element, posX, posY, DISPLAYPORT_ATTR_NONE, symbol[direction]);
}