#include <offset_detection.h>
◆ State
Enumerator |
---|
kMissing | |
kInProgress | |
kFound | |
◆ OffsetDetection()
OffsetDetection::OffsetDetection |
( |
Cia402Drive & |
cia402_drive | ) |
|
|
explicit |
◆ get_commutation_offset()
int32_t OffsetDetection::get_commutation_offset |
( |
| ) |
|
Get the current commutation offset.
- Returns
- the commutation offset
◆ start()
Start the automatic offset detection.
If the procedure was finished successfully, the calculated offset will be saved to the proper OD entry (0x2007:2)
- Returns
- error
◆ wait()
Once the offset detection process was started, this function must be used to wait for it to finish.
- Returns
- error
The documentation for this class was generated from the following files: