It would be convenient to have a program, in e.g. Python, which uploads and runs a DMC code on the RIO to automatically count the number of cogs. Sketch of this program:
Connect to RIO. Download any code currently there to a file, save it with timestamp and IP.
Then, abort all running processes and replace memory code with "counter" DMC code, permanent burning not necessary. The counter code should track automatically the cog variations, like the SALS Acode, but not automatically reset the counters. The python code starts the counting loops in the DMC code.
The python code then starts motors to reset both alaz (going in negative direction). Python code checks every second or so if telescope is stuck in some axis, meaning it is done moving and terminate motor, and then reset this counter.
When both counters have been reset, the python code starts the movement in the positive direction (optional only one axis). The DMC code will now count the cogs. The python code checks every second if telescope is stuck, meaning it is done. When it is, it get's the counter value by "MG" command and stores in an output logfile.
It would be convenient to have a program, in e.g. Python, which uploads and runs a DMC code on the RIO to automatically count the number of cogs. Sketch of this program:
Connect to RIO. Download any code currently there to a file, save it with timestamp and IP. Then, abort all running processes and replace memory code with "counter" DMC code, permanent burning not necessary. The counter code should track automatically the cog variations, like the SALS Acode, but not automatically reset the counters. The python code starts the counting loops in the DMC code. The python code then starts motors to reset both alaz (going in negative direction). Python code checks every second or so if telescope is stuck in some axis, meaning it is done moving and terminate motor, and then reset this counter. When both counters have been reset, the python code starts the movement in the positive direction (optional only one axis). The DMC code will now count the cogs. The python code checks every second if telescope is stuck, meaning it is done. When it is, it get's the counter value by "MG" command and stores in an output logfile.