gnssDRWheelTickSetup (Function) |
Top Previous Next |
This configures the Wheel Tick support needed for Automotive Dead Reckoning.
Wheel ticks provide the GNSS module with information about how the vehicle moves to improve the positioning when there is bad or no GNSS coverage. The wheel ticks can be provided either by using two digital inputs as tick and direction or from software by either providing a tick counter and direction or the speed. The software wheel ticks should be provided as often as possible for the best result.
Input: mode : SINT (Default 0) The wheel tick mode to use.
hw_tick: INT The number of the digital input to use as the wheel tick. Only used when mode is 1.
hw_tick_inv: BOOL Invert the polarity of the tick digital input. Only used when mode is 1.
hw_dir: INT The number of the digital input to use as the direction input. By default, active is forward. Only used when mode is 1.
hw_dir_inv: BOOL Invert the polarity of the direction digital input. Only used when mode is 1.
scale: DINT Specifies the distance represented by each wheel tick in µm. If not set (or set to zero) it will be estimated during calibration.
quant: DINT Wheel-tick quantization in µm. If mode is 3, then this is interpreted as the speed measurement error RMS in µm/s.
countmax: DINT Wheel-tick counter maximum value (rollover - 1). Set to zero if relative wheeltick is used. This parameter is only used in mode 2.
latency: UINT Wheel-tick data latency due to e.g. CAN bus in ms.
freq: USINT Nominal wheel-tick data frequency in Hz.
Returns:
Declaration: FUNCTION gnssDRWheelTickSetup : INT;
Example: INCLUDE rtcu.inc |