logarithmic graph
This commit is contained in:
@@ -66,7 +66,6 @@ impl Telemetry {
|
||||
tokio::time::sleep(Duration::from_secs(1)).await;
|
||||
}
|
||||
}
|
||||
()
|
||||
});
|
||||
|
||||
Ok(Self {
|
||||
@@ -140,13 +139,13 @@ async fn main() -> Result<(), Box<dyn Error>> {
|
||||
tokio::time::sleep_until(next_time).await;
|
||||
sin_tlm_handle.publish(
|
||||
Value::Float32(
|
||||
(f32::TAU() * (index as f32) / (1000.0_f32)).sin() + (index as f32) / (1000.0_f32)
|
||||
(f32::TAU() * (index as f32) / (1000.0_f32)).sin()
|
||||
),
|
||||
chrono::Utc::now(),
|
||||
).await?;
|
||||
cos_tlm_handle.publish(
|
||||
Value::Float64(
|
||||
(f64::TAU() * (index as f64) / (1000.0_f64)).cos() + (index as f64) / (1000.0_f64)
|
||||
(f64::TAU() * (index as f64) / (1000.0_f64)).cos()
|
||||
),
|
||||
chrono::Utc::now(),
|
||||
).await?;
|
||||
|
||||
Reference in New Issue
Block a user