1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-10 18:24:11 +01:00

OP-52 Ground/GPS Display: Refixed, I guess edouard tested only the telemetry stuff

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1537 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
sambas 2010-09-05 07:39:30 +00:00 committed by sambas
parent 22ea3ce214
commit 6868a3ec48

View File

@ -72,14 +72,14 @@ void GpsDisplayWidget::setSpeedHeading(double speed, double heading)
void GpsDisplayWidget::setDateTime(double date, double time)
{
QString dstring1 = QString::number(date,'g',10);
dstring1.insert(6,".");
dstring1.insert(4,".");
QString dstring2 = QString::number(time,'g',10);
QString dstring1,dstring2;
dstring1.sprintf("%06.0f",date);
dstring1.insert(dstring1.length()-2,".");
dstring1.insert(dstring1.length()-5,".");
dstring2.sprintf("%06.0f",time);
dstring2.insert(dstring2.length()-2,":");
dstring2.insert(dstring2.length()-5,":");
time_value->setText(dstring1 + " " + dstring2 + " GMT");
}
void GpsDisplayWidget::setFixType(QString fixtype)