mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-03 11:24:10 +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:
parent
22ea3ce214
commit
6868a3ec48
@ -72,14 +72,14 @@ void GpsDisplayWidget::setSpeedHeading(double speed, double heading)
|
|||||||
|
|
||||||
void GpsDisplayWidget::setDateTime(double date, double time)
|
void GpsDisplayWidget::setDateTime(double date, double time)
|
||||||
{
|
{
|
||||||
QString dstring1 = QString::number(date,'g',10);
|
QString dstring1,dstring2;
|
||||||
dstring1.insert(6,".");
|
dstring1.sprintf("%06.0f",date);
|
||||||
dstring1.insert(4,".");
|
dstring1.insert(dstring1.length()-2,".");
|
||||||
QString dstring2 = QString::number(time,'g',10);
|
dstring1.insert(dstring1.length()-5,".");
|
||||||
|
dstring2.sprintf("%06.0f",time);
|
||||||
dstring2.insert(dstring2.length()-2,":");
|
dstring2.insert(dstring2.length()-2,":");
|
||||||
dstring2.insert(dstring2.length()-5,":");
|
dstring2.insert(dstring2.length()-5,":");
|
||||||
time_value->setText(dstring1 + " " + dstring2 + " GMT");
|
time_value->setText(dstring1 + " " + dstring2 + " GMT");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GpsDisplayWidget::setFixType(QString fixtype)
|
void GpsDisplayWidget::setFixType(QString fixtype)
|
||||||
|
Loading…
Reference in New Issue
Block a user