Rev 471 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 471 | Rev 480 | ||
---|---|---|---|
Line 401... | Line 401... | ||
401 | sprintf(string, "<RCRSSI>%d</RCRSSI>\r\n", FC.RC_RSSI); |
401 | sprintf(string, "<RCRSSI>%d</RCRSSI>\r\n", FC.RC_RSSI); |
402 | fputs_(string, doc->file); |
402 | fputs_(string, doc->file); |
403 | } |
403 | } |
404 | */ // Compassind deg |
404 | */ // Compassind deg |
405 | i16_1 = FromFlightCtrl.GyroHeading / 10; |
405 | i16_1 = FromFlightCtrl.GyroHeading / 10; |
406 | sprintf(string, "<Compass>%03d,%03d</Compass>\r\n", i16_1,ToFlightCtrl.CompassHeading); |
406 | sprintf(string, "<Compass>%03d,%03d,%03d</Compass>\r\n", i16_1,ToFlightCtrl.CompassHeading, GyroCompassCorrected/10); |
407 | fputs_(string, doc->file); |
407 | fputs_(string, doc->file); |
408 | // magnetic field |
408 | // magnetic field |
409 | sprintf(string, "<MagnetField>%03d</MagnetField>\r\n",(u16) (EarthMagneticFieldFiltered/5)); |
409 | sprintf(string, "<MagnetField>%03d</MagnetField>\r\n",(u16) (EarthMagneticFieldFiltered/5)); |
410 | fputs_(string, doc->file); |
410 | fputs_(string, doc->file); |
411 | // magnetic inclination & error |
411 | // magnetic inclination & error |