1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 09:18:54 -05:00

Merge pull request #1076 from srcejon/gs232_dont_round_target_azel

Rotator controller - Don't round az/el received from Sat Tracker
This commit is contained in:
Edouard Griffiths 2021-12-10 23:39:35 +01:00 committed by GitHub
commit dcc1b125ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,8 +102,8 @@ bool GS232ControllerGUI::handleMessage(const Message& message)
MainCore::MsgTargetAzimuthElevation& msg = (MainCore::MsgTargetAzimuthElevation&) message; MainCore::MsgTargetAzimuthElevation& msg = (MainCore::MsgTargetAzimuthElevation&) message;
SWGSDRangel::SWGTargetAzimuthElevation *swgTarget = msg.getSWGTargetAzimuthElevation(); SWGSDRangel::SWGTargetAzimuthElevation *swgTarget = msg.getSWGTargetAzimuthElevation();
ui->azimuth->setValue(round(swgTarget->getAzimuth())); ui->azimuth->setValue(swgTarget->getAzimuth());
ui->elevation->setValue(round(swgTarget->getElevation())); ui->elevation->setValue(swgTarget->getElevation());
ui->targetName->setText(*swgTarget->getName()); ui->targetName->setText(*swgTarget->getName());
return true; return true;
} }