55 Commits

Author SHA1 Message Date
dynfer
e9f09b025c Add an analog output (#352)
* working pwm out

* add a hacky knob for pump gain over CAN

* working pwm out

* plumb other sensors

* io pins define

* restore default pump PID

* Fix sensor select

* drop some leftovers

* missing tab

* streamline this

* fix memory overflow

* typo

* pollution

* remove pollution

* newlines

* move it to sampler

* f0 guards

* thats not needed

---------

Co-authored-by: Notwixd_linux <tomeknatolinn@gmail.com>
Co-authored-by: Matthew Kennedy <matthewkennedy@outlook.com>
2026-10-24 13:33:45 -07:00
Matthew Kennedy
d0f7eaf11e format main 2026-04-10 13:36:30 -07:00
Matthew Kennedy
284654769d add more status states 2025-07-24 15:43:39 -07:00
Matthew Kennedy
59e239162d rename fault -> status 2025-07-24 15:30:14 -07:00
Andrey G
56ee5c80bf TS_ENABLED vs ENABLE_TS: fix mess (#301)
board.mk defines ENABLE_TS for Makefile
while Makefile defines TS_ENABLED for compiled code.
Use TS_ENABLED in main.cpp
2023-12-03 15:57:18 -08:00
Matthew Kennedy
b23904362f Conditional compile ts (#298)
* conditionally compile TS as it's a memory hog

* naming so dumps are easier to read
2023-11-22 18:26:40 -08:00
Matthew Kennedy
d1c878bf13 kill off helpers to get heater/sampler stuff 2023-06-23 14:38:17 -07:00
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
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
248794965d main: do not forget to call startTunerStudioConnectivity() (#210)
Currently useless.

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-02-27 15:27:25 -08:00
rusefillc
d8b8ba7019 MemFault: supress warning about unused faultAddress (#205)
Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-02-17 11:43:21 -08: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
2132e50c93 Fix fault handlers for Cortex-M0 (#180) 2023-01-16 03:49:00 -08:00
Matthew Kennedy
60445fbed3 catch faults 2023-01-05 16:56:28 -08: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
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
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
Andrey G
8f5a23c2bc main: always call InitUart, get rid of ECHO_UART (#122) 2022-07-17 16:58:56 -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
rusefillc
a981063a8b UART (#52)
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-04-04 14:18:08 -07:00
Matthew Kennedy
2bda28226a extract fault 2022-01-01 21:10:55 -08:00
Matthew Kennedy
0bc41184e8 word order 2021-12-27 20:45:55 -08:00
Matthew Kennedy
3146bac645 missed one 2021-11-07 22:56:20 -08:00
rusefillc
b1372e47f6 Extract io (#25)
* LEDs for BL

* more reuse

* Windows exists

* extract NERNST pin

* Matt is asking to move

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2021-11-07 22:52:13 -08:00
Matthew Kennedy
0a117089b8 uppercase functions 2021-11-03 23:02:11 -07:00
Matthew Kennedy
00f77af2dd turn off uart for now 2021-01-15 19:21:27 -08:00
Matthew Kennedy
407503ca2a swap blink speed 2020-12-19 16:06:45 -08:00
Matthew Kennedy
9b23129d2a extract uart 2020-12-10 23:48:47 -08:00
Matthew Kennedy
1110cc81ff simplify more 2020-12-10 21:58:59 -08:00
Matthew Kennedy
26312d76aa simplify blink out 2020-12-10 21:58:09 -08:00
Matthew Kennedy
5c2dd19c3f blink fault codes 2020-12-10 21:46:41 -08:00
Matthew Kennedy
745c14a160 detect warmup failure 2020-12-10 18:32:41 -08:00
Matthew Kennedy
a86340767c format 2020-12-10 18:12:44 -08:00
Matthew Kennedy
b8c5e42f9d change blink in closed loop 2020-12-10 18:09:52 -08:00
Matthew Kennedy
ea1f528aea move CAN loop 2020-12-10 18:08:06 -08:00
Matthew Kennedy
9998a14cc0 tx both frames 2020-12-08 23:17:06 -08:00
Matthew Kennedy
f68a12b2fc send over CAN 2020-11-28 02:56:46 -08:00
Matthew Kennedy
95ba8de396 cleanup 2020-11-28 02:13:25 -08:00
Matthew Kennedy
2aedbd6eef lambda conversion 2020-11-01 01:17:13 -08:00
Matthew Kennedy
e16c1b626d Merge branch 'master' of https://github.com/mck1117/wideband 2020-10-31 17:01:37 -07:00
Matthew Kennedy
76859f851d printing 2020-10-31 17:01:33 -07:00
Matthew Kennedy
3fdf60b956 pump controller 2020-10-31 16:59:35 -07:00
Matthew Kennedy
0a96a10734 extract heater control 2020-10-30 01:53:54 -07:00
Matthew Kennedy
fbc6430aba implement sampling math 2020-10-29 02:55:55 -07:00
Matthew Kennedy
46718dd77a test pump 2020-10-27 20:07:16 -07:00
Matthew Kennedy
b611a96f05 extract pump dac 2020-10-27 16:33:32 -07:00
Matthew Kennedy
a12ff277f8 some uart too 2020-10-26 17:25:05 -07:00
Matthew Kennedy
3e90915d48 PWM works 2020-10-26 12:45:50 -07:00
Matthew Kennedy
f64d586411 analog 2020-09-19 21:39:29 -07:00