cleanups
This commit is contained in:
parent
9a5db444a0
commit
883c72ff24
@ -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);
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user