Commit Graph

137 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 94de9fd776
TS: report Nernst AC too, convert Nernst voltages to uint16 (#249)
* TS: report Nernst AC too, convert Nernst voltages to uint16

* TS: report Nernst AC too, convert Nernst voltages to uint16

---------

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2023-05-03 14:51:34 -07:00
rusefillc 9519ad51dd
indication: advanced indication with per-channel status led (#235)
* indication: advanced indication with per-channel status led

(cherry picked from commit b486dfe682622c9835cf00457834cebf6e34da2f)

* f1_dual_rev1: enable advanced indication

---------

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-05-03 13:18:05 -07:00
rusefillc b1bf9bf185
Rev 1pwm (#242)
* f1_dual_rev1: fix analog aux output PWM definitions

(cherry picked from commit 50e346dfcb9f223c6e0ee6cdc700cb376b536834)

* fix pwm definitions

(cherry picked from commit ce9e69b997290bbd7abcfe5af2926b1d556070cf)

---------

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-05-03 11:46:32 -07:00
rusefillc c7a8365ea3
f1_dual_rev1: update ADC, measure Un_sense, avoid clamping (#244)
(cherry picked from commit 26f12766968a1999e1f12e06720ecbc334a91add)

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-04-28 22:02:09 -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 25c5e249d9
Dual 1 (#241)
* f1_dual_rev1: add pinmux settings for port F and G

To supress compiler warning.

(cherry picked from commit 89876fe8eaad933308b63a4b0b1666deb75bfc84)

* f1_dual_rev1: fix remaps

-disable JTAG to free PA15, PB3, PB4
-use SPI3 for EGT chips without remaping

(cherry picked from commit 598f1aa0779ba6e90ccf2eb74445d074f2bfbc75)

* f1_dual_rev1: disable unused TIM1, TIM2

(cherry picked from commit 9e71c3813fd09c080c0eb2f1e63fe82b475efb4f)

* f1_dual_rev1: run at 72MHz from HSE

(cherry picked from commit eaa4577ef85bdfdba637c203646883202a1f8e02)

* f1_dual_rev1: fix can timings

(cherry picked from commit 6437b3d92047adefe6534efaa57062bdda449d37)

* f1_dual_rev1: add CAN timings for 125L, 250K and 1Mbps

(cherry picked from commit bc988d10dda43bfc8b4566de274e3b99bc6b8a5e)

---------

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-04-27 14:12:48 -07:00
rusefillc ef1c89a51d
Dual rev1 (#229)
* f1_dual: revision 1

(cherry picked from commit 855585fcf66d5ca8d1d549236c1c472bbfcaa356)

* github: build f1_dual_rev1

(cherry picked from commit 8ac01d43831b5231303a430cdf56fcabafe9c990)

* pump_dac: support DAC as utput interface

(cherry picked from commit 5240ec1a9ed88110e63785b1611223bb4f6a023c)

---------

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-04-27 12:56:27 -07:00
rusefillc 5c06f03439
doc (#237) 2023-04-27 12:53:37 -07:00
rusefillc 27deaf524b
doc (#234)
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2023-04-27 12:53:21 -07:00
rusefillc b5947eab1d
doc (#233)
Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-04-27 12:53:15 -07:00
rusefillc 2f90b66fdb
f1_rev2: remove duplicated definitions (#227)
(cherry picked from commit 10b482e759cf2f0aa0d55e53ad540737586e3991)

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-04-17 16:25:44 -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
rusefillc 26564a0efc
More on magic constants (#223)
* More on magic constants

* More on magic constants

* More on magic constants #223
2023-04-12 19:46:30 -07:00
Matthew Kennedy 0b27e6a8e7 Merge branch 'master' of https://github.com/mck1117/wideband 2023-03-27 23:08:08 -07:00
Matthew Kennedy 0e1161b6d7 cleanup 2023-03-27 23:08:05 -07:00
rusefillc ebc39b3690
f1_rev3: used MCU has gpio port F and G (in bigger package) (#221)
Set safe state for gpio ports F and G to keep compiler happy.

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-03-24 14:59:06 -07:00
rusefillc e9343db75f
fail fast (#216)
* fail fast

* More of bash magic

---------

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2023-03-21 11:20:48 -07:00
Matthew Kennedy 85e61227ab this is port specific 2023-03-15 18:08:40 -07:00
Matthew Kennedy 00cc305d02 GetCanConfig 2023-03-15 18:07:31 -07:00
Matthew Kennedy 120b37c4b7 Merge branch 'master' of https://github.com/mck1117/wideband 2023-03-06 21:28:36 -08:00
Matthew Kennedy 9c7b9364c7 don't need to specify full path, just folder for dst 2023-03-06 21:28:31 -08:00
rusefillc 84c7c4c576
time to squash (#213)
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2023-03-06 21:26:32 -08:00
Matthew Kennedy 43def3f982 output to deliver dir, so that ci picks it up 2023-03-06 21:12:49 -08:00
rusefillc fa2b205583
Openblt composite hex (#212)
* composite OpenBLT+Wideband hex file

* Install srecord for srec_cat

---------

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2023-03-06 01:32:34 -08: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
rusefillc 6d908fb110
f1_dual: sample PWM pins first than do math (#190)
Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-02-04 18:21:22 -08:00
rusefillc f4bd1a4197
Smaller version of heater settings for other types of sensors (#183)
* heater settings for other types of sensors

* port: GetSensorType

* fancier C++ version

* fancier C++ version

* Why not a function

---------

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2023-02-01 11:43:52 -08:00
Andrey G a6052895e9
f1_dual/rev3: Revert CPU clock back to 48 MHz due to ADC problems on GD32 (#181) 2023-01-23 11:23:14 -08:00
Andrey G cdf632652b
f1_X: adjust CAN timings for 64MHz CPU clock (cAN clock is 32MHz) (#177) 2022-12-22 08:08:03 -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 a7961e178f bad signature copypaste 2022-12-06 16:59:36 -08:00
Matthew Kennedy 4d37f3748a oops snuck in 2022-12-06 16:57:03 -08:00
Matthew Kennedy 3807bb20e2 ini updates 2022-12-06 16:46:07 -08:00
Matthew Kennedy 36c0c3e4ab spelling 2022-12-06 15:53:36 -08:00
Matthew Kennedy 85365bcb68
faster f1 clocks (#172)
* faster f1 clocks

* PWM happy
2022-12-03 17:23:02 -08:00
Matthew Kennedy 1543561ed2 Revert "Revert "turn off unused OS features""
This reverts commit e48fa2cbba.
2022-12-03 01:35:20 -08:00
Matthew Kennedy e48fa2cbba Revert "turn off unused OS features"
This reverts commit cc25a0f94f.
2022-12-03 01:15:01 -08:00
Matthew Kennedy 3c0f930508 ini updates 2022-12-02 23:31:32 -08:00
Andrey G 94c348b88b
Jdy33 (#171)
* tunerstudio: support JDY33 BT module init on UART

* tunerstudio: BT: try most popular baudrates first

* tunerstudio: BT: protect from overflow

* tunerstudio: BT: limit retries

* tunerstudio: BT: directly do chprintf() to SD device

* TS: serial: make BT setup optional
2022-12-02 14:08:11 -08:00
Matthew Kennedy cc25a0f94f turn off unused OS features 2022-12-02 13:20:35 -08:00
Matthew Kennedy 320efe05a5 memory savings 2022-12-02 02:07:21 -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 91c989dc9a speed tuning 2022-12-01 23:41:19 -08:00
Matthew Kennedy 0870981763 minor cleanup 2022-12-01 22:55:55 -08:00
Matthew Kennedy 91677672bf
use gcc 11.3 (#166)
* use gcc 11.3

* does the full image work?

* does this work?
2022-12-01 16:15:05 -08:00
Matthew Kennedy 3518b4397a save f0 memory, turn off OS features 2022-12-01 15:59:30 -08:00
Matthew Kennedy a2a019dbac add config 2022-12-01 15:40:36 -08:00
Andrey G d69505171a
Configs cleanups (#164)
* f1_dual, f1_rev3: use Serial for TS not for debug

* f1_dual: config cleanup

* EGT_CHANNELS is better option for optional compilation of max driver

* max31855: supress warning
2022-10-06 11:24:11 -07:00
Andrey G adae19db09
Extract common code for all F1 devices (#162)
* main: acctually call InitConfiguration()

* f1_rev2: enable EFL and MFS (Managed Flash Storate)

* f1_dual: enable EFL and MFS (Managed Flash Storate)

* f1 boards: extract common code

* port.h: add LoadDefaults() method to Configuration class

* f1 boards: store Configuration to MFS

* f1 boards: common getTsSignature() for all f1 boards
2022-09-19 16:31:30 -07:00