Arduino_MKRGPS - course()

Read the course of the GPS.

Syntax

GPS.course()

Parameters

None.

Returns

GPS course in degrees.

Example

// Check if there is new GPS data available
if (GPS.available()) {
    // Read GPS data
    float course = GPS.course();

    // ...

    // Print GPS data
    Serial.print("Course: ");
    Serial.print(course);
    Serial.println(" degrees");
}

See also