Commit Graph

224 Commits

Author SHA1 Message Date
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