Commit Graph

197 Commits

Author SHA1 Message Date
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
Matthew Kennedy e4fa4b29ca break out acceptFrame, test CanListener (#4001) 2022-03-14 19:09:01 -04:00
Benas Brazdziunas 8714cf0358 Moved multiplier/divider to scaled_channel factor (#3924)
* Moved multipiers and dividers to scaled_channel

* added linkto AIM can protocol
2022-02-11 21:02:19 -05:00
Benas Brazdziunas 1fb937bb32 AIM dash TPS, CLT,IAT, and Batt V fix (#3922) 2022-02-11 18:42:51 -05:00
rusefillc 9a73601020 per-bus verbose flag 2022-02-10 10:12:48 -05:00
rusefillc e186a7c343 reducing the mess 2022-02-10 01:51:27 -05:00
Andrey G 4ce858b5d5 imu: add support for Mercedes pn: A 006 542 26 18 (#3902) 2022-02-08 16:29:01 -05:00
rusefillc b5246ab4b2 B6 2022-02-04 00:47:19 -05:00
Matthew Kennedy fe6cdf60e3 warnings fixes (#3851)
* unused things

* !!! actual bug !!!

* dead

* unused

* unused

* multi-bus lua RX was just broken

* make the compiler angry about it

* dead config

* alphax 2

* just call, no store

* compiler too angry
2022-01-31 18:37:42 -05:00
Matthew Kennedy a1647fd66e baro fully in sensor model (#3829)
* consumers and api

* dead test

* baro uses sensor model

* remove old (copy of?) map lookup logic

* I guess we don't need FastInterpolation any more?

* don't double init analog input
2022-01-23 09:42:11 -05:00
Andrey 5f3324cd6b migrating to SensorType::Rpm API 2022-01-20 23:32:59 -05:00
Andrey 3e3bdab488 migrating to SensorType::Rpm API 2022-01-20 22:38:08 -05:00
Andrey 72ae8dd4a1 migrating to SensorType::Rpm API 2022-01-20 22:22:52 -05:00
rusefillc 03759b148b Revert "support better wbo format (#3740)"
This reverts commit 4ee1a6b7
2022-01-15 23:02:11 -05:00
Matthew Kennedy 78119b7df4 improve maf output channels and logging (#3743)
* maf channels

* s

* binary log

* if only I could type

* can

* instant RPM too

* s

* test

* graceful zero rpm

* test works

* float near
2022-01-12 15:41:35 -05:00
rusefillc 19bbf6ed71 B6 2022-01-10 13:06:19 -05:00
Matthew Kennedy c8f87a88c5 hotfix (#3765) 2022-01-10 08:35:36 -05:00