Commit Graph

362 Commits

Author SHA1 Message Date
GitHub gen-default-tune Action 103a537bdb Auto-generated default tune 2023-06-29 01:46:22 +00:00
GitHub gen-default-tune Action 0202c893cc Auto-generated default tune 2023-06-28 18:33:27 +00:00
GitHub gen-default-tune Action fe89ef4487 Auto-generated default tune 2023-06-27 17:10:18 +00:00
GitHub gen-default-tune Action bf21b7f785 Auto-generated default tune 2023-06-26 20:13:22 +00:00
GitHub gen-default-tune Action 54d756ce80 Auto-generated default tune 2023-06-25 04:39:57 +00:00
GitHub gen-default-tune Action cdf624e376 Auto-generated default tune 2023-06-25 03:42:08 +00:00
GitHub gen-default-tune Action 4ac3e34dbb Auto-generated default tune 2023-06-24 01:27:46 +00:00
GitHub gen-default-tune Action d16c12b0e7 Auto-generated default tune 2023-06-23 04:11:05 +00:00
Andrey 7f8f35f69f ohh look more dead! 2023-06-22 13:46:04 -05:00
GitHub gen-default-tune Action 6fc1c5f9ad Auto-generated default tune 2023-06-22 04:32:10 +00:00
GitHub gen-default-tune Action 7556d712ea Auto-generated default tune 2023-06-21 00:49:26 +00:00
GitHub gen-default-tune Action d81d1bb987 Auto-generated default tune 2023-06-20 12:47:14 +00:00
GitHub gen-default-tune Action 4e18bcc09d Auto-generated default tune 2023-06-19 15:11:14 +00:00
GitHub gen-default-tune Action 0665227ca0 Auto-generated default tune 2023-06-19 14:24:45 +00:00
GitHub gen-default-tune Action f2df4142da Auto-generated default tune 2023-06-19 03:15:10 +00:00
Andrey 07558a0713 only:typo 2023-06-18 21:11:49 -04:00
GitHub gen-default-tune Action d8ce5835ba Auto-generated default tune 2023-06-19 01:05:09 +00:00
GitHub gen-default-tune Action f4a24e2fc6 Auto-generated default tune 2023-06-19 00:01:29 +00:00
rusefillc f6def48c1d only:Improve toolset for default tune canned tune generation #4871 2023-06-18 18:55:51 -04:00
GitHub gen-default-tune Action cfd46fc50f Auto-generated default tune 2023-06-18 22:20:58 +00:00
rusefillc 1ca1c2b40b only:docs 2023-06-18 11:28:31 -04:00
rusefillc ad09e40754 only:Improve toolset for default tune canned tune generation #4871 2023-06-17 23:11:33 -04:00
mi-hol 41aef2ff5b fix review comment 2023-06-17 15:53:01 -04:00
mi-hol d0f7a9b2d8 Update rusEfiFunctionalTest.cpp 2023-06-17 15:53:01 -04:00
rusefillc 5802e0acc6 only:Improve error message so user knows what to check and fix #5335 2023-06-17 13:43:21 -04:00
GitHub gen-default-tune Action 864967755f Auto-generated default tune 2023-06-17 04:38:58 +00:00
rusefillc 60ad272548 scripts are not easy 2023-06-16 23:41:47 -04:00
GitHub gen-default-tune Action 0a8357e45d Auto-generated default tune 2023-06-17 03:15:41 +00:00
GitHub gen-default-tune Action e8c13ac116 Auto-generated default tune 2023-06-17 01:58:51 +00:00
Andrey e49abab407 only:Improve toolset for default tune canned tune generation #4871 2023-06-16 21:44:29 -04:00
Andrey 4fe7e4138b only:Improve toolset for default tune canned tune generation #4871 2023-06-16 21:32:34 -04:00
Andrey d0bb16d42f only:Improve toolset for default tune canned tune generation #4871 2023-06-16 21:22:40 -04:00
Andrey 42907e459d Improve toolset for default tune canned tune generation #4871 2023-06-16 17:33:08 -04:00
Matthew Kennedy 16e1a42ef3 simulator crash fix #101
(cherry picked from commit fd98124304eacf056e8d6a000d4aa806350a6332)
2023-05-05 18:37:03 -04:00
rusefillc 06f10b48df simulator board name 2023-04-29 06:47:09 -04:00
Matthew Kennedy 61e5b4b1ad change ObdCode to enum class builds firmware 2023-04-29 00:44:00 -04:00
Matthew Kennedy bb49b22294 joystick, lcd
(cherry picked from commit 61c17791b89fc6b5ae17df96d9498c088afdb09f)
2023-04-28 22:32:37 -04:00
rusefillc 36397b6c0b helping simulator? 2023-04-20 11:26:17 -04:00
Andrey 82bcc9b42c progress: run more code in simulator
only:hellen-honda-k
2023-03-05 02:42:54 -05:00
Andrey 6a3a9fc449 one step back
only:hellen-honda-k
2023-03-05 02:31:34 -05:00
Andrey b064052e01 progress: bringing simulator closer to real code
only:hellen-honda-k
2023-03-05 02:19:56 -05:00
Andrey 6b4c4a5833 refactoring: vvt is not aux
only:hellen-honda-k
2023-03-05 02:07:47 -05:00
Andrey f483535a39 progress: bringing simulator closer to real code
only:hellen-honda-k
2023-03-05 01:53:11 -05:00
Andrey 7464275b00 progress: bringing simulator closer to real code
only:hellen-honda-k
2023-03-05 01:50:51 -05:00
Andrey bd72aace92 progress: bringing simulator closer to real code
only:hellen-honda-k
2023-03-05 01:28:55 -05:00
Andrey 24e3aa5cc7 progress: bringing simulator closer to real code
only:hellen-honda-k
2023-03-05 01:20:03 -05:00
Andrey 9cf426e3db progress: run more code in simulator
only:hellen-honda-k
2023-03-05 01:13:43 -05:00
Andrey f0bacdf5c4 reducing weird?
only:hellen-honda-k
2023-03-05 00:57:38 -05:00
Andrey 264f265420 CAN GPIO #4096
only:hellen-honda-k
2023-03-05 00:52:57 -05:00
Andrey db5c6661f1 style
only:mre_f4
2023-03-02 23:50:57 -05:00
rusefillc c1fea618f9 Refactoring: less confusion macro names around serial/uart/etc in connectivity fix #4999 2023-01-23 05:26:59 -05:00
rusefillc 083bafb3ba Refactoring: less confusion macro names around serial/uart/etc in connectivity #4999 2023-01-23 05:09:32 -05:00
rusefillc 6146b01a36 antilag and anti-lag #2403
TurboMarian is the ALS boss
2022-12-21 20:12:00 -05:00
rusefillc c333f94858
Update readme.md 2022-11-19 20:15:21 -05:00
rusefillc 6dbb9149cc
Update readme.md 2022-11-19 19:34:23 -05:00
rusefillc aaa4c7ea89
Create readme.md 2022-11-19 18:53:43 -05:00
Nathan Schulte d144248a6f
fix simulator build (via MinGW) (#4799)
* firmware: kill -9 dead hipLastExecutionCount

* firmware: pin_repository C includes efi_gpio.h

* firmware: controllers: tidy #endif comments

* firmware: primary_pins logic depends EFI_GPIO_HARDWARE

* firmware: only print ADC info if HAL_USE_ADC

* firmware: digital_input: tidy #endif comments

* firmware: digital_input logic depends on e.g. HAL_USE_ADC

* firmware: digital_input logic depends !EFI_SIMULATOR

* firmware: digital_input logic depends e.g. HAL_USE_ADC

* simulator: Makefile includes RUSEFI_LIB_C as CSRC

* Revert "GHA/build-firmware: pin agents to Ubuntu 20.04 (#4793)"

This reverts commit cb2477be6c.
2022-11-18 23:43:43 -05:00
Nathan Schulte 4c197b4745
simulator: use CC and CPPC for LD (#4794)
this allows to specify a different GCC when building
2022-11-18 21:15:13 -05:00
Nathan Schulte 43e8c344de simulator: compile.sh passes arguments to make 2022-11-18 10:19:54 -05:00
Nathan Schulte 946a50dd68 simulator: tweak case of rusEFI in compile.sh log 2022-11-18 10:09:53 -05:00
Nathan Schulte 777c683319 simulator: Makefile uses spaces ...
... tabs are reserved for recipes
2022-11-18 10:09:28 -05:00
Nathan Schulte 894b849e3c
simulator: add missing stdc++ include to CAN HAL LLD (#4795)
for std::remove -- GCC 12 exposes this issue
2022-11-18 09:27:54 -05:00
rusefillc 8b603aae6d ingles lo hablas 2022-10-01 06:15:00 -04:00
rusefillc cab0177df0
insist on setBoardConfigOverrides fix #4614 (#4615)
* insist on setBoardConfigOverrides fix #4614

* insist on setBoardConfigOverrides fix #4614

* insist on setBoardConfigOverrides fix #4614

* insist on setBoardConfigOverrides fix #4614

* insist on setBoardConfigOverrides fix #4614
2022-09-24 07:35:19 -04:00
Matthew Kennedy b76a7cbcd8
simulator reads/writes configuration (#4605)
* simulator reads/writes configuration

* c_str

* include order
2022-09-23 08:47:50 -04:00
Andrey 7eb453bc54 os_access.h dead? 2022-09-07 16:00:13 -04:00
rusefi f399e275b2 servo is truly not alive 2022-09-06 16:29:12 -04:00
rusefillc fd2efcdb78
Issue 4115 (#4518)
* efiPrint NaN handling #4115

* fresh chibi

* efiPrint NaN handling #4115
2022-09-01 23:13:23 -04:00
Andrey 9d8afea152 a bit of dead code 2022-09-01 11:47:56 -04:00
rusefi 097bfb6e9c efiPrint NaN handling #4115 2022-08-31 20:00:58 -04:00
Matthew Kennedy c3d6bd7e59
Pt2001 module (#4396)
* pt2001 uses module

* read flag0

* c

* libfirmware

* makefiles

* are unit tests happy?

* bootloader
2022-08-08 08:53:08 -04:00
Matthew Kennedy a0d8ae3f4f
use libfirmware for a few things (#4351)
* use libfirmware

* unit tests

* crc

* missed one

* bootloader
2022-07-16 02:22:51 -04:00
rusefillc 7cbe3692e8 Detail on how to set up iDrive or equivalent CAN button control #226
boost lua progress
2022-07-14 12:59:09 -04:00
Matthew Kennedy 3c062e02bc
Lua hooks for gear detection (#4328)
* implement

* sim has vss

* write a test

* guard
2022-07-07 23:16:56 -04:00
Matthew Kennedy e9d092f975
big delete ICU (#4270)
* big delete

* icu vestiges

* changelog
2022-07-07 15:27:59 -04:00
Matthew Kennedy a95bc3ad03
implement CAN driver for simulator (#4312)
* stub simulator CAN driver

* comments

* CAN sensor

* maybe implement?

* s

* fix

* tx and rx actually work!?!?!

* check_can_isr

* modify chibios

* Sim has no CAN on Windows (for now?)

* safer init/deinit, enable assertions

* smarter handling of missing CAN device

* better guards

* guards for windows
2022-07-03 08:25:24 -04:00
rusefillc 88b061dd2c stealing from David 2022-06-26 19:42:08 -04:00
rusefillc 2202c223fe helping simulator a bit 2022-04-30 13:08:53 -04:00
Matthew Kennedy bc6a87cadc
allow enum_class in rusefi_hw_enums.h (#4104)
* make things c++ friendly

* install various canaries in coal mines

* using is much clearer than typedef

* fixing builds

* lps25

* trigger includes were a mess

* c -> c++ cleanup

* os util

* why did so many include os_util.h?

* fwd declare

* cypress/kinetis

* s

* eg33 happy

* happy sim

* cypress usb

* pch

* cypress

* doesn't need to include all that

* h7
2022-04-25 20:38:16 -04:00
rusefillc f4fe1ce310
Explicit fw (#3968)
* explicit FW ID

* explicit FW ID

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-02-27 00:49:47 -05:00
Matthew Kennedy d8073e8b27
remove mock adc (#3888)
* remove mock adc

* do these do /anything/?
2022-02-03 20:43:34 -05:00
Matthew Kennedy 10be2d5f40
Remove FSIO, byeeeeeeeee (#3865)
* vestigial config

* replace last functionality

* engine/board configs include

* files that didn't need to include this

* remove FSIO implementation

* stragglers

* random little bits

* s

* s

* ConfigDefinition

* jar

* s
2022-02-02 02:03:31 -05:00
Matthew Kennedy 736c7f33d9
make the simulator smaller (#3869)
* small sim

* o2 is ok
2022-02-01 16:19:46 -05:00
rusefillc fcdb7b340d mk files refactoring
saving build
2022-01-06 22:19:00 -05:00
rusefillc 04ab6a0488 mk files refactoring 2022-01-06 21:48:48 -05:00
rusefillc a13a0a2cc9 mk files refactoring 2022-01-06 20:32:39 -05:00
rusefillc 7f0357ffcb mk files refactoring 2022-01-06 20:06:31 -05:00
rusefillc 7c0fd37dfe Live Data progress 2022-01-06 19:02:35 -05:00
Scott Smith a87be43c53
Update the simulator TS port macros to match the rest of the product. (#3600) 2021-11-23 19:15:09 -05:00
Matthew Kennedy 178ccdeb4d
simulator writes binary log (#3598)
* simulator writes log

* replace the file

* check that the sim actually fails

* put it back

* did the sim really not fail?

* good, asan does catch it
2021-11-23 11:42:45 -05:00
Matthew Kennedy 3334a6963c
oh my god we've had no asserts (#3595) 2021-11-22 17:52:03 -05:00
Matthew Kennedy bb57a4b084
detect more overflows with asan (#3582)
* overflow detector

* type list dynamic allocate

* fix the buffer length

* comment

* pr fb

* sanitize sim

* fix sim sanitizer bug

* didn't mean to turn off optimization for sim

* asan can do that, if you turn it on!

* cleaning
2021-11-20 01:38:39 -05:00
Scott Smith 5bc1949aef
Basic framework for high pressure fuel pump control (#3476)
* Basic framework for high pressure fuel pump control

* Many changes

Move calculations to fast callback
Move main object into Engine
Respond to pin changes without requiring a reboot

* Use EngineModule for HpfpController
Schedule pin off after executing pin on so we are sure it ends, even if the motor stops.
Test scheduling.
Less RAM use by only having one event and reordering fields.

* Make scheduling test actually useful - need non-0 activation angle.

Co-authored-by: rusefillc <48498823+rusefillc@users.noreply.github.com>
2021-11-19 23:06:51 -05:00
Matthew Kennedy d40ca0f581
fuel pump doesn't use fsio (#3576)
* fuel pump

* s

* call correct callback

* more dead

* test adjustment

* don't overflow

* don't need separate function

* java

* give it a name

* generated

* generated

* add to generate script

* import *

* this is so cheap we don't need a flag
2021-11-19 22:23:12 -05:00
Matthew Kennedy cdd27abb09
turn on c++ 20 (#3579)
* set flags

* emit initializers

* jar
2021-11-19 22:19:34 -05:00
Matthew Kennedy a29933d7f8
simulator gets a heap (#3563) 2021-11-17 10:00:12 +03:00
rusefillc 6e9db86b38 helping launch enter simulator 2021-11-16 16:34:23 -05:00
Matthew Kennedy 8cdac4cac0
remove engine pointer passing (#3556)
* some

* more

* more

* the last?!
2021-11-16 04:15:29 -05:00
Scott Smith 37da55c920
Compile each project's PCH to a separate file to reduce developer friction. (#3505)
Having to remove the precompiled header when switching from firmware to simulator to unit_tests and
back again is annoying.  Use a directory to store the precompiled header output.  Turn off
precompiled header warnings as GCC still complains even if it finds a valid one eventually.
2021-11-08 15:52:58 -05:00
Scott Smith d4132fdf01
Change getTimeNowNt to be lock free. (#3502)
Track the top two bits of the 32-bit time field, along with the bits that comprise the top half of
the 64-bit time field.  We can detect when the 32-bit field is advancing or falling back from the
global time counter as long as the change is less than about 1 billion ticks.  This shows up as
either 01 or 11 in the top 2 bits of the 32-bit time field relative to the 64-bit field.  Or is
there is no change it shows up as 00.  Changes of 2 billion or more cannot be discerned as +2
billion and -2 billion both show up as 10.

Change the simulator to use this logic to make sure it gets some exercise.
2021-11-08 08:24:20 -05:00