Add support for get_conf with token 6 of Hamlib

With token 6 return the inputs of board with
this format: IP<TEMPERATURE>,<AZ-SWITCH STATUS>,<EL-SWITCH
STATUS>,<AZ-VELOCITY>,<EL-VELOCITY>
The temperature in C and velocities in deg/s.

Signed-off-by: Agis Zisimatos <agzisim@gmail.com>
merge-requests/7/head
Agis Zisimatos 2019-07-17 14:25:05 +03:00
parent 31541b7946
commit ccff364701
1 changed files with 10 additions and 2 deletions

View File

@ -265,8 +265,16 @@ public:
// Get the speed of elevation in deg/s
str1 = String("IP8,");
str2 = String(control_el.speed, 2);
str3 = String("\n");
rs485.print(str1 + str2 + str3);
rs485.print(str1 + str2 + str_newline);
} else if (buffer[0] == 'I' && buffer[1] == 'P') {
// Get end stops status and speeds input values
str1 = String(rotator.inside_temperature, DEC);
str2 = String(rotator.switch_az, DEC);
str3 = String(rotator.switch_el, DEC);
str4 = String(control_az.speed, 1);
str5 = String(control_el.speed, 1);
rs485.print("IP" + str1 + str_comma + str2 + str_comma +
str3 + str_comma + str4 + str_comma + str5);
} else if (buffer[0] == 'G' && buffer[1] == 'S') {
// Get the status of rotator
str1 = String("GS");