Commit Graph

215 Commits

Author SHA1 Message Date
a2caac0fe5 channels: power_down TEC when thermistor is not connected to ADC 2020-09-25 00:01:08 +02:00
20059aff5c channel_state: recognize unplugged thermistor 2020-09-24 23:34:09 +02:00
f690599f9e config: update tests 2020-09-24 23:21:54 +02:00
b3e9a1b636 init_log: set USB_LOGGER max level 2020-09-24 23:11:23 +02:00
bfbf037006 config: add load/save code 2020-09-24 23:10:47 +02:00
a1ad9b2456 main: load config from eeprom on boot 2020-09-24 23:08:42 +02:00
8d70c03520 config: finalize load/save 2020-09-24 23:04:29 +02:00
3b050347d4 config: add test_encode_decode 2020-09-24 21:35:15 +02:00
254c1c3d73 remove now unneeded uom feature use_serde 2020-09-24 21:33:42 +02:00
5a293a0ada config: convert steinhart_hart::Parameters to SteinhartHartConfig for f32 storage 2020-09-24 21:32:56 +02:00
daa398cb5e config: add pwm limits 2020-09-24 21:10:27 +02:00
17e89b2041 config: add test_fit_eeprom 2020-09-24 20:59:04 +02:00
58e648b5e0 pid::Parameters, CenterPoint: demote f32 fields to save config space 2020-09-24 20:47:02 +02:00
c5c0ce5625 channels: rm debug output 2020-09-24 19:49:11 +02:00
d3606d25b6 fix imports 2020-09-24 15:49:13 +08:00
27278db1ba update cargoSha256 2020-09-24 15:49:03 +08:00
d40a038c2f config: switch to postcard encoding 2020-09-24 02:06:53 +02:00
5d0d75d395 config: encode with serde_cbor 2020-09-24 01:18:33 +02:00
93f14523d7 command_parser: parse load/save 2020-09-24 01:17:50 +02:00
201701ee8b implement mac address generation with reading eui48 from i2c eeprom 2020-09-24 00:19:07 +02:00
a84242fb1f implement setting i_set centerpoint 2020-09-23 22:30:04 +02:00
b394cfa3d4 main: remove special handling for PwmPin::ISet 2020-09-23 20:50:50 +02:00
b9902929a9 test: #[allow(unused)] 2020-09-18 01:22:41 +02:00
edc675f5af command_parser: rename a test 2020-09-18 01:16:19 +02:00
a4dde1b8ca delint 2020-09-18 00:55:53 +02:00
7361619a53 pid: update default parameters 2020-09-18 00:41:32 +02:00
34543c8660 pid: only reset after target change 2020-09-18 00:24:00 +02:00
83a209397e fix tests 2020-09-18 00:23:30 +02:00
ba84295ec5 reconnect the pid controller 2020-09-18 00:09:30 +02:00
fb81380955 fix tests
run with `cargo test --target=x86_64-unknown-linux-gnu`
2020-09-17 01:48:27 +02:00
94e0525002 tec_u_meas: subtract vref offset 2020-09-17 01:20:47 +02:00
1157b73f7f max_i_pos/max_i_neg: remove vref from calculation
full duty pwm is at vref already
2020-09-17 01:03:57 +02:00
dd06ae1075 main: improve output 2020-09-16 23:32:48 +02:00
f76ee9a607 separate adc and max vref 2020-09-16 23:31:49 +02:00
fc0ca8b581 calculate i_set current 2020-09-16 22:22:48 +02:00
8c80062da8 use proper units for pwm pins 2020-09-16 22:06:15 +02:00
7d45d5ad32 adc: complete temperature calculation 2020-09-16 20:50:23 +02:00
dda1f2f0b4 use ThermodynamicTemperature 2020-09-16 18:40:07 +02:00
b1b6d1ea94 fixes 2020-09-14 00:12:28 +02:00
1849e6f5e7 cargosha256.nix: update 2020-09-13 23:24:44 +02:00
b80fcc430b channel_state: move adc_calibration into ChannelState 2020-09-13 23:15:48 +02:00
bb26490153 unit: replace with uom 2020-09-13 23:13:51 +02:00
4a1ce342a0 pins: enable pwm pins 2020-09-12 00:35:58 +02:00
8cddbc5173 update cargosha256 2020-09-11 18:38:12 +08:00
37a7898f92 cargosha256.nix: update 2020-09-11 02:07:17 +02:00
277f239ed7 cargosha256.nix: update 2020-09-10 23:44:14 +02:00
10208e1ac0 main: bump WATCHDOG_INTERVAL to 1s
required for running Channels.calibrate_dac_value()
2020-09-10 23:28:00 +02:00
42587810cd usb: add serial logger 2020-09-10 23:17:31 +02:00
c11b71cc0d adc: don't calibrate but convert using ChannelCalibration 2020-09-09 23:10:33 +02:00
2617895460 update cargosha256 2020-09-06 22:59:12 +02:00