Compare commits
3 Commits
38a286da11
...
d4bc537cbd
Author | SHA1 | Date | |
---|---|---|---|
d4bc537cbd | |||
8037568f38 | |||
61c10df63d |
@ -92,7 +92,7 @@ pub fn validate(self: Config, err_writer: anytype) !void {
|
|||||||
rotctl: RotControlConfig = .{
|
rotctl: RotControlConfig = .{
|
||||||
.listen_address = "127.0.0.1",
|
.listen_address = "127.0.0.1",
|
||||||
.listen_port = 4533,
|
.listen_port = 4533,
|
||||||
.autopark = true,
|
.autopark = false,
|
||||||
},
|
},
|
||||||
labjack: LabjackConfig = .{
|
labjack: LabjackConfig = .{
|
||||||
.device = .autodetect,
|
.device = .autodetect,
|
||||||
|
@ -366,10 +366,12 @@ const Controller = struct {
|
|||||||
continue;
|
continue;
|
||||||
};
|
};
|
||||||
|
|
||||||
self.lock.lock();
|
{
|
||||||
defer self.lock.unlock();
|
self.lock.lock();
|
||||||
|
defer self.lock.unlock();
|
||||||
|
|
||||||
self.setPosition(self.feedback_buffer.get());
|
self.setPosition(self.feedback_buffer.get());
|
||||||
|
}
|
||||||
|
|
||||||
switch (self.current_state) {
|
switch (self.current_state) {
|
||||||
.initializing, .idle => {
|
.initializing, .idle => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user