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

Function AltString

RemoteIDModule/status.cpp:213–219  ·  view source on GitHub ↗

* UNKNOWN support for altitude * * @param alt altitude */

Source from the content-addressed store, hash-verified

211 * @param alt altitude
212 */
213static String AltString(float alt)
214{
215 if (alt <= -1000.0f) {
216 return "UNKNOWN";
217 }
218 return String(alt,2);
219}
220
221#define ENUM_MAP(ename, v) enum_string(enum_ ## ename, ARRAY_SIZE(enum_ ## ename), int(v))
222

Callers 1

status_jsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected