This commit is contained in:
Marc Planard 2023-06-10 18:53:10 +02:00
parent 9a5db444a0
commit 883c72ff24
2 changed files with 5 additions and 5 deletions

View File

@ -102,10 +102,10 @@ fn get_next_frame(
rs: &mut RedisCtrl,
_black: bool,
) -> LJResult<Vec<Point>> {
//let line = rs.get(&format!("/pl/{}/0", config.laser_id))?;
let line = vec![(300.0,200.0,0),(500.0,200.0,65280),(500.0,400.0,65280),(300.0,400.0,65280),(300.0,200.0,65280),(300.0,200.0,0),(200.0,100.0,0),(600.0,100.0,65280),(600.0,500.0,65280),(200.0,500.0,65280),(200.0,100.0,65280)];
let mut line: Vec<Point> = line.into_iter().map(|tpl| tpl.into()).collect();
let line = rs.get(&format!("/pl/{}/0", config.laser_id))?;
let mut line: Vec<Point> = line.into_iter()
.map(|tpl| tpl.into())
.collect();
for transformer in transformers {
line = transformer.apply(&line);

View File

@ -1,7 +1,7 @@
use crate::transformer::Transformers;
use crate::point::Point;
use serde::{Serialize,Deserialize};
use std::f32::consts::PI;
//use std::f32::consts::PI;
/// Rotate