rusefillc
d8e65a2c24
suggestion to improve naming ( #294 )
...
* Rename GetInternalBatteryVoltage() to GetInternalHeaterVoltage()
* sampling, heater: fix Battery vs Heater naming mess
---------
Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2024-06-25 23:44:32 -07:00
Matthew Kennedy
5902009536
fix it more
2023-11-15 20:39:20 -08:00
Matthew Kennedy
50f8e1f2bb
auto-heat after 5 seconds of no CAN command #194
2023-11-15 20:28:51 -08:00
Matthew Kennedy
6f8aca6ce4
extract sampling thread
2023-08-09 12:40:01 -07:00
Matthew Kennedy
58a09843eb
extract sampler class
2023-08-09 12:31:49 -07:00
Matthew Kennedy
c0609b0da2
remove GetInternalBatteryVoltage helper
2023-06-23 14:45:50 -07:00
Matthew Kennedy
d1c878bf13
kill off helpers to get heater/sampler stuff
2023-06-23 14:38:17 -07:00
Matthew Kennedy
b8f11741b5
heater uses sampling class
2023-06-20 17:26:54 -07:00
Matthew Kennedy
2907a5378f
add isampler
2023-06-20 17:24:48 -07:00
Matthew Kennedy
6ebbe939ad
extract sampling class
2023-06-20 17:09:44 -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
Matthew Kennedy
ab84b694b6
decode temperature based on sensor type
2023-02-15 10:24:30 -08:00
Matthew Kennedy
2f79f62399
lsu 4.9 and adv temperature curves
2023-02-14 13:53:52 -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
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
387c03a4d7
avoid bogus temperature with disconnected sensor
2022-12-06 17:00:20 -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
Andrey G
63ef4b7a10
TS more and more ( #123 )
...
* TunerStudio: simplify enable magic
* TS integration: livedata, FragmentEntry
* f1_dual: reorder TS hooks
* f1_rev2: dummy settings for TS
* f1_rev2: TS signature
* f1_rev2: TS ini file
* Integrate with TS interface
* livedata: access adapters, no extern, make livedata static
* FragmentEntry: no FragmentEntry()
* livedata: struct not needed
2022-07-18 12:31:09 -07:00
Matthew Kennedy
6135464dc8
use libfirmware for crc, table lookup ( #121 )
...
* use libfirmware for crc
* kick
* bootloader
* bootloader
* use shared interpolate2d
* cleanup
2022-07-16 19:08:45 -07:00
rusefillc
1b0145d104
GD32: ADC workaround ( #83 )
...
(cherry picked from commit 02fd9f248189e3e801b50c920e1166daa23283bc)
Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2022-06-29 12:14:08 -07:00
rusefillc
e34094e13d
Prepare for multi-channel boards ( #72 )
...
* Prepare for multi-channel boards
(cherry picked from commit 8b713cebfc
)
* this belongs in wideband_board_config.h they say
Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-06-24 14:51:22 -07:00
Matthew Kennedy
62f5b9e7ae
clamp temperature estimation
2022-05-18 23:45:42 -07:00
Andrey G
d3e460a9a6
Uart debug ( #64 )
...
* heater: export state and description
* pump_dac: save and export Ipump
* float interpolation helpers
* Show heater state, heater duty, temperature and fault over uart
* uart: more stack for thread
2022-05-11 01:41:07 -07:00
rusefillc
b9b94fcadc
Temperature ( #63 )
...
* integer id interpolation
* Calculate sensor temperature based on Ri
* Sensor Ri around 25C
Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2022-05-07 11:12:20 -07:00
Matthew Kennedy
dc077caff1
api to get internal battery voltage
2022-04-06 01:08:40 -07: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
6238eed3e3
filter esr
2021-06-03 20:50:39 -07:00
Matthew Kennedy
d878252b48
move adc to port
2021-02-25 22:39:51 -08:00
Matthew Kennedy
cf106b6555
slightly lower noise
2021-01-19 00:24:47 -08:00
Matthew Kennedy
89906fddf3
correct for resistor
2021-01-17 03:31:44 -08:00
Matthew Kennedy
2d5d6a0026
filter pump output
2020-12-15 14:41:09 -08:00
Matthew Kennedy
db855532c7
filter less
2020-12-11 02:04:23 -08:00
Matthew Kennedy
d89cda413b
sense actual Vm value
2020-12-11 00:25:50 -08:00
Matthew Kennedy
2d483cc586
fix nernst
2020-12-10 18:06:50 -08:00
Matthew Kennedy
453a4c4337
add IsRunningClosedLoop
2020-10-31 14:54:50 -07:00
Matthew Kennedy
1e22402d88
consolidate magic numbers
2020-10-30 02:03:12 -07:00
Matthew Kennedy
e946b5ba71
add drawing
2020-10-29 17:22:18 -07:00
Matthew Kennedy
8e34dca1c2
comments
2020-10-29 03:11:48 -07:00
Matthew Kennedy
fbc6430aba
implement sampling math
2020-10-29 02:55:55 -07:00