improved graphing
This commit is contained in:
@@ -140,13 +140,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()
|
||||
(f32::TAU() * (index as f32) / (1000.0_f32)).sin() + (index as f32) / (1000.0_f32)
|
||||
),
|
||||
chrono::Utc::now(),
|
||||
).await?;
|
||||
cos_tlm_handle.publish(
|
||||
Value::Float64(
|
||||
(f64::TAU() * (index as f64) / (1000.0_f64)).cos()
|
||||
(f64::TAU() * (index as f64) / (1000.0_f64)).cos() + (index as f64) / (1000.0_f64)
|
||||
),
|
||||
chrono::Utc::now(),
|
||||
).await?;
|
||||
|
||||
Reference in New Issue
Block a user