Commit Graph

48 Commits

Author SHA1 Message Date
rusefillc 70e4d118ef very random progress 2022-04-16 17:04:35 -04:00
rusefillc 4d7efd7fbc
Add Intake Air Temperature, Add Fuel Level (#4028)
Co-authored-by: hugovw1976 <hugovw1976@hotmail.com>
2022-03-30 18:15:55 -04:00
rusefillc 2ec769c66d explicit error for forgotten NBC 2022-03-23 20:48:59 -04:00
rusefillc 53623142dd explicit error for forgotten NBC 2022-03-23 19:47:10 -04:00
rusefillc f490b49997 canDashboardHaltech 2022-03-23 10:53:13 -04:00
Benas Brazdziunas e9327e6f5f
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 c0e28e35bc
AIM dash TPS, CLT,IAT, and Batt V fix (#3922) 2022-02-11 18:42:51 -05:00
Matthew Kennedy f5d4690fe1
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 3b6ecb432b migrating to SensorType::Rpm API 2022-01-20 22:38:08 -05:00
Andrey 8361b6d1f6 migrating to SensorType::Rpm API 2022-01-20 22:22:52 -05:00
rusefillc 270bd239d4 B6 2022-01-10 13:06:19 -05:00
rusefillc 90419841df B6 2022-01-09 21:16:24 -05:00
rusefillc dbf5d7f6d3 BMW CAN 2021-12-19 13:23:37 -05:00
Matthew Kennedy c83e8ae5a5
AiM dash (#3673)
* aim dash

* enum
2021-12-08 07:04:59 -05:00
Andrey 940b04ab24 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 3a95e86112
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 823d9a07e0
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 8cdac4cac0
remove engine pointer passing (#3556)
* some

* more

* more

* the last?!
2021-11-16 04:15:29 -05:00
rusefi 51ffde87c2 Hyundai 2021-10-09 19:18:28 -04:00
Matthew Kennedy 9797d25b7c
getOrZero (#3319) 2021-10-05 19:59:07 -04:00
Matthew Kennedy a3bc507f9b
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 730b26d034
remove old vss implementation (#3208)
* dead vss

* remove
2021-08-28 01:39:55 -04:00
alxrMironov 7ebebd6922
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 c445392bda Honda K CAN packets #3098 2021-08-03 04:23:16 -04:00
rusefillc d9cc35bd31 genesis coupe 2021-07-28 17:18:44 -04:00
Matthew Kennedy b52d50bbf2
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 2ce7777865
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 9f93f7514a CAN docs 2021-07-13 11:55:31 -04:00
Andrey 4f0210fcda Gather Nissan CAN data #2278 2021-07-06 23:12:03 -04:00
Andrey f0939aa752 Gather Nissan CAN data #2278 2021-07-06 22:47:06 -04:00
rusefillc 9814264bdf Nissan 2021-07-05 18:37:53 -04:00
rusefi 0393b038db Nissan 2021-07-05 17:57:25 -04:00
Andrey G 0afd3c83df
Fix swap macro (#2904)
* convert swap macroses to inline functions

* clean-up workarounds
2021-07-04 18:03:17 -04:00
Andrey 31a62d664f Actually two for SWAP_UINT16 :) 2021-06-21 10:47:43 -04:00
Andrey 498358247e performance optimization by dron0gus 2021-06-21 09:27:09 -04:00
shadowm60 7d50f2bcb8
Haltech dash support (#2570)
* prep for cycletimes

* not it should build

* Defined and used cyclic messages

- defined cyclic messages for dash support
- hardcoded canwrite periodic task at 5ms to ensure correct timing

* tweaks

Update W202/VW candash cyclic config
fix canverbose cycle time configuration from TS

* Update can_dash.cpp

Haltech message definitions

* Update can_dash.cpp

* added HaltechDash

- changed CanTx cycle time
- inject cycle times to dash handlers
- implement first version of HaltechDash

* missed it

while merge with upstream/master
2021-04-24 17:40:48 -04:00
shadowm60 61446a6170
Handle can message cyclicity (#2573)
* Handle can message cyclicity

update of canDash to support different cyclicity of messages

* review updates
2021-04-23 20:16:27 -04:00
rusefillc ef65c01a40 VAG MQB 2021-03-14 17:40:33 -04:00
rusefillc d650271077 vBatt -> SensorType::vBatt #2260 2021-03-11 22:52:34 -05:00
rusefillc b431f32fbf Gather Nissan CAN data #2278 2021-02-05 19:17:22 -05:00
Matthew Kennedy e3472b4227 scope 2020-07-29 02:23:11 -07:00
kon 9cdc4f7b53
Added time message to cluster (#1524)
* second can bus, first steps

* added most important messages; no more errors

* cleaned up can messages

* second can bus, first steps

* added most important messages; no more errors

* cleaned up can messages

* post rebase/merge fixes

* more rebase/merge fixes

* even more rebase/merge fixes

* more fixes, removed auto-gen files

* removed more auto-gen files...

* pulled fix from upstream

* added RTC date/time message to cluster

* forgot to set boolean....
2020-06-20 08:11:21 -04:00
kon 03f4efa0b2
BMW E90 Kombi (#1494)
* second can bus, first steps

* added most important messages; no more errors

* cleaned up can messages

* second can bus, first steps

* added most important messages; no more errors

* cleaned up can messages

* post rebase/merge fixes

* more rebase/merge fixes

* even more rebase/merge fixes

* more fixes, removed auto-gen files

* removed more auto-gen files...
2020-06-14 16:59:43 -04:00
shadowm60 bb6aa1d82e
can_dash fix for w202 + TS enum (#1346) 2020-04-22 14:24:38 -04:00
Matthew Kennedy 7f0e07d9c7
new clt/iat: OBD and CAN dash (#1317)
* corrections

* CAN consumers

* can consume

* obd, lcd

* Revert "corrections"

This reverts commit 0003b270ce8344f7eefe7dbb87a9de7cffc5b8a8.

* iat
2020-04-18 15:53:04 -04:00
shadowm60 15f42b96df
Add w202 canDash support (#1292)
* w202CanDash

added CanDash support for w202

* fixed kinetis
2020-04-13 08:11:06 -04:00
Matthew Kennedy a193ae3e42 switch (#1250) 2020-04-02 16:26:06 -04:00
Matthew Kennedy 30cdeb0d7f
split out can tx logic (#1197)
* move to can folder

* split out can rx

* only print in debug mode

* guard on feature flag

* split out tx

* headers

* headers

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-03-19 14:01:07 -04:00