Skip to main content
Open topic with navigation CAPL Functions » J1939 » GNSS NL » GNSSSetCourse

GNSSSetCourse

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

dword GNSSSetCourse( double course, double gradient )

Description

This function determines the new course and the new gradient at which the GNSS receiver will continue its motion. These two values are only used in kCourse simulation mode (see GNSSStartSimulation). The following table describes the relationship between course and compass direction:
  • Course:
    Direction: North
  • Course: 90°
    Direction: East
  • Course: 180°
    Direction: South
  • Course: 270°
    Direction: West
If this function is called, previously set waypoints (e.g. by function GNSSAddWpMeander or GNSSAddWpRel) are ignored.

Parameters

  • course: the course in degrees
  • gradient: the inclination in degrees

Return Values

error code

Example

double c = 90.0, g = 0.0;
GNSSSetCourse( c, g );