Add finger mode UI and refine breakout/serial integration
This commit is contained in:
@@ -14,6 +14,7 @@ const DEFAULT_HAND_GATEWAY_NODE_SAMPLE_COUNTS: &[u16] = &[84, 84, 84, 84, 84, 70
|
||||
pub struct SerialIoStats {
|
||||
pub rx_bytes: u64,
|
||||
pub tx_bytes: u64,
|
||||
pub rx_frames: u64,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
@@ -101,6 +102,8 @@ fn run_tactile_a_loop(
|
||||
recorder.add_frame(&pressures);
|
||||
}
|
||||
let _ = sample_tx.try_send(vals);
|
||||
io_stats.rx_frames += 1;
|
||||
publish_stats(stats_tx, io_stats);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -191,6 +194,8 @@ fn run_hand_gateway_loop(
|
||||
recorder.add_frame(&pressures);
|
||||
}
|
||||
let _ = sample_tx.try_send(vals);
|
||||
io_stats.rx_frames += 1;
|
||||
publish_stats(stats_tx, io_stats);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user