Subversion Repositories NaviCtrl

Rev

Rev 489 | Rev 530 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 489 Rev 510
Line 387... Line 387...
387
                                 sprintf(string, "<RCRSSI>%d</RCRSSI>\r\n", FC.RC_RSSI);
387
                                 sprintf(string, "<RCRSSI>%d</RCRSSI>\r\n", FC.RC_RSSI);
388
                                 fputs_(string, doc->file);
388
                                 fputs_(string, doc->file);
389
                                }
389
                                }
390
*/                              // Compassind deg
390
*/                              // Compassind deg
391
                                i16_1 = FromFlightCtrl.GyroHeading / 10;
391
                                i16_1 = FromFlightCtrl.GyroHeading / 10;
392
                                sprintf(string, "<Compass>%03d,%03d,%03d</Compass>\r\n", i16_1,ToFlightCtrl.CompassHeading,GyroCompassCorrected/10);
392
                                sprintf(string, "<Compass>%03d,%03d,%03d,%03d</Compass>\r\n", i16_1,ToFlightCtrl.CompassHeading,CompassSetpointCorrected/10,GyroCompassCorrected/10);
393
                                fputs_(string, doc->file);
393
                                fputs_(string, doc->file);
394
                                // magnetic field
394
                                // magnetic field
395
                                sprintf(string, "<MagnetField>%03d</MagnetField>\r\n",(u16) (EarthMagneticFieldFiltered/5));
395
                                sprintf(string, "<MagnetField>%03d</MagnetField>\r\n",(u16) (EarthMagneticFieldFiltered/5));
396
                                fputs_(string, doc->file);
396
                                fputs_(string, doc->file);
397
                                // magnetic inclination & error
397
                                // magnetic inclination & error