Commit Graph

69 Commits

Author SHA1 Message Date
Matthew Kennedy 408862d69f strongly type can bus index so we can't have the same bug again 2023-10-30 23:33:59 -07:00
Matthew Kennedy 39a54e5e93 require DLC on can TX 2023-10-30 18:50:49 -07:00
Stefan de Kraker 4e44e417b2
Fixed FOME CAN data bus selection (#275)
* Fixed FOME CAN data bus selection

* Made canChannel non-optional
2023-10-30 18:42:52 -07:00
Matthew Kennedy 2346086b06
knock live data (#261)
* Move knock data to knock controller

* appease tsConfigVersion

* make reapply logic easier to read
2023-09-25 11:06:48 -07:00
Matthew Kennedy 349d3a9b48 completely unused CanCategory 2023-05-30 22:13:54 -07:00
Matthew Kennedy d5f9479f28
ObdCode is enum class (#77)
* change ObdCode to enum class builds firmware

* test builds

* don't need this line at all

* can we go down to uint16_t?
2023-04-12 23:44:33 -07:00
Matthew Kennedy 2ff1b55c7b AiM can dash 2023-04-10 11:20:37 -07: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 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
rusefillc d9514d4479 B6 shutdown Lua and else 2022-06-19 20:06:03 -04:00
rusefillc 4517c2cfe9 CAN category (#4148)
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-05-09 16:49:23 -04:00
rusefillc e16117f6ce very random progress 2022-04-16 17:04:35 -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
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
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 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 19bbf6ed71 B6 2022-01-10 13:06:19 -05:00
rusefillc ccc4112dd1 B6 2022-01-09 21:16:24 -05:00
rusefillc 9bd90d0d6d BMW CAN 2021-12-19 13:23:37 -05:00
Matthew Kennedy ba8ac5f595 AiM dash (#3673)
* aim dash

* enum
2021-12-08 07:04:59 -05:00
Andrey d2c46b3310 Let's always have TS structure so that unit tests can check values in outputChannels, kind of making outputChannels a god dump for state but whatever since Live View is coming 2021-12-07 20:18:47 -05:00
Matthew Kennedy aa8584d89a calculate per-cylinder ignition timing (#3652)
* simplify cylinder phasing

* per cylinder timing

* s

* s

* s

* why was there a divide by 2?
2021-12-06 21:19:37 -05:00
Scott Smith 80091498a6 Programmatically replace ENGINE() and CONFIG() with engine-> etc (#3565)
git grep -l -w ENGINE | xargs sed -i -r "s/ENGINE\(([]a-zA-Z_0-9.[]+)\)/engine->\1/g"

git grep -l -w CONFIG | xargs sed -i -r "s/([^a-zA-Z_])CONFIG\(([]a-zA-Z_0-9.[]+)\)/\1engineConfiguration->\2/g"
2021-11-17 03:54:21 -05:00
Matthew Kennedy 7296593448 remove engine pointer passing (#3556)
* some

* more

* more

* the last?!
2021-11-16 04:15:29 -05:00
rusefi fa8a1a2eac Hyundai 2021-10-09 19:18:28 -04:00
Matthew Kennedy dab377d15d getOrZero (#3319) 2021-10-05 19:59:07 -04:00
Matthew Kennedy 34d8014202 clean up debug channels in status_loop.cpp (#3317)
* FSIO is going away eventually

* dead modes

* rx8 hmm

* break out tps debug
2021-10-05 15:27:08 -04:00
Matthew Kennedy f6e269a3ab remove old vss implementation (#3208)
* dead vss

* remove
2021-08-28 01:39:55 -04:00
alxrMironov 9d1ce540c4 Begin "vehicleSpeed" refactoring. Module switched to "FunctionalPointerSensor" class. #3106 #3107 #3108. (#3132)
* Add new sensor type "VehicleSpeed"

* Add "Vehicle speed" sensor to name list

* Add Vehicle speed sensor initialization with function pointer sensor.

* Add init_vehicle_speed_sensor.cpp to Makefile

* Replace dependencies from "getVehicleSpeed" to OOP-like "Sensor::get()"

* Add warning and TODO to "mock vehicle speed" call

* Replace get & mock "VehicleSpeed" methods in tests

* Remove #warning directive (cause error by current settings)

* Remove stray tab

* Remove explicitly type casting.

* Add "InitVehicleSpeedSensor" function declaration to init.h

* Add "VehicleSpeedSensor" initialization call into "InitNewSensors"

Co-authored-by: alxrMironov <330OMcorporative>
2021-08-12 22:16:51 +03:00
rusefillc a2e24c1a89 Honda K CAN packets #3098 2021-08-03 04:23:16 -04:00
rusefillc c4c3855739 genesis coupe 2021-07-28 17:18:44 -04:00
Matthew Kennedy d3ec2b21d1 Use pch in lots of files (#3066)
* most engine.h

* most engine_configuration

* more

* more

* more

* more

* more

* moooooore

* ok I'm done for now

* oops
2021-07-26 01:05:17 -04:00
Matthew Kennedy e3849b95d5 don't require EXTERN_ENGINE in every file (#2969)
* move enginePins

* no more extern engine

* uses

* more

* extern config too

* put this where it belongs

* include correct header

* merge
2021-07-16 18:13:33 -04:00
rusefi 2456d4f3f2 CAN docs 2021-07-13 11:55:31 -04:00
Andrey 7f9c9a02bd Gather Nissan CAN data #2278 2021-07-06 23:12:03 -04:00