MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / float_to_uint16

Function float_to_uint16

libraries/AP_Math/AP_Math.cpp:510–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508}
509
510uint16_t float_to_uint16(const float v)
511{
512 return uint16_t(constrain_float(v, 0, UINT16_MAX));
513}
514
515uint32_t float_to_uint32(const float v)
516{

Callers 2

calc_nav_altMethod · 0.85
calc_gps_positionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected