Commit Graph

320 Commits

Author SHA1 Message Date
Matthew Kennedy c8ddbba529 trip odometer 2023-09-26 17:03:06 -04:00
rusefillc 85db1cf0dc only: part of knock logging 2023-09-25 21:18:57 -04:00
Matthew Kennedy d481c4c271 can VSS scaling #253 2023-09-18 08:03:33 -04:00
Andrey b81fb40203 testability: bench test commands should have automated coverage using simulator #5562
only: making CAN frame always available to simulator
2023-09-14 08:34:24 -04:00
rusefi ee34abe7bb EPIC: we need to test fresh boards #5511
only:proteus_f7
2023-09-02 16:50:15 -04:00
rusefi 2b36cc62f4 EPIC: we need to test fresh boards #5511
only:proteus_f7
2023-09-01 17:34:01 -04:00
rusefi c2bfe00597 EPIC: we need to test fresh boards #5511
only:proteus_f7
2023-09-01 17:07:10 -04:00
rusefi 253c744f3e EPIC: we need to test fresh boards #5511
only:proteus_f7
2023-08-31 01:10:03 -04:00
rusefi 251bc304ea EPIC: we need to test fresh boards #5511
only:proteus_f7
2023-08-31 00:28:52 -04:00
rusefi 47b09566cb EPIC: we need to test fresh boards #5511
only:proteus_f7
2023-08-31 00:01:31 -04:00
rusefi bdd94e7b5b EPIC: we need to test fresh boards #5511 2023-08-29 21:23:30 -04:00
rusefi 18d95b63f2 EPIC: we need to test fresh boards #5511
only:proteus_f7
2023-08-29 20:54:12 -04:00
rusefi 387d4f04f3 EPIC: we need to test fresh boards #5511 2023-08-29 19:45:49 -04:00
rusefi f8c641d811 only:alphax-2chan 2023-08-27 14:55:18 -04:00
rusefi 70035fe579 https://github.com/rusefi/rusefi/issues/5511
only:alphax_2chan
2023-08-26 22:15:47 -04:00
rusefi a872d8067d https://github.com/rusefi/rusefi/issues/5511
only:alphax_2chan
2023-08-26 22:12:52 -04:00
Andreika f76ae88aff
CAN bench: set engine type command (#5538)
* CAN_BENCH_SET_ENGINE_TYPE

* fir setPin()

* update libfirmware
2023-08-24 09:48:30 -04:00
rusefillc fd740a5a63 broadcast button toggle counter #5514
only:fancy boolean with counter
2023-08-22 15:04:39 -04:00
rusefillc 5f714480c6 broadcast button toggle counter #5514
only:fancy boolean with counter
2023-08-22 14:57:14 -04:00
rusefillc a041eb55f3 broadcast button toggle counter #5514
only:fancy boolen with counter
2023-08-22 14:49:28 -04:00
Andreika 073f6cfbb0
fix mixed up CLT & IAT in the bench_test_raw_analog CAN packet https://github.com/rusefi/rusefi-hardware/issues/228 (#5533) 2023-08-22 08:51:12 -04:00
rusefi 9adc323fec CAN bench test: broadcast raw analog values #5437 2023-08-21 19:59:51 -04:00
rusefi dded7f2926 engine_type_e 16 bits should do it 2023-08-21 19:28:24 -04:00
rusefillc 2cfd8e1be9 engine_type_e 16 bits should do it 2023-08-21 19:04:29 -04:00
rusefillc cf7944cd78 CAN side of automated testing fix #4630
closing simply because we have too many tickets
2023-08-21 00:40:36 -04:00
rusefi e8c45a2e7d refactoring: reducing code duplication. Also, do we even care for critical error codes?! 2023-08-20 22:23:44 -04:00
rusefi dbfbe3f980 bench_test CAN packets do not use proper IDs #5525 2023-08-20 21:56:01 -04:00
rusefi 983f84ce0f bench_test CAN packets do not use proper IDs #5525 2023-08-20 21:26:33 -04:00
Andreika c41934b2b2
broadcast vehicleSpeedSensor.eventCounter #5519 (#5522) 2023-08-19 15:04:46 -04:00
Andreika 84c6d4cde6
More universal Board-ID for bench test (#5518)
* add STATIC_BOARD_ID defines to get Board-ID more universal

* add getBoardId()

* broadcast BENCH_TEST_BOARD_STATUS via CAN

* add guards for sendBoardStatus()
2023-08-18 18:41:17 -04:00
rusefillc a10b619a2f can_rx: dead 2023-08-17 11:53:00 -04:00
rusefillc e4fa019029 can_rx: dead 2023-08-17 08:25:45 -04:00
Andreika e4a4042169
CAN bench test: broadcast raw analog values #5437 (#5512) 2023-08-14 16:28:14 -04:00
Andreika c303a8cfd9
CAN bench test: broadcast event counters #5436 (#5510)
* CAN bench test: broadcast event counters #5436

* update libfirmware

* update libfirmware

* Broadcast eventcnts every 100ms

* Add EFI_SHAFT_POSITION_INPUT guards
2023-08-13 10:30:46 -04:00
Matthew Kennedy 82de75ee1c wire up CAN bit for lambda protect
(cherry picked from commit 59430dfa9168b4635663d7909b91dffee598373b)
2023-06-29 13:32:55 -04:00
Matthew Kennedy 84efe441af stub config for lambda protection
(cherry picked from commit 07f0360dd9d0aa6cb288657d11acf46775513c6c)
2023-06-23 21:04:37 -04:00
rusefi 97af20f651 only:mre_f4 2023-06-03 20:57:27 -04:00
rusefi 6c62dbba82 reducing BMW confusion 2023-06-03 20:28:33 -04:00
rusefi c972a0d53c current Gear should use sensor approach fix #5156 2023-05-15 09:22:36 -04:00
rusefillc cb8464b8ec refactoring: reducing code duplication 2023-05-08 23:45:48 -04:00
rusefillc c287f35b1f helping stm32h 2023-05-08 23:32:14 -04:00
Andrey Gusakov c07010b70a can: glut MS Simplified Dash Broadcast 2023-05-08 21:55:54 -04:00
Andrey Gusakov d0a77bd898 CAN: MS Simplified Dash Bradcasting 2023-05-08 21:55:54 -04:00
Andrey Gusakov 83f2087f97 CAN: rework debug prints, show ID in hex only for 29bit packets 2023-05-08 21:55:54 -04:00
rusefillc 8b5c68b0de Detected gear and wastegate position to CAN format 2023-04-30 11:50:00 -04:00
Matthew Kennedy 63d178cbde wideband magic numbers
(cherry picked from commit d4db234cf68557963e6147ac1c9ba9e85c717e25)
2023-04-30 01:37:43 -04:00
Matthew Kennedy 61e5b4b1ad change ObdCode to enum class builds firmware 2023-04-29 00:44:00 -04:00
Andrey 916a1d1534 it's going to be painful 2023-04-28 20:51:21 -04:00
Andrey 855de755ba it's going to be painful 2023-04-28 20:50:29 -04:00
Matthew Kennedy 139f6224b3 add detected gear to CAN format, update dbc
(cherry picked from commit f9b9da9e92426c9def34054b3183340448199418)
2023-04-28 20:29:43 -04:00
Matthew Kennedy 3d3873235b mk60 byte order wrong
(cherry picked from commit 9a6a53c9fad43333e29688a73e74ae0fdebb72f0)
2023-04-28 20:26:54 -04:00
rusefillc e9fa23be7a Lua VSS
only:mre_f4
2023-04-22 12:19:47 -04:00
rusefillc 4c13fcfdbe Lua VSS
only:mre_f4
2023-04-22 12:05:19 -04:00
m888r 1cdcfc4131
set aim dash CAN gear frame to current gear (#5221)
* set aim dash CAN gear frame to current gear

* change gear frame scaling and type
2023-04-07 06:28:15 -04:00
rusefi 3e47a8e39e Update wideband submodule #5208
only:hellen-honda-k
2023-03-30 12:08:14 -04:00
rusefi 0ec07a88fc https://martinfowler.com/books/refactoring.html 2023-03-30 11:40:26 -04:00
rusefi 59bdade439 docs 2023-03-30 11:32:25 -04:00
Matthew Kennedy f16f0bd26d
fix (#5164) 2023-03-08 17:39:33 -05:00
Matthew Kennedy 12c899ddca
wideband on second can (#5108) 2023-02-20 11:29:25 -05:00
rusefillc 2b4d58005b guards 2022-12-17 14:43:51 -05:00
TurboMarian 45598be534 Update can_dash.cpp
(cherry picked from commit a2844721b5dd048afb0070dd809b73328dd23f52)
2022-12-16 16:35:08 -05:00
rusefillc 55062b1ef6
refactoring: constexpr fuel computer (#4830)
* refactoring: constexpr fuel computer

* refactoring: constexpr fuel computer

* refactoring: constexpr fuel computer

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-11-26 12:25:04 -05:00
Andrey 3b7b8e3f33 nissan 2022-11-23 23:45:25 -05:00
Nathan Schulte 59406e83f3
avoid ctime, use UTC ISO 8601 for CMD_DATE format (#4764)
* java_console: use UTC ISO 8601 for CMD_DATE format

* ChibiOS RTC avoids ctime

* firmware: controller sets time via ISO 8601

* avoid ctime in CAN dash
2022-11-23 16:53:16 -04:00
Nathan Schulte fd1115d01a
code style, GPS fixes (test, firmware) (#4822)
* tidy NMEA

* const in nmea

* correct gps test output

* fix GPS UART print statements

* cleanup feature toggles in settings

* fix comment typos, misc whitespace
2022-11-23 07:01:34 -04:00
rusefillc f80f36f2d9 Error in can_dash.cpp fix #4786 2022-11-15 15:05:14 -05:00
rusefillc b5ae916dcf Nissan 2022-11-14 21:47:54 -05:00
rusefillc f166f0e0f5 Gather Nissan CAN data #2278 2022-11-13 02:55:10 -05:00
rusefillc 51da94ba89 Gather Nissan CAN data #2278 2022-11-13 00:20:35 -05:00
rusefillc ab823d06c8 Gather Nissan CAN data #2278 2022-11-10 00:42:56 -05:00
Matthew Kennedy f4f5f69ee6
duplicate log field names (#4730)
* remove duplicate target lambda/afr

* names on fuel computer

* remove more copies

* sensor.java

* everybody loves hard dependencies on generated fields

* target afr gauge fix

* test

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2022-11-05 20:23:09 -04:00
rusefillc 481efc616a Matthew Kennedy says "Oops I missed MAP scaling in the update" 2022-10-16 11:17:32 -04:00
Matthew Kennedy fab95bd890
can dbc update (#4663)
* can dbc update

* helpful comment
2022-10-13 20:24:29 -04:00
rusefillc 4f81151974 CAN side of automated testing #4630 2022-09-30 00:08:26 -04:00
rusefillc f703c58622 CAN side of automated testing #4630 2022-09-29 23:46:08 -04:00
rusefillc 234862b2b7 CAN side of automated testing #4630 2022-09-29 23:01:06 -04:00
Andrey G 55c1f53c75
dead code, reduce typedefs (#4566)
* Do lightweight checks first

* Dead getTimeIgnitionSeconds()

Dead since 81fffe87b7

* Get rid of efitime_t.

Purpose are not clear. Use efitick_t where ticks are used,
use efitimeus_t for uS, use efitimems_t or efitimems64_t for mS.

* Fix unit tests

* Fix misc: stm32f1_test_project
2022-09-11 16:08:11 -04:00
Andrey ab4b451195 os_access.h dead? 2022-09-07 15:56:45 -04:00
Andrey a0b52eeb2f different file names for different entities 2022-09-04 23:11:19 -04:00
Andrey d329f8ae10 tear down Engine god object #4511
just trying different things
2022-09-03 07:44:24 -04:00
rusefillc 25f4ebbc01
moving state into specific class (#4520)
* moving state into specific class

* moving state into specific class
2022-09-02 14:38:03 -04:00
Andrey 4cbaddcc60 less code is better 2022-08-31 23:14:20 -04:00
Andrey G a6bb71f52b
OpneBLT: Ops!: use can2OpenBLT for second CAN (#4430) 2022-08-09 18:12:11 -04:00
Andrey G 62e7463b4b
OpenBLT: jump to OpenBLT on CAN request only if allowed (#4429) 2022-08-09 17:22:38 -04:00
Andrey G aecd997d4b
OpenBLT shared params (#4417)
* OpenBLT: linker file: use last 16 bytes of ram for shared area

This area is used for communication between FW and OpenBLT.

* OpenBLT: startup: invalidate only DFU breadcumb from startup code

Same location (but different seed) is used for shared param's
signature in OpenBLT.

* OpenBLT: enable shared params

* OpenBLT: enable hooks

If 0x01 is stored in shared param idx=0, then stay in OpenBLT forever.

* Jump to OpenBLT: store proper shared param when OpenBLT is requested

TODO: calculate and store CRC too!

* OpenBLT: move shared_params to start of RAM

* Bootloader: Allocate 16 bytes at start of RAM for bootloader shared area

* OpenBLT: shared_params: reuse same .c and .h file for main application

* OpenBLT: shared_params: enable CRC check

* OpenBLT: no need to manualy set breadcumb before reset

* Revert "OpenBLT: startup: invalidate only DFU breadcumb from startup code"

This reverts commit 6b064714b953560227ae53e38355332cf9f46f7f.

* OpenBLT: guard for builds without OpenBLT

* OpenBLT: reboot to OpenBLT on CAN request with ID=0x667 and DLC=2

* config: options to enable OpenBLT on CAN interfaces

* OpenBLT: comments
2022-08-07 19:33:19 -04:00
Matthew Kennedy ed5f1b3d57
more CAN verbose (#4402)
* add stuff

* don't read invalid value
2022-08-01 15:27:06 -04:00
rusefillc dca7381b1f OBDII dreams 2022-07-14 05:05:49 -04:00
rusefillc 41a6026481 removing some unused debug 2022-07-11 02:57:31 -04:00
Matthew Kennedy cc9554e4b2
Respond to OBD2 on the same bus we got the request on (#4330)
* obd replies on the same bus as the request

* comment

* missed one
2022-07-08 05:25:35 +03: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 1182db2b3c B6 shutdown Lua and else 2022-06-19 20:06:03 -04:00
rusefillc c3675be034
Update readme.md 2022-06-15 22:08:57 -04:00
rusefillc ca1c15424d
Rename readme.me to readme.md 2022-06-01 09:37:49 -04:00
rusefillc e435ceb6ea
Update readme.me 2022-06-01 09:37:35 -04:00
rusefillc 7afcb349e6
Create readme.me 2022-06-01 09:37:17 -04:00
Matthew Kennedy a5eb91f1b7
update wideband firmware (#4186)
* use header from wideband

* update wideband

* we can use master now
2022-05-29 13:49:51 -04:00
Matthew Kennedy 2ce57efd1f
properly print extended CAN ids (#4182)
* print ext ids correctly

* string format

* comment
2022-05-18 16:55:14 -04:00
rusefillc 683a723d2f
CAN category (#4148)
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-05-09 16:49:23 -04:00
Matthew Kennedy 16de438ab8
knock threshold table fix (#4077)
* fix knock threshold table

* defaults

* knock controller is engine module

* testable

* test builds

* knock tests work

* s

* format

* everyone loves changelogs
2022-04-18 08:03:16 -04:00
rusefillc 70e4d118ef very random progress 2022-04-16 17:04:35 -04:00