Mercurial > templog
comparison rust/src/types.rs @ 595:e87655ed8429 rust
add config
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 05 Jan 2017 23:26:00 +0800 |
parents | aff50ee77252 |
children | ca8102feaca6 |
comparison
equal
deleted
inserted
replaced
594:aff50ee77252 | 595:e87655ed8429 |
---|---|
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 | 4 |
4 #[derive(RustcDecodable, RustcEncodable, Debug, Clone)] | 5 #[derive(Deserialize, Serialize, Debug, Clone)] |
5 pub struct Params { | 6 pub struct Params { |
6 pub fridge_setpoint: f32, | 7 pub fridge_setpoint: f32, |
7 pub fridge_difference: f32, | 8 pub fridge_difference: f32, |
8 pub overshoot_delay: u32, | 9 pub overshoot_delay: u32, |
9 pub overshoot_factor: f32, | 10 pub overshoot_factor: f32, |