Compare commits
2 Commits
adc2997f0d
...
1a541c71ea
Author | SHA1 | Date | |
---|---|---|---|
1a541c71ea | |||
7bdea9644c |
@ -80,8 +80,8 @@ pub const RotInt = struct {
|
||||
offsets: AzEl = .{ .az = 0, .el = 0 },
|
||||
requested_posture: AzEl = .{ .az = 0, .el = 0 },
|
||||
current_posture: AzEl = .{ .az = 0, .el = 0 },
|
||||
poll_interval: u64 = 100,
|
||||
command_freq: u8 = 10,
|
||||
poll_interval: u64 = 500,
|
||||
command_freq: u8 = 4,
|
||||
pollcount: u9 = 0,
|
||||
state: State = .initial,
|
||||
|
||||
@ -121,6 +121,8 @@ pub const RotInt = struct {
|
||||
self.warn("rotator connected", .{});
|
||||
self.sendRotatorCommand(.get_position);
|
||||
self.state = .rotator_connected;
|
||||
self.vx.queueRefresh();
|
||||
self.draw() catch {};
|
||||
},
|
||||
.rotator_ready => if (self.state == .rotator_connected) {
|
||||
self.warn("rotator ready", .{});
|
||||
|
@ -218,7 +218,9 @@ pub const Client = struct {
|
||||
|
||||
_ = result catch |err| {
|
||||
self.rotint.warn("connect failed {}", .{err});
|
||||
// retry bayeb
|
||||
// Note: this loops instantaneously if the target address is on localhost
|
||||
// and is not being listened on. Actually just straight up crashes on macOS.
|
||||
// Probably need to use a timer to handle this better
|
||||
return .rearm;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user