Browse Source

Merge pull request #1190 from srcejon/fix_1188

Fix satellite tracks on map when timezone isn't UTC
chirpmodem-v8.0.0
Edouard Griffiths 5 years ago committed by GitHub
parent
commit
10ae0f3efc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      plugins/feature/satellitetracker/satellitetrackersgp4.cpp

4
plugins/feature/satellitetracker/satellitetrackersgp4.cpp

@ -23,6 +23,8 @@ @@ -23,6 +23,8 @@
#include <Observer.h>
#include <SGP4.h>
#include <QTimeZone>
#include "util/units.h"
#include "satellitetrackersgp4.h"
@ -62,7 +64,7 @@ void getGroundTrack(QDateTime dateTime, @@ -62,7 +64,7 @@ void getGroundTrack(QDateTime dateTime,
// For 3D map, we want to quantize to minutes, so we replace previous
// position data, rather than insert additional positions alongside the old
// which can result is the camera view jumping around
dateTime = QDateTime(dateTime.date(), QTime(dateTime.time().hour(), dateTime.time().minute()));
dateTime = QDateTime(dateTime.date(), QTime(dateTime.time().hour(), dateTime.time().minute()), dateTime.timeZone());
// Note 2D map doesn't support paths wrapping around Earth several times
// So we just have a slight overlap here, with the future track being longer

Loading…
Cancel
Save