Commit Graph

93 Commits (b9902929a9b9edbb79662689f2e2a2406c30f58e)

Author SHA1 Message Date
Astro b9902929a9 test: #[allow(unused)] 2020-09-18 01:22:41 +02:00
Astro a4dde1b8ca delint 2020-09-18 00:55:53 +02:00
Astro 34543c8660 pid: only reset after target change 2020-09-18 00:24:00 +02:00
Astro 83a209397e fix tests 2020-09-18 00:23:30 +02:00
Astro ba84295ec5 reconnect the pid controller 2020-09-18 00:09:30 +02:00
Astro fb81380955 fix tests
run with `cargo test --target=x86_64-unknown-linux-gnu`
2020-09-17 01:48:27 +02:00
Astro 94e0525002 tec_u_meas: subtract vref offset 2020-09-17 01:20:47 +02:00
Astro dd06ae1075 main: improve output 2020-09-16 23:32:48 +02:00
Astro f76ee9a607 separate adc and max vref 2020-09-16 23:31:49 +02:00
Astro fc0ca8b581 calculate i_set current 2020-09-16 22:22:48 +02:00
Astro 8c80062da8 use proper units for pwm pins 2020-09-16 22:06:15 +02:00
Astro 7d45d5ad32 adc: complete temperature calculation 2020-09-16 20:50:23 +02:00
Astro dda1f2f0b4 use ThermodynamicTemperature 2020-09-16 18:40:07 +02:00
Astro b80fcc430b channel_state: move adc_calibration into ChannelState 2020-09-13 23:15:48 +02:00
Astro bb26490153 unit: replace with uom 2020-09-13 23:13:51 +02:00
Astro 10208e1ac0 main: bump WATCHDOG_INTERVAL to 1s
required for running Channels.calibrate_dac_value()
2020-09-10 23:28:00 +02:00
Astro 42587810cd usb: add serial logger 2020-09-10 23:17:31 +02:00
Astro c11b71cc0d adc: don't calibrate but convert using ChannelCalibration 2020-09-09 23:10:33 +02:00
Astro 4e6aa5fe0c leds: init 2020-09-06 21:10:10 +02:00
Astro 9a912392be channels: fix dac calibration 2020-09-06 19:28:33 +02:00
Astro a3df2bc685 update to newer stm32-eth 2020-09-03 21:38:56 +02:00
Astro f9b55508dd ad5680: keep sync high for 1ms 2020-05-28 20:45:42 +02:00
Astro cf03613ac5 main: fix peripheral params 2020-05-28 20:43:52 +02:00
Astro ec6aa03dc3 set pwm values as ratio 0..1 2020-05-27 20:38:57 +02:00
Astro 35af543e33 channels: fix/optimize calibrate_dac_value() 2020-05-20 23:09:24 +02:00
Astro e6e150dac3 add Channels::calibrate_dac_value() 2020-05-19 00:15:39 +02:00
Astro 70127491f6 add vref_pin 2020-05-18 22:46:09 +02:00
Astro 3d6e1f18a6 add tec_u_meas 2020-05-18 21:38:13 +02:00
Astro 28a71d34d7 fix tec_i calculation 2020-05-18 21:23:07 +02:00
Astro 0bc0af7487 rename dac_loopback to dac_feedback 2020-05-17 02:18:25 +02:00
Astro ba860e52ac control i_set dac in volts 2020-05-17 01:27:47 +02:00
Astro 38a220ce4e fix tec_i calculation, add units::{Amps, Ohms} 2020-05-17 00:54:37 +02:00
Astro fb5c7a84e9 add units::Volts, use for stm32f4 adc 2020-05-17 00:13:52 +02:00
Astro 7f8dd62a36 add itec_pin 2020-05-16 23:59:31 +02:00
Astro a317eb60fd rename ref_adc to dac_loopback 2020-05-16 19:36:00 +02:00
Astro feae22b277 ad5680: idle low for powersaving 2020-05-16 01:18:14 +02:00
Astro b9d05ff274 channels: add set_dac() 2020-05-13 21:05:07 +02:00
Astro eb9aeb160a add Channels::read_ref_adc() 2020-05-13 00:15:29 +02:00
Astro 3d1740b23b refactor into Channels::poll_adc() 2020-05-13 00:04:55 +02:00
Astro 9466961bd7 main: refactor into Channel/Channels 2020-05-12 23:18:11 +02:00
Astro 6dd6bb2e1e pins: add ref[01] adc 2020-05-12 22:50:39 +02:00
Astro 56c62975c4 main: improve show pid parameters 2020-03-23 23:02:50 +01:00
Astro d203f21caf main: re-enable interrupts
also swap ADC polling and network processing to read the ADC first after
an interrupt.
2020-03-21 00:46:24 +01:00
Astro 15f64358a2 main: fix socket handling 2020-03-21 00:37:24 +01:00
Astro 7fe1d2f761 main: disable ad7172 sync 2020-03-21 00:36:52 +01:00
Astro e7782c9cb3 implement shdn* pins 2020-03-21 00:33:48 +01:00
Astro a102e5fcec main: wait for more tcp send headroom 2020-03-21 00:11:23 +01:00
Astro 10f7020c02 main: fix report padding 2020-03-21 00:11:03 +01:00
Astro 9c3485d05f timer: increase rate to 500 Hz
timestamp precision: 0.002s
2020-03-21 00:07:18 +01:00
Astro 1cba8e56c9 ad7172: add calibrate_offset() 2020-03-21 00:06:09 +01:00