github.com/bluenviron/gomavlib/v2@v2.2.1-0.20240308101627-2c07e3da629c/pkg/dialects/common/message_set_gps_global_origin.go (about) 1 //autogenerated:yes 2 //nolint:revive,misspell,govet,lll 3 package common 4 5 // Sets the GPS coordinates of the vehicle local origin (0,0,0) position. Vehicle should emit GPS_GLOBAL_ORIGIN irrespective of whether the origin is changed. This enables transform between the local coordinate frame and the global (GPS) coordinate frame, which may be necessary when (for example) indoor and outdoor settings are connected and the MAV should move from in- to outdoor. 6 type MessageSetGpsGlobalOrigin struct { 7 // System ID 8 TargetSystem uint8 9 // Latitude (WGS84) 10 Latitude int32 11 // Longitude (WGS84) 12 Longitude int32 13 // Altitude (MSL). Positive for up. 14 Altitude int32 15 // Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. 16 TimeUsec uint64 `mavext:"true"` 17 } 18 19 // GetID implements the message.Message interface. 20 func (*MessageSetGpsGlobalOrigin) GetID() uint32 { 21 return 48 22 }