You are on page 1of 1

-

Voeg inhoud van RTKLIB src mapje toe aan eclipse-project

Voeg het volgende toe aan de include path voor de C-compiler: "$
{workspace_loc:/${ProjName}/src}"

Voeg pthread toe als library

Voeg onderstaande code toe aan eigen source file (RTKLIB roept deze
functies aan als feedback):

int showmsg(char *fmt,...)


{
va_list args;
va_start(args, fmt);
while (*fmt != '\0') {
if (*fmt == 'd') {
int i = va_arg(args, int);
printf("%d\n", i);
} else if (*fmt == 'c') {
// note automatic conversion to integral type
int c = va_arg(args, int);
printf("%c\n", c);
} else if (*fmt == 'f') {
double d = va_arg(args, double);
printf("%f\n", d);
}
++fmt;
}
va_end(args);
return 0;
}
void settspan(gtime_t ts, gtime_t te)
{
}
void settime(gtime_t time)
{
}

You might also like