GoWebScan API
GoWebScanEncoderSim.h
Go to the documentation of this file.
1 /**
2 * @file GoWebScanEncoderSim.h
3 * @brief Declares a GoWebScanEncoderSim object.
4 *
5 * @internal
6 * Copyright (C) 2017-2026 by LMI Technologies Inc.
7 * Licensed under the MIT License.
8 * Redistributed files must retain the above copyright notice.
9 */
10 
11 #ifndef GO_WEB_SCAN_ENCODER_SIM_H
12 #define GO_WEB_SCAN_ENCODER_SIM_H
13 
15 
16 /**
17 * @class GoWebScanEncoderSim
18 * @extends kObject
19 * @ingroup GoWebScanSdk-Control
20 * @brief Represents an encoder simulator which simulates forward motion by overriding
21 * encoder values in data messages with simulated values that are based on the
22 * message timestamp. Note that the encoder value is only overridden internally
23 * in GoWebScan. Message received directly from the sensor outside of GoWebScan
24 * will have the original encoder value.
25 *
26 * This class can be used to test web or detection mode without requiring
27 * an encoder or moving chain (both modes will not work without chain motion).
28 */
30 
31 /**
32  * Constructs a GoWebScanEncoderSim object.
33  * @public @memberof GoWebScanEncoderSim
34  * @param sim Receives the constructed GoWebScanEncoderSim object.
35  * @param resolution Encoder resolution of simulator (mils/tick).
36  * @param speed Speed of forward motion (mils/second).
37  * @param allocator Memory allocator (or kNULL for default).
38  * @return Operation status.
39  */
40 GoWebScanFx(kStatus) GoWebScanEncoderSim_Construct(GoWebScanEncoderSim* sim, k64f resolution, k64f speed, kAlloc allocator);
41 
42 /**
43  * Converts a timestamp into a simulated encoder value.
44  *
45  * @public @memberof GoWebScanEncoderSim
46  * @param sim GoWebScanEncoderSim object.
47  * @param time Timestamp (microseconds).
48  * @return Simulated encoder value (ticks).
49  */
51 
52 #include <GoWebScanSdk/GoWebScanEncoderSim.x.h>
53 
54 #endif
k64s GoWebScanEncoderSim_Convert(GoWebScanEncoderSim sim, k64s time)
Converts a timestamp into a simulated encoder value.
Essential GoWebScan declarations.
Represents an encoder simulator which simulates forward motion by overriding encoder values in data m...
kStatus GoWebScanEncoderSim_Construct(GoWebScanEncoderSim *sim, k64f resolution, k64f speed, kAlloc allocator)
Constructs a GoWebScanEncoderSim object.