ardupilot/libraries/Desktop/support/ftoa_engine.c
Andrew Tridgell 7098e8cfa1 first rough build for desktop CPUs
this allows ArduPlane to build and startup on 'desktop' systems (eg. a
Linux box). Very rough for now, and only for HIL so far
2011-10-09 22:16:13 +11:00

8 lines
162 B
C

#include <stdio.h>
int __ftoa_engine(double val, char *buf,
unsigned char prec, unsigned char maxdgs)
{
return sprintf(buf, "%*.*lf", prec, maxdgs, val);
}