GCS_ArduPilot_Text

Text Missing Line Terminator #if GPS_PROTOCOL != 3

 

In my copy of 2.6 I have added the line in bold below.

 

It is minor but makes it easier to read the telemetry in custom ground stations and also appears to be consistent with the other GCS serial packets in GCS_ArduPilot_Text.pde

 

#if GPS_PROTOCOL != 3
 Serial.print("+++");
 Serial.print("ASP:");
 Serial.print(airspeed_current,DEC);
 Serial.print(",THH:");
 Serial.print(servo_throttle,DEC);
 Serial.print (",RLL:");
 Serial.print(roll_sensor/100,DEC);
 Serial.print (",PCH:");
 Serial.print(pitch_sensor/100,DEC);
 if (GPS_PROTOCOL == 3) {
   Serial.print(",CRS:");
   Serial.print(ground_course/100,DEC);
 }

        Serial.println("");
#endif

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Hi Tim,

    There doesn't appear to be an GCS_ArduPilot_Text.pde in the latest AP 2.6 code.

    Also the code you posted looks odd as there is an:
    #if GPS_PROTOCOL != 3
    ...
    if (GPS_PROTOCOL == 3) {
    ...
    }
    ...
    #endif
    The compiler will only add those lines if GPS_PROTOCOL != 3 so the if (GPS_PROTOCOL == 3) test must always be false.
This reply was deleted.

Activity

Neville Rodrigues liked Neville Rodrigues's profile
Jun 30
Santiago Perez liked Santiago Perez's profile
Jun 21
More…