Compare commits

..

No commits in common. "1a541c71eaa142bb50a65bfea0a865fc6c754023" and "adc2997f0dc613816b432906bf2e9bc1b82d5f11" have entirely different histories.

2 changed files with 3 additions and 7 deletions

View File

@ -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 = 500,
command_freq: u8 = 4,
poll_interval: u64 = 100,
command_freq: u8 = 10,
pollcount: u9 = 0,
state: State = .initial,
@ -121,8 +121,6 @@ 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", .{});

View File

@ -218,9 +218,7 @@ pub const Client = struct {
_ = result catch |err| {
self.rotint.warn("connect failed {}", .{err});
// 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
// retry bayeb
return .rearm;
};