diff options
| author | Selene ToyKeeper | 2020-01-29 05:08:14 -0700 |
|---|---|---|
| committer | Selene ToyKeeper | 2020-01-29 05:08:14 -0700 |
| commit | 9c0d1832464e4ee7ee8c4c63092ac4337347483b (patch) | |
| tree | 67eb820b425e7a5e019e7158dda30ebab5e1bbe8 /hwdef-FW3A.h | |
| parent | fixed too-slow thermal response (was introduced in the irq-refactor branch) (diff) | |
| download | anduril-9c0d1832464e4ee7ee8c4c63092ac4337347483b.tar.gz anduril-9c0d1832464e4ee7ee8c4c63092ac4337347483b.tar.bz2 anduril-9c0d1832464e4ee7ee8c4c63092ac4337347483b.zip | |
rewrote ADC code to use a continuous lowpass system on all measurements, to eliminate noise and maybe increase precision
(thermal code still needs to be rewritten though)
Diffstat (limited to 'hwdef-FW3A.h')
| -rw-r--r-- | hwdef-FW3A.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hwdef-FW3A.h b/hwdef-FW3A.h index 0b94635..a223b08 100644 --- a/hwdef-FW3A.h +++ b/hwdef-FW3A.h @@ -35,7 +35,7 @@ //#define ADC_CHANNEL 0x01 // MUX 01 corresponds with PB2 //#define ADC_DIDR ADC1D // Digital input disable bit corresponding with PB2 #endif -#define ADC_PRSCL 0x06 // clk/64 +#define ADC_PRSCL 0x07 // clk/128 // average drop across diode on this hardware #ifndef VOLTAGE_FUDGE_FACTOR |
