Commit Graph

18 Commits

Author SHA1 Message Date
rusefillc 4667e991d4
max3185x: support also max31856 (#253)
(cherry picked from commit 703985dc709afad2df0ff69d929751894da51b34)

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-05-29 15:16:28 -07:00
rusefillc 025b687673
auxout: no need to invert PWM signal in software (#248)
Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-05-29 14:45:08 -07:00
rusefillc 8bd19fcc2c
Aux2 (#243)
* auxout: manually fill pwm config

(cherry picked from commit a01876bc034264de5d6930bf2cc49cf0fc0cbb0a)

* auxout: some boards use primary PWM outputs instead of complementary

(cherry picked from commit c13b95441e7b284a36445c261199e96580e94ebd)

* auxout: implement ripple cancelation using inverted PWM

(cherry picked from commit 77cbc04990421b24021639b098ea6040af3a12f8)

* f1_common: default AUXOUT value is AFR voltage

with 'default' scaling 8.5 to 18.0 AFR is represented with 0.0 to
5.0V

(cherry picked from commit 0c62ab8f509ff0ab3ab4260e308ad4b55bd64e40)

---------

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-04-28 22:01:13 -07:00
rusefillc 9d618d228e
auxout: designated initializers (#230)
(cherry picked from commit d458a094b64de13e8a1540dc0fb4facade6b332f)

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-04-27 12:55:05 -07:00
rusefillc 898fa20c2b
Dac helper (#226)
* dac: move helpers to separate cpp and h

(cherry picked from commit aee71931db269fc256ab43e1fb84b71c77e215d7)

* dac: HAL_USE_DAC guards

(cherry picked from commit 5517844e4d0f79c7cf8c5bb097c110541063bddf)

---------

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-04-17 14:11:34 -07:00
rusefillc bb86ba1e6b
Warning (#200)
* AUX out: cleanup warning

(cherry picked from commit f52b12c5d77ed537060eca4ba4a48392ed8e2418)

* HardFault handler: fix unused warning

(cherry picked from commit 6baa0fc1207142990b1501354a2b88ea322f1c4f)

---------

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-02-15 10:25:28 -08:00
Andrey G 1aa7c661f6
f1_rev and threads (#173)
* f1_rev3: high speed (strenght) for heater PWM output

* threads: set name for all thread

* f1_dual: enalbe CH_CFG_USE_REGISTRY so GDB can see thread

* f1_rev3: enalbe CH_CFG_USE_REGISTRY so GDB can see thread
2022-12-12 19:29:32 -08:00
Matthew Kennedy 3807bb20e2 ini updates 2022-12-06 16:46:07 -08:00
Matthew Kennedy 85365bcb68
faster f1 clocks (#172)
* faster f1 clocks

* PWM happy
2022-12-03 17:23:02 -08:00
Matthew Kennedy e015576e71 disable aux out dac PWM primary outputs as it conflicts with serial 2022-12-03 02:00:52 -08:00
Matthew Kennedy f654cbd14b don't keep two or three copies of the config 2022-12-02 01:46:23 -08:00
Matthew Kennedy 36a2fc0a14 save ram 2022-12-01 15:52:03 -08:00
Matthew Kennedy 2737e710d4 auxout 2022-12-01 15:42:21 -08:00
rusefillc bfe0b3a2c9
Dac logic (#138)
* auxout: support analog output through DAC

* auxout: empty InitAuxDac for boards with no analog out

* numbers

* numbers

* less fun comment

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-08-31 18:02:02 -07:00
Andrey G cddcd0d88c
Multichannel (#134)
* Multichannel AFR

* heater: fixes for multi channel mode

* f1_dual: fix configuration names

* pump_dac: fixes for multi-channel mode

* pwm: fixes for multichannel mode

* pump_control: reference instead of pointer

* sampling: reference instead of pointer

* heater_control: reference instead of pointer

* sampling: comment about heater/battery voltage

* f0_module: fixes for multi-channel update

* f1_rev2: fix for multichannel AFR

* hello rev 3

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-08-29 17:19:30 -07:00
Matthew Kennedy 1be860538b use math lib 2022-07-16 19:42:30 -07:00
rusefillc 700d763c29
f1_dual: fix aux pwm outputs (#119)
Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2022-07-15 23:02:02 -07:00
rusefillc 1454c10713
AUX outputs (#95)
* AUX outputs

* Rev2: define AUX output PWM device and channels

* Rev2: enalbe TIM1 used for aux outputs

* Rev2: define aux output gain

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2022-07-03 12:11:12 -07:00