Bevy+Ratutui powered Monitoring of Pico-Strike devices
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

update peaks proto format

+3 -3
+2 -2
src/device.rs
··· 90 90 91 91 #[derive(Debug, Component, Deref)] 92 92 #[component(immutable)] 93 - pub struct SignalPeaks(Vec<u16>); 93 + pub struct SignalPeaks(Vec<(usize, u16)>); 94 94 95 95 impl SignalPeaks { 96 - pub fn new(value: Vec<u16>) -> Self { 96 + pub fn new(value: Vec<(usize, u16)>) -> Self { 97 97 Self(value) 98 98 } 99 99 }
+1 -1
striker-proto/src/lib.rs
··· 49 49 }, 50 50 Strike { 51 51 timestamp: i64, 52 - peaks: Vec<u16>, 52 + peaks: Vec<(usize, u16)>, 53 53 samples: Vec<i16>, 54 54 average: u16, 55 55 },