Commit Graph

238 Commits

Author SHA1 Message Date
Astro feae22b277 ad5680: idle low for powersaving 2020-05-16 01:18:14 +02:00
Astro c53c9a289f pins: fix ref_pins 2020-05-16 01:09:38 +02:00
Astro 53930497e4 ad5680: fix MAX_VALUE 2020-05-13 23:19:20 +02:00
Astro 9ecf705420 ad5680: fix SPI_MODE 2020-05-13 23:19:09 +02:00
Astro c0079007f2 do not overwrite dac value when pid is disengaged 2020-05-13 22:11:25 +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
Sebastien Bourdeauducq 9682d7657d README: update title 2020-04-09 13:16:30 +08:00
Astro 5faf64eae8 README: link CI, more instructions 2020-03-23 23:42:22 +01:00
Astro cfea205e06 README: init 2020-03-23 23:03:58 +01:00
Astro 56c62975c4 main: improve show pid parameters 2020-03-23 23:02:50 +01:00
Astro 0df3723ef3 cargosha256: update for nixbld.m-labs.hk
this hash differs on my machine currently...
2020-03-23 14:51:17 +01:00
Astro 8d532dc50a Cargo.toml: use patch for dependency stm32f4xx-hal 2020-03-23 00:28:24 +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 dcf7babf32 ad7172: delint, doc 2020-03-21 00:34:22 +01:00
Astro e7782c9cb3 implement shdn* pins 2020-03-21 00:33:48 +01:00
Astro b345cc0865 use embedded_hal through stm32f4xx_hal instead of direct dependency
this will aid maintainability.
2020-03-21 00:22:38 +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 da65ea21a4 ad7172: eliminate superfluous AdcError 2020-03-21 00:10:12 +01:00
Astro 9c3485d05f timer: increase rate to 500 Hz
timestamp precision: 0.002s
2020-03-21 00:07:18 +01:00
Astro 8e41c44303 adc: use ref_sel=external 2020-03-21 00:06:27 +01:00
Astro 1cba8e56c9 ad7172: add calibrate_offset() 2020-03-21 00:06:09 +01:00
Astro 63cc1d2fe1 main: always do full session reset 2020-03-20 23:20:50 +01:00
Astro 194871c85a ad7172: readback after write_reg() 2020-03-20 23:19:31 +01:00
Astro 4c3c8498e9 ad7172: retry corrupt transfers 2020-03-20 00:45:40 +01:00
Astro 82dba2bb67 ad7172: work on adc setup 2020-03-20 00:45:10 +01:00
Astro bb51cce6f6 ad7172: remove stale code 2020-03-19 23:46:55 +01:00
Astro 723901b341 adc: read u32 for unipolar coding 2020-03-19 23:39:06 +01:00
Astro 2e72a03b93 steinhart_hart: fix equation 2020-03-19 22:56:14 +01:00
Astro bec7019f3a delint 2020-03-19 22:21:17 +01:00
Astro c00c1bb081 main: connect adc/sh/pid/dac, split out into mod channel_state 2020-03-19 22:11:36 +01:00
Astro a94650e208 main: optimize+doc resets 2020-03-19 22:01:16 +01:00
Astro 163bb38f68 simplify pid, keep last_output 2020-03-19 22:00:22 +01:00
Astro e5b4789304 replace dependency lexical-core with num-traits 2020-03-19 19:51:59 +01:00
Astro da4aaf4ff6 implement all the tcp commands 2020-03-19 18:34:57 +01:00
Astro cee0a1fcab steinhart_hart: fix calculation, rename parameters 2020-03-19 00:23:41 +01:00
Astro 0f4442b124 switch pid+steinhart_hart parameters from f32 to f64 2020-03-18 21:56:52 +01:00
Astro 1ad821299b build mods pid + steinhard_hart 2020-03-18 21:51:30 +01:00
Astro 0575b52bc1 session: eliminate copying LineResult wrapper 2020-03-18 21:34:20 +01:00
Astro ac728a2aff server: reduce sockets from 8 to 4 for memory savings 2020-03-18 21:15:34 +01:00
Astro 69a4f5a5d2 merge the network code 2020-03-13 23:39:22 +01:00
Astro 09dbb7d495 add ad5680 2020-03-12 21:41:03 +01:00
Astro fed3e767e9 pins: setup dac spi 0,1 2020-03-12 19:25:21 +01:00
Astro 89b0d142ad main: use HSE clock
supposed to lead to more stable pwm
2020-03-12 18:32:07 +01:00