Commit Graph

8 Commits

Author SHA1 Message Date
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 0abaae13e7
f1_dual: remove duplicated definitions (#224)
(cherry picked from commit 57b3ac51770fb7676d1bd93daac9384d44f18667)

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-04-17 14:08:45 -07:00
Andrey G a9bc33abbd
LSU type from settings (#207)
* port: per-board SetupESRDriver() and GetESRSupplyR() functions

* Pick sensor type from settings

* f1_rev2: build helper for LSU4.2 FW
2023-02-25 11:46:36 -08: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
rusefillc 41e87292c5
Add max31855 driver (#103)
* Add max31855 driver

* f1_dual: enable EGT driver

* bit.h: bit helper

* max31855 driver progress

* max31855 driver fixing guard

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-07-20 16:36:23 -07:00
rusefillc b298389fb5
Bat measurment (#113)
* board: f1_dual: add way to measure battery through Heater-

* heater_control: allow board to limit max heater duty

* board: f1_dual: use max sample for battery measurement, filter

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2022-07-15 00:07:13 -07:00
rusefillc ee230be7e2
Introducing dual channel board (#109)
* port: ID_SEL2_PIN is optional

Dual version is out of mcu pins and implement only one sel pin.

* board: f1_dial: add dual channel board

* GH actions: add f1_dual build to actions

* f1_dual: use uart driver, not serial

* f1_dual: setup correct remaps

* f1_dual: DEBUG: enable uart debug (disable TS)

* board: f1_dual: add way to measure battery through Heater-

* fix dual board

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2022-07-13 23:14:46 -07:00