comparison rust/src/types.rs @ 596:ca8102feaca6 rust

sensor takes config parameter
author Matt Johnston <matt@ucc.asn.au>
date Fri, 06 Jan 2017 22:04:10 +0800
parents e87655ed8429
children b45b8b4cf0f5
comparison
equal deleted inserted replaced
595:e87655ed8429 596:ca8102feaca6
1 use std::collections::HashMap; 1 use std::collections::HashMap;
2 use std::time::Duration; 2 use std::time::Duration;
3 use serde::{Deserialize,Serialize}; 3 use serde::{Deserialize,Serialize};
4 4
5 #[derive(Deserialize, Serialize, Debug, Clone)] 5 #[derive(Deserialize, Serialize, Debug)]
6 pub struct Params { 6 pub struct Params {
7 pub fridge_setpoint: f32, 7 pub fridge_setpoint: f32,
8 pub fridge_difference: f32, 8 pub fridge_difference: f32,
9 pub overshoot_delay: u32, 9 pub overshoot_delay: u32,
10 pub overshoot_factor: f32, 10 pub overshoot_factor: f32,