Simulated Rotator Device
Read the source and do some debug tracing if you want to figure this out. After all you’re going to replace it with your own real device control logic, eh?
- class rotatordevice.RotatorDevice(logger: Logger)
Simulated rotator device that does moves in separate Timer threads.
Properties and methods generally follow the Alpaca interface. Debug tracing here via (commented out) print() to avoid locking issues. Hopefully you are familiar with Python threading and the need to lock shared data items.
Mechanical vs Virtual Position
In this code ‘mech’ refers to the raw mechanical position. Note the conversions
_pos_to_mech()and_mech_to_pos(). This is where theSync()offset is applied.