Commit Graph

3651 Commits

Author SHA1 Message Date
Matthew Kennedy 6b432ffef5 Actually separate injector model for second stage 2024-01-16 23:11:01 -08:00
rusefillc 304572349d
injectorStaging defaults (#340)
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2024-01-08 09:08:32 -08:00
Matthew Kennedy 9673ff01f3
implement staged injection (#331)
* output channel

* duty cycle etc math for second stage

* action_s utility

* basic enable switch

* staging fraction math

* implement staging logic

* wire up pins for second stage injectors

* staging UI

* Improve staged injection test, check scheduler arguments for other injection tests

* Stage 2 last pulse output channel, correct fuel consumption logic

* wall wet on the whole shot

* int vs size_t

* use a define instead of function so we get line numbers

* fix batch injection

* gauges

* bad test merge

* stub out secondary injector model
2024-01-07 15:22:39 -08:00
Matthew Kennedy 6865c5a521 signed/unsigned comparison 2024-01-06 18:31:39 -08:00
mi-hol 1d5c7fd220
clarify OBD error code CUSTOM_ERR_6566 to CUSTOM_ERR_CYL_ANGLE (#330)
* Update engine_math.cpp

* Update obd_error_codes.h

As suggested in https://github.com/FOME-Tech/fome-fw/pull/223#issuecomment-1684889630
2024-01-06 09:21:53 -08:00
Matthew Kennedy 1a27a37c9d clamp injector model baro values to avoid whacky sensor killing engine 2023-12-22 21:41:31 -08:00
Matthew Kennedy c7cc2de16f sanity in IMU data names/ranges 2023-11-27 01:30:18 -08:00
GitHub gen-configs Action 9587a8207c Auto-generated configs and docs 2023-11-27 00:57:34 +00:00
Matthew Kennedy d35b833ead support mk60e5 2023-11-26 16:51:29 -08:00
Matthew Kennedy d274e98abc better defaults 2023-11-16 22:45:31 -08:00
Matthew Kennedy c81579b9de dead piece of config 2023-11-16 22:23:58 -08:00
Matthew Kennedy 62980837b8 AlternatorController::onConfigurationChange 2023-11-12 19:56:22 -08:00
Matthew Kennedy 97c084cc24 fix simulator 2023-11-03 15:08:28 -07:00
GitHub gen-configs Action d3944f62f8 Auto-generated configs and docs 2023-11-02 09:24:16 +00:00
Matthew Kennedy 17e8a74bb8 dead mafSensorType fix #284 2023-11-02 02:20:57 -07:00
Matthew Kennedy ec676a1a83 shadow avoidance 2023-11-01 14:08:24 -07:00
Matthew Kennedy ce2198270e avoid some misc shadowing 2023-11-01 13:58:39 -07:00
GitHub gen-configs Action 1e86dc2fd4 Auto-generated configs and docs 2023-11-01 20:56:53 +00:00
Matthew Kennedy 36643bb7f4 dead pid auto tune 2023-11-01 13:54:48 -07:00
Matthew Kennedy a538805627 missed override in gear detector 2023-10-24 01:23:51 -07:00
GitHub gen-configs Action 73503da7d6 Auto-generated configs and docs 2023-10-24 08:01:46 +00:00
Matthew Kennedy 3e564ae319 vvt target bump feature 2023-10-24 00:59:48 -07:00
Matthew Kennedy 7b955cb1b3 fixAngle -> wrapAngle 2023-10-19 14:34:29 -07:00
Matthew Kennedy ad6c5af975
speedo output (#269)
* speedo output

* s

* fix init
2023-10-15 14:59:39 -07:00
Matthew Kennedy 38c873252e
smarter injector duty cycle limiting (#215)
* config for duty cycle limiting

* implement timeout duty cycle limiting

* comment

* make overlapping injections actually work!

* missed one

* test

* call addFuelEvents from fast callback

* update comment about why we call it again in main trigger callback

* one more extra call

* undo addFuelEvents change

* cleanup

* minor encapsulation

* fix

* changelog

* dead obd code
2023-10-14 14:27:19 -07:00
Matthew Kennedy f1e84220e0 another dead code while we're here 2023-10-12 23:27:19 -07:00
Matthew Kennedy 5e01450fee lock injection timing at high duty cycle to avoid skipped injections 2023-10-11 23:43:31 -07:00
Matthew Kennedy f08c374b73 don't cut spark for hard rev limit by default 2023-10-11 15:57:24 -07:00
Matthew Kennedy d5349044bc guard for small can board 2023-10-03 01:08:14 -07:00
Matthew Kennedy d98c6a9fc3 odometry output channels 2023-10-02 22:25:35 -07:00
Matthew Kennedy 768637aff1 trip odometer run time 2023-10-02 22:14:03 -07:00
rusefillc 7ad5b00f2e
refactoring: vvt is not aux (#263)
* refactoring: vvt is not aux

(cherry picked from commit 6b4c4a583316a32d7723c2cfa16cda39fa9afb1b)

* this repo has VVT conditional at small-can-board
2023-09-27 00:59:04 -07:00
Matthew Kennedy a0d64ea0ad use onConfigurationChange instead of version holder 2023-09-26 17:49:33 -07:00
Matthew Kennedy 4b354f047b
trip odometer (#260) 2023-09-25 13:16:17 -07:00
GitHub gen-configs Action ce26ef8adf Auto-generated configs and docs 2023-09-25 18:14:20 +00:00
Matthew Kennedy 3c001f759f
Miata presets (#236)
* rename existing

* rename existing

* 1.6 progress

* nb2 progress

* format

* stub nb1

* nb1 progress

* msm

* msm

* brake switch, MSM IAT

* gppwm, clutch pin

* cleanup

* allow setting lua heap size

* Revert "allow setting lua heap size"

This reverts commit 82533b5c7b.

* guard 1.6

* everyone wins a more sensible tps/tps AE table

* guard for tests

* nb2 vvt angle tweak

* tweak tests for changed defaults
2023-09-25 11:12:34 -07:00
Matthew Kennedy d734d2d116
remove warning message from configuration (#259)
* remove warning_message

* dead type

* don't zero a field that isn't there
2023-09-25 02:07:42 -07:00
mi-hol fcf0da4798
comment unused OBD codes (#223) 2023-09-25 01:10:46 -07:00
Matthew Kennedy 21024e167d can VSS scaling #253 2023-09-18 00:50:35 -07:00
Matthew Kennedy 17cb1444c7 add option to temperature compensate alpha-n 2023-09-16 23:21:03 -07:00
GitHub gen-configs Action 18528d8ca7 Auto-generated configs and docs 2023-09-17 06:09:52 +00:00
Matthew Kennedy e34a341b54 Always log normalized cylinder filling #249 2023-09-16 23:07:32 -07:00
GitHub gen-configs Action c907f4e567 Auto-generated configs and docs 2023-09-14 20:54:59 +00:00
Matthew Kennedy 4ddd1ffbdb rename 2jz -> toyota 3 tooth 2023-09-14 13:53:16 -07:00
GitHub gen-configs Action 0f52a8761e Auto-generated configs and docs 2023-09-13 22:42:57 +00:00
Matthew Kennedy 571c7e738b Merge branch 'master' of https://github.com/fome-tech/fome-fw 2023-09-13 15:40:49 -07:00
Matthew Kennedy cc0cd659d0 clean up debug channels 2023-09-13 15:40:43 -07:00
Matthew Kennedy 7ff224da12 Revert "debug channels cleanup"
This reverts commit 3b0d033dcd.
2023-09-13 15:40:21 -07:00
Matthew Kennedy 900bc092de Revert "debug channels cleanup"
This reverts commit c99a5890a1.
2023-09-13 15:40:19 -07:00
GitHub gen-configs Action 15201c0d5c Auto-generated configs and docs 2023-09-13 22:36:09 +00:00