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

GNSSStartSimulation

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

dword GNSSStartSimulation( dword simType )

Description

This function starts the simulation. At least one waypoint must be set for a start to be successful. Simulation modes:
  • kWaypoint: Waypoints that are set are traversed sequentially at the speed from GNSSSetSpeed. If a waypoint is reached to which a speed is assigned, the speed will be accepted by the GNSS receiver.
  • kCourse: The first waypoint is taken as the starting point; no others are taken into consideration. The GNSS receiver moves at the course derived from GNSSSetCourse and at the speed from GNSSSetSpeed. When a waypoint is reached to which a speed is assigned, the speed is accepted by the GNSS receiver.
  • kFile: This mode is used exclusively to play back a position file that was loaded with GNSSAddWpFile and the kUseTime=1 parameter. The speed of the receiver is controlled exclusively by the file.

Parameters

  • simType: simulation mode
    • kWaypoint: 0
    • kCourse: 1
    • kFile: 2

Return Values

error code

Example

if ( GNSSStartSimulation(0) == 0 ) {
  write("Start simulation");
}