Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 12 additions & 20 deletions Plugins/OpenDroneID2/OpenDroneID_UI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,30 +297,22 @@ private void checkGCSGPS()
try
{
// Check NMEA GPS information
NMEA_GPS_Connection.PointNMEA _gps_data = nmea_GPS_1.getPointNMEA();
NMEA_GPS_Connection.PointNMEA _gps_data = nmea_GPS_1.getPointNMEA();
Copy link
Collaborator

@robertlong13 robertlong13 Jun 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your editor seems to have replaced the spaces with tabs




// Sanity Check
if (_gps_data.Lat != 0.0 && _gps_data.Lng != 0.0)
{
gotolocation.Lat = _gps_data.Lat;
gotolocation.Lng = _gps_data.Lng;
gotolocation.Alt = _gps_data.Alt;

gotolocation.Lat = _gps_data.Lat;
gotolocation.Lng = _gps_data.Lng;
gotolocation.Alt = _gps_data.Alt;
if (_host != null)
_host.comPort.MAV.cs.Base = gotolocation;

if (_host != null)
_host.comPort.MAV.cs.Base = gotolocation;
myDID.operator_latitude = _gps_data.Lat;
myDID.operator_longitude = _gps_data.Lng;
myDID.operator_altitude_geo = (float)_gps_data.Alt_WGS84;
myDID.operator_location_type = MAVLink.MAV_ODID_OPERATOR_LOCATION_TYPE.LIVE_GNSS;

myDID.operator_latitude = _gps_data.Lat;
myDID.operator_longitude = _gps_data.Lng;
myDID.operator_altitude_geo = (float)_gps_data.Alt_WGS84;
myDID.operator_location_type = MAVLink.MAV_ODID_OPERATOR_LOCATION_TYPE.LIVE_GNSS;

myDID.since_last_msg_ms = nmea_GPS_1.last_gps_msg.ElapsedMilliseconds;

}
} catch
myDID.since_last_msg_ms = nmea_GPS_1.last_gps_msg.ElapsedMilliseconds;
} catch
{
Console.WriteLine("Error Setting NMEA GPS Data");
}
Expand Down
Loading