Subversion Repositories NaviCtrl

Rev

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

Rev 661 Rev 670
Line 161... Line 161...
161
                default:                                                sprintf(string, "? %d",Parameter.ReceiverType); break;
161
                default:                                                sprintf(string, "? %d",Parameter.ReceiverType); break;
162
                }              
162
                }              
163
                fputs_(string, doc->file);
163
                fputs_(string, doc->file);
164
                sprintf(string, "</Receiver>\r\n"); fputs_(string, doc->file);
164
                sprintf(string, "</Receiver>\r\n"); fputs_(string, doc->file);
165
        //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++            
165
        //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++            
-
 
166
                if(FC.FromFC_CompassOffset > 30) {sprintf(string, "<CompassOffset>%i !</CompassOffset>\r\n",FC.FromFC_CompassOffset/10);fputs_(string, doc->file);}
166
                sprintf(string, "<CompassOffset>%i</CompassOffset>\r\n",FC.FromFC_CompassOffset/10);fputs_(string, doc->file);
167
                else {sprintf(string, "<CompassOffset>%i</CompassOffset>\r\n",FC.FromFC_CompassOffset/10);fputs_(string, doc->file);}
167
                sprintf(string, "<FCOrientation>%i</FCOrientation>\r\n",Parameter.OrientationAngle*15);fputs_(string, doc->file);
168
                sprintf(string, "<FCOrientation>%i</FCOrientation>\r\n",Parameter.OrientationAngle*15);fputs_(string, doc->file);
168
                sprintf(string, "<GeoMag>%i.%1d</GeoMag>\r\n",GeoMagDec/10,abs(GeoMagDec)%10);fputs_(string, doc->file);
169
                sprintf(string, "<GeoMag>%i.%1d</GeoMag>\r\n",GeoMagDec/10,abs(GeoMagDec)%10);fputs_(string, doc->file);
169
        sprintf(string, "<Neutral>%d,%d,%d</Neutral>\r\n", FC.AdNeutralNick,FC.AdNeutralRoll,FC.AdNeutralYaw);fputs_(string, doc->file);
170
        sprintf(string, "<Neutral>%d,%d,%d</Neutral>\r\n", FC.AdNeutralNick,FC.AdNeutralRoll,FC.AdNeutralYaw);fputs_(string, doc->file);
170
        sprintf(string, "<Kalibr.>%d,%d,%d</Kalibr.>\r\n", FC.BoatNeutralNick,FC.BoatNeutralRoll,FC.BoatNeutralYaw);fputs_(string, doc->file);
171
        sprintf(string, "<Kalibr.>%d,%d,%d</Kalibr.>\r\n", FC.BoatNeutralNick,FC.BoatNeutralRoll,FC.BoatNeutralYaw);fputs_(string, doc->file);
171
                if((FC.StatusFlags3 & FC_STATUS3_BOAT)) {sprintf(string, "<BoatMode>On</BoatMode>\r\n");fputs_(string, doc->file);}
172
                if((FC.StatusFlags3 & FC_STATUS3_BOAT)) {sprintf(string, "<BoatMode>On</BoatMode>\r\n");fputs_(string, doc->file);}