Andrey Gusakov
94395de16a
pin_repository: fix for boards with gapes in brain_pin_e
...
Some additional math should be done to convert brain_pin_e to index
and back in case board do not have all chips exist in enum.
ifdef hell is for Kinetis board that uses its own brain_pin_e enum
2020-04-06 14:30:14 -04:00
Andrey Gusakov
e74cd6ae96
pin_repository: fix compilation for devices without TLE8888
2020-04-06 14:29:02 -04:00
rusefi
3888ffc007
smart gpio clean-up
2020-04-06 14:28:08 -04:00
rusefi
c1ab5ca585
smart gpio clean-up
2020-04-06 14:13:29 -04:00
rusefi
7fe8a494ef
a bit of header clean-up
2020-04-06 13:05:30 -04:00
rusefi
070f6b52b8
code style
2020-04-06 12:34:21 -04:00
rusEfi
d564b4e475
clean-up by Dron0Gus
2020-04-06 11:55:44 -04:00
Matthew Kennedy
43d38a6691
TPS Initialization Testing ( #1264 )
...
* test support
* stub for tests
* plumbing so we can test this
* add test
* comments
2020-04-05 09:10:08 -04:00
Matthew Kennedy
7a0ee7d6dc
improve pin error messages ( #1252 )
...
* improve error msg
* emulator pin names too
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-03 15:00:59 -04:00
Matthew Kennedy
54082ac8e1
switch ( #1250 )
2020-04-02 16:26:06 -04:00
rusefi
b40d4d588d
code style
2020-04-01 21:32:21 -04:00
Matthew Kennedy
8235d8d765
Fully switch acc pedal to new sensors ( #1212 )
...
* proxy sensor
* header
* idle
* can
* settings
* remove old mocking
* remove old impl
* etb
* oops, gotta actually register it
* fix test
* structured bindings ftw!
* driver intent for stepper
* tear out old
* oops too much
2020-04-01 20:21:03 -04:00
rusefi
cc35e8a9b0
code style
2020-04-01 19:00:56 -04:00
Matthew Kennedy
90ec387cdb
Sensor-via-CAN ( #1241 )
...
* CAN sensor impl
* subscription hookup
* printing
* init
* inject stamp
* don't init const field
* clarify
* guard for non-CAN builds
* fix merge
* guard with EFI_CANBUS_SLAVE
* headers, guards
* include
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-03-31 23:21:05 -04:00
rusEfi
3f55b0db59
CAN progress
2020-03-31 20:57:52 -04:00
rusefi
fe604f71b8
CAN progress
2020-03-31 16:49:19 -04:00
Matthew Kennedy
67f01ff9c7
Friendlier pin names ( #1233 )
...
* enable TS error readout
* friendlier text for common errors
* improve comment
* friendlier ADC errors
* ign/inj names
* more pin names
2020-03-29 19:07:07 -04:00
Matthew Kennedy
0ac3e06149
cleanup extern mess ( #1237 )
...
* cleanup
* move outside define
2020-03-29 19:06:03 -04:00
Matthew Kennedy
d37b5f0494
Show fatal error text in TS (the right way) ( #1232 )
...
* enable TS error readout
* friendlier text for common errors
* improve comment
2020-03-29 07:27:36 -04:00
rusefi
c6ac5ed888
progress
2020-03-28 20:56:58 -04:00
Matthew Kennedy
b7033bbde9
Finally rename injector_central to bench_test ( #1229 )
...
* bench test rename
* rename consumers
* good lord what are all of these externs doing
* fix tests
2020-03-26 08:03:55 -04:00
Matthew Kennedy
8642a0a6c7
TS cleanup pass ( #1225 )
...
* remove biquad config
* fuel pump clarity
* one code usage
* minimal generate for ci
* and don't build it either
* remove commented out code
2020-03-25 23:00:17 -04:00
Matthew Kennedy
2e12329199
Default to applyPinState ( #1219 )
...
* make applyPinState default
* consumers
* format
2020-03-25 18:14:09 -04:00
Matthew Kennedy
45f5afe871
Remove old monitoring timestamps ( #1217 )
...
* remove monitoring timestamps
* adv map
* fuel calc
* map avg
* printing
* spark logic
* hip 9011
* new traces
* s
* missed a few
2020-03-24 20:19:19 -04:00
rusefi
74b191d6d0
random code from Ola
2020-03-24 19:14:16 -04:00
rusefi
bd4cf816e8
progress
2020-03-23 23:15:44 -04:00
rusefi
e58f00692e
start/stop progress
2020-03-23 10:32:41 -04:00
Matthew Kennedy
61c4d0fe83
save some ram ( #1211 )
...
* remove dead stuff
* why store those pointers twice?
2020-03-22 19:06:29 -04:00
rusefi
fb115578dc
start/stop
2020-03-20 20:45:35 -04:00
rusefi
b55a892e3a
At least read all TPS inputs
2020-03-20 09:53:45 -04:00
Matthew Kennedy
4096483aec
custom verbose can format ( #1200 )
...
* config
* ts
* default cfg
* hand generate
* tx struct helper
* add data sending
* wire up
* value_or helper
* add file
* more sensors
* header
* compactify
* add status frame
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-03-19 17:58:46 -04:00
Matthew Kennedy
9f5eece62d
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
Matthew Kennedy
f2994d6889
split out can rx logic ( #1196 )
...
* move to can folder
* split out can rx
* only print in debug mode
* guard on feature flag
* headers
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-03-19 08:43:37 -04:00
Matthew Kennedy
1b4d98a7f0
Add new CanTxMessage class, consume in OBD2 ( #1186 )
...
* relocate
* include path
* simulator makefile
* fix mre while we're at it
* it would help if I fixed it right
* add can_msg
* convert obd2
* guard properly
* better include order
* docs & headers
* inject CAN device
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-03-18 22:07:41 -04:00
rusefi
b7324c9a51
proteus-f4 was requested
2020-03-18 11:37:53 -04:00
Matthew Kennedy
214285facc
Deduplicate mpu_util headers ( #1187 )
...
* this flag did nothing
* header dedupe
* mre fix again
* get all dependencies in mpu_util.h
* guard can/spi
* more dedupe
* pragma once
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-03-13 18:48:22 -04:00
Matthew Kennedy
f18e848d9c
remove ( #1188 )
...
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-03-13 17:19:29 -04:00
Matthew Kennedy
9a81b7d2c5
Move can_hw.cpp in to drivers folder ( #1184 )
...
* relocate
* include path
* simulator makefile
* fix mre while we're at it
* it would help if I fixed it right
2020-03-13 09:50:43 -04:00
Matthew Kennedy
adac5fba78
Control stepper with dual H-bridges ( #1121 )
...
* divorce stepper from hw
* oops
* ptr not ref
* hbridge stepper
* typo
* hook up twin h
* hook up hardware
* use config field
* hook up motor repo
* guard tests
* whoops
* ok fix for real
* ok that's the right thing
* do full stepping
Co-authored-by: Matthew Kennedy <matthew@mck-mbp-15.stagpad.local>
Co-authored-by: Matthew Kennedy <matthew@mck-mbp-15.local>
2020-03-10 15:18:29 -04:00
Matthew Kennedy
8ceb5c8996
fix icu trigger polarity ( #1177 )
...
* fix polarity
* fix confusing names
2020-03-08 08:57:21 -04:00
Matthew Kennedy
53a39f5e17
don't use standard sprintf/snprintf ( #1174 )
2020-03-07 10:28:18 -05:00
Matthew Kennedy
6d8eedf9ca
Split out EtbHardware ( #1168 )
...
* start tear out motor
* fix
* nuke reconfig
* guard for test
* test fixing
* format, condense headers
* fix todos
* undo todo
* format
2020-03-03 17:56:50 -05:00
Matthew Kennedy
eb46d7bd58
warnings ( #1169 )
2020-03-03 08:37:02 -05:00
rusEfi
040e040b4a
verboseTLE8888
2020-02-27 02:11:20 -05:00
Matthew Kennedy
a2a5b40ced
Support disabling most/all features ( #1162 )
...
* this flag did nothing
* guard features properly
2020-02-26 18:16:35 -05:00
Matthew Kennedy
d5034ab8c2
this flag did nothing ( #1161 )
2020-02-26 17:30:02 -05:00
Matthew Kennedy
f513706b53
insert dsb on flash write ( #1160 )
2020-02-25 23:52:11 -05:00
rusEfi
c2ab5f4871
more mc33816
2020-02-25 22:38:08 -05:00
rusefi
6b3228b9f1
TEST_33816
2020-02-25 21:35:21 -05:00
rusefi
83d7085f40
code style & pleasing LGTM
2020-02-18 08:16:19 -05:00