Commit Graph

213 Commits

Author SHA1 Message Date
Matthew Kennedy e3a25429ef fix obd2 lambda PID 2023-03-08 13:31:46 -08:00
Matthew Kennedy caa16abcd4 wideband on second can (#5108) 2023-02-20 11:29:25 -05:00
rusefillc 41a8a90b3d guards 2022-12-17 14:43:51 -05:00
TurboMarian ac07b9c963 Update can_dash.cpp
(cherry picked from commit a2844721b5dd048afb0070dd809b73328dd23f52)
2022-12-16 16:35:08 -05:00
rusefillc c729b10bbe 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 f32ae379f5 nissan 2022-11-23 23:45:25 -05:00
Nathan Schulte 0057d0d2f4 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 d4cc3caeab 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 2bc3b7cea5 Error in can_dash.cpp fix #4786 2022-11-15 15:05:14 -05:00
rusefillc 841fc7796e Nissan 2022-11-14 21:47:54 -05:00
rusefillc 6e24664d37 Gather Nissan CAN data #2278 2022-11-13 02:55:10 -05:00
rusefillc dc57dfd547 Gather Nissan CAN data #2278 2022-11-13 00:20:35 -05:00
rusefillc ba4257ca75 Gather Nissan CAN data #2278 2022-11-10 00:42:56 -05:00
Matthew Kennedy 32b170810e 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 6598ea98b4 Matthew Kennedy says "Oops I missed MAP scaling in the update" 2022-10-16 11:17:32 -04:00
Matthew Kennedy 5e88098e56 can dbc update (#4663)
* can dbc update

* helpful comment
2022-10-13 20:24:29 -04:00
rusefillc 84909cd54b CAN side of automated testing #4630 2022-09-30 00:08:26 -04:00
rusefillc b80c75223a CAN side of automated testing #4630 2022-09-29 23:46:08 -04:00
rusefillc 587c448688 CAN side of automated testing #4630 2022-09-29 23:01:06 -04:00
Andrey G 2b4012b279 dead code, reduce typedefs (#4566)
* Do lightweight checks first

* Dead getTimeIgnitionSeconds()

Dead since 5274cffff3

* 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 25b6d39802 os_access.h dead? 2022-09-07 15:56:45 -04:00
Andrey e9e040895b different file names for different entities 2022-09-04 23:11:19 -04:00
Andrey e56924310b tear down Engine god object #4511
just trying different things
2022-09-03 07:44:24 -04:00
rusefillc 54e05ba0fc 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 be790e2c44 less code is better 2022-08-31 23:14:20 -04:00
Andrey G 78e53535d5 OpneBLT: Ops!: use can2OpenBLT for second CAN (#4430) 2022-08-09 18:12:11 -04:00
Andrey G f40f8323e1 OpenBLT: jump to OpenBLT on CAN request only if allowed (#4429) 2022-08-09 17:22:38 -04:00
Andrey G 074563ddfd 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 57263e9300 more CAN verbose (#4402)
* add stuff

* don't read invalid value
2022-08-01 15:27:06 -04:00
rusefillc 9b775e67b1 OBDII dreams 2022-07-14 05:05:49 -04:00
rusefillc c7c4807c52 removing some unused debug 2022-07-11 02:57:31 -04:00
Matthew Kennedy c4d01754c3 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 2c80b8cf19 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 d9514d4479 B6 shutdown Lua and else 2022-06-19 20:06:03 -04:00
rusefillc 2bd0d344b3 Update readme.md 2022-06-15 22:08:57 -04:00
rusefillc 5c9b5a0047 Rename readme.me to readme.md 2022-06-01 09:37:49 -04:00
rusefillc d3296db41e Update readme.me 2022-06-01 09:37:35 -04:00
rusefillc 5681471b48 Create readme.me 2022-06-01 09:37:17 -04:00
Matthew Kennedy 2510379e8d 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 349ecdb467 properly print extended CAN ids (#4182)
* print ext ids correctly

* string format

* comment
2022-05-18 16:55:14 -04:00
rusefillc 4517c2cfe9 CAN category (#4148)
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-05-09 16:49:23 -04:00
Matthew Kennedy 8650686ab7 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 e16117f6ce very random progress 2022-04-16 17:04:35 -04:00
rusefillc 0331193695 very random progress 2022-04-16 16:49:59 -04:00
Matthew Kennedy 467f446e11 knock counter on CAN (#4033) 2022-04-03 06:58:11 -04:00
rusefillc 5364ba431c Add Intake Air Temperature, Add Fuel Level (#4028)
Co-authored-by: hugovw1976 <hugovw1976@hotmail.com>
2022-03-30 18:15:55 -04:00
rusefillc c2b075d079 explicit error for forgotten NBC 2022-03-23 20:48:59 -04:00
rusefillc f3d7a19aa9 explicit error for forgotten NBC 2022-03-23 19:47:10 -04:00
rusefillc a6246763c0 canDashboardHaltech 2022-03-23 10:53:13 -04:00
Matthew Kennedy d01d24490b test AEM X-Series wideband protocol (#4002)
* break out acceptFrame, test CanListener

* test AEM xseries protocol

* tweaks

* tweaks

* maybe everyone compiles happily now
2022-03-15 15:52:50 -04:00