mirror of
https://github.com/renorris/openfsd
synced 2026-03-22 14:35:36 +08:00
convert visual range unit for ATC datafeed to nautical miles
This commit is contained in:
@@ -127,7 +127,7 @@ func (s *Server) handleGetOnlineUsers(c *gin.Context) {
|
|||||||
OnlineUserGeneralData: genData,
|
OnlineUserGeneralData: genData,
|
||||||
Frequency: client.frequency.Load(),
|
Frequency: client.frequency.Load(),
|
||||||
Facility: client.facilityType,
|
Facility: client.facilityType,
|
||||||
VisRange: int(client.visRange.Load()),
|
VisRange: int(client.visRange.Load() * 0.000539957), // Convert meters to nautical miles
|
||||||
}
|
}
|
||||||
resData.ATC = append(resData.ATC, atc)
|
resData.ATC = append(resData.ATC, atc)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user