Fix left overs after models refactor (#3)
Co-authored-by: Felipe Diniello <felipediniello@pm.me> Reviewed-on: #3
This commit was merged in pull request #3.
This commit is contained in:
@@ -11,7 +11,6 @@ path = "src/nav_dev/main.rs"
|
||||
|
||||
[dependencies]
|
||||
paho-mqtt = { workspace = true }
|
||||
influxdb = { workspace = true }
|
||||
tokio = { workspace = true }
|
||||
dotenv = { workspace = true }
|
||||
chrono = { workspace = true }
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
use chrono::{DateTime, Utc};
|
||||
use influxdb::InfluxDbWriteable;
|
||||
use serde::Serialize;
|
||||
use tokio::time;
|
||||
|
||||
@@ -7,7 +6,7 @@ use kairo_common::Point;
|
||||
|
||||
use crate::Config;
|
||||
|
||||
#[derive(Debug, Serialize, InfluxDbWriteable)]
|
||||
#[derive(Debug, Serialize)]
|
||||
pub struct Error {
|
||||
error: f64,
|
||||
speed: f64,
|
||||
|
||||
@@ -3,7 +3,7 @@ use std::{thread, time};
|
||||
|
||||
mod error_report;
|
||||
|
||||
use kairo_common::helper::for_sync::{get_mqtt_cli, mqtt_pub};
|
||||
use kairo_common::mqtt::for_sync::{get_mqtt_cli, mqtt_pub};
|
||||
use kairo_common::{Antenna, BeaconMeasure, DeviceReport, Point};
|
||||
|
||||
#[derive(Clone)]
|
||||
@@ -47,7 +47,7 @@ async fn main() {
|
||||
let mut report = DeviceReport { data: vec![] };
|
||||
|
||||
for ant in (antenna).iter() {
|
||||
let d = ant.coord.distance_to(&position);
|
||||
let d = ant.coord().distance_to(&position);
|
||||
let rssi = ant.get_rssi(d);
|
||||
|
||||
let noise: f64 = noise_gen.sample(&mut rand::thread_rng());
|
||||
|
||||
Reference in New Issue
Block a user