mirror of
https://github.com/renorris/openfsd
synced 2026-03-22 06:25:35 +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,
|
||||
Frequency: client.frequency.Load(),
|
||||
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)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user