MCPcopy Create free account
hub / github.com/ArduPilot/ArduRemoteID / LatLonString

Function LatLonString

RemoteIDModule/status.cpp:193–206  ·  view source on GitHub ↗

* When latitude and longitude are 0, set to UNKNOWN * * @param lat latitude * @param lon longitude * @param select 0:latitude 1:longitude */

Source from the content-addressed store, hash-verified

191 * @param select 0:latitude 1:longitude
192 */
193static String LatLonString(double lat, double lon, uint8_t select)
194{
195 if (lat != 0.0 || lon != 0.0) {
196 switch (select) {
197 case 0: // lat
198 return String(lat, 8);
199 case 1: // lon
200 return String(lon, 8);
201 default:
202 break;
203 }
204 }
205 return "UNKNOWN";
206}
207
208/**
209 * UNKNOWN support for altitude

Callers 1

status_jsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected