Rev 676 | Rev 692 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 676 | Rev 686 | ||
---|---|---|---|
Line 181... | Line 181... | ||
181 | if((FC.StatusFlags3 & FC_STATUS3_BOAT)) {sprintf(string, "<BoatMode>On</BoatMode>\r\n");fputs_(string, doc->file);} |
181 | if((FC.StatusFlags3 & FC_STATUS3_BOAT)) {sprintf(string, "<BoatMode>On</BoatMode>\r\n");fputs_(string, doc->file);} |
182 | if(Parameter.Driftkomp) {sprintf(string, "<DriftComp>%i</DriftComp>\r\n",Parameter.Driftkomp);fputs_(string, doc->file);}; |
182 | if(Parameter.Driftkomp) {sprintf(string, "<DriftComp>%i</DriftComp>\r\n",Parameter.Driftkomp);fputs_(string, doc->file);}; |
Line 183... | Line 183... | ||
183 | 183 | ||
184 | //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
184 | //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
185 | // Magnetometer |
185 | // Magnetometer |
- | 186 | if(Compass_I2CPort == NCMAG_PORT_EXTERN) sprintf(string, "<MagSensor>external2,(%i),",NCMAG_Orientation); |
|
186 | if(Compass_I2CPort == NCMAG_PORT_EXTERN) sprintf(string, "<MagSensor>external,(%i),",NCMAG_Orientation); |
187 | else if(NCMAG_Compass_use_Orientation) sprintf(string, "<MagSensor>external1,(%i),",NCMAG_Orientation); |
- | 188 | else sprintf(string, "<MagSensor>internal,"); |
|
187 | else sprintf(string, "<MagSensor>internal,"); |
189 | |
188 | fputs_(string, doc->file); |
190 | fputs_(string, doc->file); |
189 | switch(NCMAG_SensorType) |
191 | switch(NCMAG_SensorType) |
190 | { |
192 | { |
191 | case TYPE_HMC5843: sprintf(string, "HMC"); break; |
193 | case TYPE_HMC5843: sprintf(string, "HMC"); break; |