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

GNSSSetPosDataVal

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

dword GNSSSetPosDataVal(dword fixSID, dword systemAndMethod, dword integrity, dword numOfSVs, dword hdop, dword pdop, dword geoSeparation, dword numOfRefStat, dword refStations[])

Description

This function can be used to change values of parameter group “GNSS Position Data” (PGN 129029) which are not modified by the simulation automatically. Note: The same settings can be made via node attributes in the used database.

Parameters

  • fixSID: 1 if fix sequence ID (255) has to be used, else 0
  • systemAndMethod: the first 4 bit specifies the system type, the upper 4 bit the GNSS Method
  • integrity: integrity
  • numOfSVs: number of visible satellites
  • hdop: horizontal dilution of precision
  • pdop: position dilution of precision
  • geoSeparation: geoidal separation
  • numOfRefStat: number of reference stations
  • refStations: array of reference stations, every station is specified by 4 bytes (Bit 0-3: Type, Bit 4-15: ID, Bit 16-31: Ages of DGNSS Corrections)

Return Values

error code

Example

dword refSta[2];
refStation[0] = 0x11110010;
refStation[1] = 0x22220020;
GNSSSetPosDataVal(0,0x20,1,4,21,54,763,2,refSta);