rotctl: only support long quit command
gpredict actually sends either q or Q when disconnecting. This is not actually a supported command according to my reading of the rotctld documentation. `q`/`Q` for quitting is limited to the interactive rotctl prompt. For autoparking, we don't want to quit when gpredict disconnects. Also in general, we probably don't want to quit when gpredict disconnects. I still want to have a quit command when using this via netcat or whatever, so make them a form gpredict probably does not send.
This commit is contained in:
parent
c295c941e9
commit
a3b4ffc76d
@ -177,7 +177,6 @@ fn handleHamlibCommand(
|
||||
if (first.len == 1 or first[0] == '\\') {
|
||||
switch (first[0]) {
|
||||
// NOTE: this is not technically supported by rotctld.
|
||||
'q', 'Q' => try self.quit(first, &tokens),
|
||||
'S' => try self.stop(first, &tokens),
|
||||
'K' => try self.park(first, &tokens),
|
||||
'p' => try self.getPosition(first, &tokens),
|
||||
@ -248,8 +247,8 @@ const HamlibCommand = struct {
|
||||
};
|
||||
|
||||
const rotctl_commands = [_]HamlibCommand{
|
||||
.{ .short = 'q', .callback = quit }, // quit
|
||||
.{ .short = 'Q', .callback = quit }, // quit
|
||||
.{ .long = "quit", .callback = quit },
|
||||
.{ .long = "exit", .callback = quit },
|
||||
.{ .long = "AOS", .callback = blindAck },
|
||||
.{ .long = "LOS", .callback = blindAck },
|
||||
.{ .short = 'P', .long = "set_pos", .callback = setPosition }, // azimuth: f64, elevation: f64
|
||||
|
Loading…
x
Reference in New Issue
Block a user