I found a few bugs and fixed them.
According to the hand controller manual
page 41
there are differences from what is in the code, and what is in the manual.
Here they are:
1. :SC command
SCOPE 5.429171 sec : CMD <:SC 07/19/17#>
SCOPE 5.450280 sec : RES < >
Response should 32 spaces then #, then 32 spaces and another #
2. :Sg command
SCOPE 5.481597 sec : CMD <:Sg -080:48:11#>
SCOPE 5.501859 sec : RES < >
The format in the manual is:
:Sg sDDD*MM:SS#
So, a * instead of the : after the degrees
Response should be 1
3. :SG command:
SCOPE 5.460447 sec : CMD <:SG -04:00#>
SCOPE 5.481436 sec : RES < >
The format in the manual is:
:SG sHH#
So, no muinutes, just hours.
Response should be 1
A patch for all the above is attached. I tested it and it is working.