Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Documentation #73

Closed
Nahida-IUPUI opened this issue Mar 13, 2017 · 1 comment
Closed

API Documentation #73

Nahida-IUPUI opened this issue Mar 13, 2017 · 1 comment

Comments

@Nahida-IUPUI
Copy link

Hi, I was wondering do you have any kind of documentation based on the APIs that you have developed for openPilot system, which may have the list of APIs and their functionalities (such as dependency, parameters, etc.)?

@geohot
Copy link
Contributor

geohot commented Mar 15, 2017

@espes espes closed this as completed Jun 15, 2017
geohot pushed a commit that referenced this issue Mar 17, 2018
aa067f7 Chevy Volt tweaks (#83)
a60c6c4 Toyota: change signal name in EPS_STATUS msg
ce70b1a extra setme field toyota LKAS_HUD
df2a552 toyota missing ACC_CONTROL checksum
48bb293 Revert "Toyota Prius: added a comma specific message to control the speed sent to the EPS"
5f42439 Toyota Prius: added a comma specific message to control the speed sent to the EPS
6f5e8b6 Pedal Interceptor: fault state VAL moved to _comma
efd5f5c add setme to honda ACC_HUD
97fc335 add interceptor to civic
6f40f16 update generator script to allow for multiple imports
9ca956b add setme to toyota STEERING_IPAS
e5afa57 run generator for ipas scaling
8bd1182 Toyota IPAS: proper steer angle unit
f57511e acceleration pedal for gasPressed
c8d1dbc high beams also. likely dashboard message.
9f1c78b high beams for genericToggle
f037d42 turn signal lights (and thus hazard lights)
b35bb08 turn signals
78986cf Revert "turn signals"
ba946c9 turn signals
2af3ecc Speed, braking, and distance signals
f40ab87 Set packet lengths, adding steering rate, adjusted speed
cd59bfa units for speed_right
c2fcce2 speed of right vs left side of car
4ef5fae value table for gear status
97c48e2 tighten up speed bits. brake pressue max comment.
a0cbfd1 add gear status PRNDL
0c82865 initial signals for chrysler pacifica 2017 hybrid
5ed0540 add set me to toyota LKAS_HUD
aecac5d add set me fields to toyota ACC_HUD
5417013 update toyota ACC_CONTROL fields
e91e967 Comma Pedal: made GAS_COMMAND 6 bytes
d04434a Comma Pedal: added state byte and enable bit
c30b2cd Comma Pedal: sending 2 tracks on 0x200
8f72467 Volt doors and belts status (#70)
60f8b6c add set me to lkas hud honda
3c9e335 fix honda pcm gas message size
7ca471d Add 2018 Toyota CHR dbc (#78)
637fe00 set scaling to 1 for brake and gas which have no real unit
62a88d4 Volt: switch to parsing ACC buttons from powertrain CAN (#74)
3fdd47b Volt's gas pedal only and combined gas/acc (#76)
45ec9c9 Add 2017 Honda Ridgeline (#77)
cbd186a Add 2018 Camry Hybrid DBC's (#73)
974eeaf Toyota: re-generated the files after cfbc9ae
19ea195 Toyota: more vals for LKA_STATE
cfbc9ae fixed inconsistent factor for speed in Honda dbc files
e7db803 convert all line endings to unix style

git-subtree-dir: opendbc
git-subtree-split: aa067f7
rbiasini pushed a commit that referenced this issue Mar 23, 2018
* Honda Pilot 2017 Port (#161)

* Update README.md

* Update fingerprints.py

* Update carstate.py

* Update hondacan.py

* Update interface.py

* Update interface.py

* Update interface.py

* Update README.md

* Update README.md

* Update README.md

* Update fingerprints.py

* Update carstate.py

* Update hondacan.py

* Update interface.py

* Update carstate.py

* Update hondacan.py

* Update README.md

* Update fingerprints.py

* Update carstate.py

* Update carstate.py

* Update carstate.py

* Update hondacan.py

* Update interface.py

* Update carstate.py

* Update carstate.py

* Update Pilot Fingerprint

* Update fingerprints.py

* Give pilot its own definition and not use ILX

* add pilot argument

* Add Pilot interface

* Add pilot argument

* Update interface.py

* Parse Different gear on pilot

* Add steer max

* Fixed duplication of steer max value

* Adjust PID's for steering

* Update carcontroller.py

* Change Steer Ratio and wheelbase

* Update Steer fault values

Steer fault value of 3, does not seem to effect anything

* Update Kp,Ki Ratio

* Update interface.py

* Update readme for Pilot

* add pilot

* Update fingerprints.py

* Update carstate.py

* add signals

* add signal

* fix restricting video upload to wifi

* Dibs on SAFETY_GM numerical value

To match Panda repo.

* Safety Reference for Honda Bosch

* Update fingerprints.py (#210)

Consolidated my fingerprint and removed duplicates and ordered the fingerprint for the RAV4H. Double Checked.

* Interpolate ki/kp for steering PID loop (#200)

* Interpolate ki/kp for steering PID loop

Very much needed for the Volt port: car ping-pongs with low kp
on high speeeds, and the loop is unstable with high kp on
low speeds.

Also, removes "number or array?" logic from PIController,
now that all the callers use interpolation ofr ki/kp.

* Pass speed to steering PID loop for ki/kp interpolation

* Remove unused numbers import

* Slight changes to UI and Fingerprint for Odyssey Elite (#196)

* Adding back drive time to UI

* Add fingerprint for Odyssey Elite

* Removed extended fingerprint for Elite

* Revert "Adding back drive time to UI"

This reverts commit b9b02f7.

* Squashed 'panda/' changes from 98f29a4..67d5208

67d5208 fix signedness issue in toyota safety
fe15d3f bump pandacan
11c2b08 add fault invalid
2c26e45 add sleep
27c7637 forgot the counter
3a6d7db don't hang
bfa7d2e canloader works
b259e2a can flasher is close to working
83f2edf isotp can support in softloader
7ae7c79 typo
e85cc47 forgot the selfs
190b4f6 start work on canflasher
5c655c9 add recover support
ae3457f usbflash is reliable
f7a0ab0 pedal usbflash works
585d0f9 add way to call isotp
be82899 despite it being bad code, move isotp
000715b start work on pedal canloader
626e312 pedal has a bootstub now
3662d1e redundant check
81e6b0d fix bug
083cd12 should have bounty to refactor that ish
b65d30c bad asserts
b2e6c3f isotp untested support for subaddr
30fd66a Merge pull request #93 from vntarasov/volt
06f5109 Merge pull request #94 from gregjhogan/can-printer-hex
c7d098c Merge pull request #95 from gregjhogan/setup-script
22fe250 Merge pull request #99 from gregjhogan/bit-transition-example
ba16ba3 Merge pull request #100 from gregjhogan/j2534-troubleshooting-instructions
ad08ea4 Merge pull request #90 from gregjhogan/can-forwarding
f3b6f5d added j2534 troubleshooting instructions
858d150 added script to find bits that transition from 0 to 1
c6acac8 added checking pedal interceptor message length
f7226ff added brake safety checks
d0c2634 added gas safety checks
d378e4a removed bosch safety forwarding restriction on 29 bit addresses
5c7ef9e added bosch safety hooks and forwarding
90c64b6 add note
23de8d4 Merge pull request #97 from commaai/pedal_improvements
0261641 added missing python packages
b92b235 fix bytearray encode issue
2434f1c Tweak Volt's brake pedal stickiness
e2f73d2 enable has a whole byte to itself
d5a9e1e correct checksum
f8ed9fa better names
986a14c don't alias pointers
9b8472e add watchdog support
8f0add9 handle faults
1d917f8 split gas set into 2 values, and have a fault state
1b77026 j2534 isn't alpha anymore
fbcc872 Merge pull request #92 from commaai/pedal
8a6f44b pedal is sending messages
08f464c python 3 bro is bad bro
9390961 kline checksum algo was broken...
3b7c33b add kline debug support
aa622bc init values
631ea9f better refactor
eb1fd75 add PEDAL adc sets
ccaa310 don't build with usb
8d4d763 debug console works
bd09883 comma pedal is building
75a29d5 Merge pull request #84 from gregjhogan/j2534-hds
eece37d only the panda has gmlan
9f43abe Merge pull request #89 from vntarasov/volt
5364d43 Merge pull request #88 from vntarasov/smaller-firmware
377a1ec bump version for descriptor fix
4fabdf0 Merge pull request #87 from gregjhogan/usb-multi-packet-control
8580773 fix sending WinUSB Extended Properties Feature Descriptor
6908feb Chevy Volt safety
786a004 Enable optimization to reduce firmware size
d70f43b hack to fix thinkpad
95ab1ae fixed flow control message padding
bbd04d1 updated installer
62216d0 single standalone DLL for J2534 driver
5c9138d fixed 11 bit address issue
f3b0ad2 fix LOOPBACK getting set when DATA_RATE is set
b750d36 updated README
a9a097f lowered CPU utilization
7c26a70 TIS needs unsupported protocols to return an error
42692b4 TIS doesn't like ChannelID being zero
cf126bb SET_CONFIG return error for reserved parameters
2e99dbf fix HDS issues
8203cc8 add is_grey
e946a54 add insecure_okay flag
4363b3e check webpage
4f59ded add secure mode note
6b11fb5 add autosecuring to tests
b27d185 Merge pull request #86 from commaai/better_pairing
4b53b42 elm wifi isn't an automated test
99f85cb Merge pull request #85 from gregjhogan/usb-wcid
0d38060 auto-install WinUSB device driver
c6653ca from python import
38cc0ee add wifi_secure_mode, boots in insecure mode

git-subtree-dir: panda
git-subtree-split: 67d5208

* Squashed 'opendbc/' changes from 81d9871..aa067f7

aa067f7 Chevy Volt tweaks (#83)
a60c6c4 Toyota: change signal name in EPS_STATUS msg
ce70b1a extra setme field toyota LKAS_HUD
df2a552 toyota missing ACC_CONTROL checksum
48bb293 Revert "Toyota Prius: added a comma specific message to control the speed sent to the EPS"
5f42439 Toyota Prius: added a comma specific message to control the speed sent to the EPS
6f5e8b6 Pedal Interceptor: fault state VAL moved to _comma
efd5f5c add setme to honda ACC_HUD
97fc335 add interceptor to civic
6f40f16 update generator script to allow for multiple imports
9ca956b add setme to toyota STEERING_IPAS
e5afa57 run generator for ipas scaling
8bd1182 Toyota IPAS: proper steer angle unit
f57511e acceleration pedal for gasPressed
c8d1dbc high beams also. likely dashboard message.
9f1c78b high beams for genericToggle
f037d42 turn signal lights (and thus hazard lights)
b35bb08 turn signals
78986cf Revert "turn signals"
ba946c9 turn signals
2af3ecc Speed, braking, and distance signals
f40ab87 Set packet lengths, adding steering rate, adjusted speed
cd59bfa units for speed_right
c2fcce2 speed of right vs left side of car
4ef5fae value table for gear status
97c48e2 tighten up speed bits. brake pressue max comment.
a0cbfd1 add gear status PRNDL
0c82865 initial signals for chrysler pacifica 2017 hybrid
5ed0540 add set me to toyota LKAS_HUD
aecac5d add set me fields to toyota ACC_HUD
5417013 update toyota ACC_CONTROL fields
e91e967 Comma Pedal: made GAS_COMMAND 6 bytes
d04434a Comma Pedal: added state byte and enable bit
c30b2cd Comma Pedal: sending 2 tracks on 0x200
8f72467 Volt doors and belts status (#70)
60f8b6c add set me to lkas hud honda
3c9e335 fix honda pcm gas message size
7ca471d Add 2018 Toyota CHR dbc (#78)
637fe00 set scaling to 1 for brake and gas which have no real unit
62a88d4 Volt: switch to parsing ACC buttons from powertrain CAN (#74)
3fdd47b Volt's gas pedal only and combined gas/acc (#76)
45ec9c9 Add 2017 Honda Ridgeline (#77)
cbd186a Add 2018 Camry Hybrid DBC's (#73)
974eeaf Toyota: re-generated the files after cfbc9ae
19ea195 Toyota: more vals for LKA_STATE
cfbc9ae fixed inconsistent factor for speed in Honda dbc files
e7db803 convert all line endings to unix style

git-subtree-dir: opendbc
git-subtree-split: aa067f7

* openpilot v0.4.3 release

* Squashed 'panda/' changes from 67d5208..3125232

3125232 bump version
703c0b4 Gas Interceptor: another fix to gas pressed logic
196d383 Interceptor: fixed gas pressed logic

git-subtree-dir: panda
git-subtree-split: 3125232

* Squashed 'opendbc/' changes from aa067f7..91e882d

91e882d Updating bosch dbcs to use new format and bringing in new honda changes (#82)
9b32e2e Fix Checksum errors for CH-R (#86)

git-subtree-dir: opendbc
git-subtree-split: 91e882d

* openpilot v0.4.3 release

* openpilot v0.4.3.1 release

* fix bug in canpacker for Toyotas with DSU connected (#221)

* update year on civic
rbiasini pushed a commit that referenced this issue Dec 27, 2018
* Update fingerprints.py

Taiwanese Prius Prime fingerprint was identical to the regular prime (107 msgs.), but should really have 110.  I have the correct one in there now.

* openpilot 0.4.3.1 (#220)

* Honda Pilot 2017 Port (#161)

* Update README.md

* Update fingerprints.py

* Update carstate.py

* Update hondacan.py

* Update interface.py

* Update interface.py

* Update interface.py

* Update README.md

* Update README.md

* Update README.md

* Update fingerprints.py

* Update carstate.py

* Update hondacan.py

* Update interface.py

* Update carstate.py

* Update hondacan.py

* Update README.md

* Update fingerprints.py

* Update carstate.py

* Update carstate.py

* Update carstate.py

* Update hondacan.py

* Update interface.py

* Update carstate.py

* Update carstate.py

* Update Pilot Fingerprint

* Update fingerprints.py

* Give pilot its own definition and not use ILX

* add pilot argument

* Add Pilot interface

* Add pilot argument

* Update interface.py

* Parse Different gear on pilot

* Add steer max

* Fixed duplication of steer max value

* Adjust PID's for steering

* Update carcontroller.py

* Change Steer Ratio and wheelbase

* Update Steer fault values

Steer fault value of 3, does not seem to effect anything

* Update Kp,Ki Ratio

* Update interface.py

* Update readme for Pilot

* add pilot

* Update fingerprints.py

* Update carstate.py

* add signals

* add signal

* fix restricting video upload to wifi

* Dibs on SAFETY_GM numerical value

To match Panda repo.

* Safety Reference for Honda Bosch

* Update fingerprints.py (#210)

Consolidated my fingerprint and removed duplicates and ordered the fingerprint for the RAV4H. Double Checked.

* Interpolate ki/kp for steering PID loop (#200)

* Interpolate ki/kp for steering PID loop

Very much needed for the Volt port: car ping-pongs with low kp
on high speeeds, and the loop is unstable with high kp on
low speeds.

Also, removes "number or array?" logic from PIController,
now that all the callers use interpolation ofr ki/kp.

* Pass speed to steering PID loop for ki/kp interpolation

* Remove unused numbers import

* Slight changes to UI and Fingerprint for Odyssey Elite (#196)

* Adding back drive time to UI

* Add fingerprint for Odyssey Elite

* Removed extended fingerprint for Elite

* Revert "Adding back drive time to UI"

This reverts commit b9b02f7.

* Squashed 'panda/' changes from 98f29a4..67d5208

67d5208 fix signedness issue in toyota safety
fe15d3f bump pandacan
11c2b08 add fault invalid
2c26e45 add sleep
27c7637 forgot the counter
3a6d7db don't hang
bfa7d2e canloader works
b259e2a can flasher is close to working
83f2edf isotp can support in softloader
7ae7c79 typo
e85cc47 forgot the selfs
190b4f6 start work on canflasher
5c655c9 add recover support
ae3457f usbflash is reliable
f7a0ab0 pedal usbflash works
585d0f9 add way to call isotp
be82899 despite it being bad code, move isotp
000715b start work on pedal canloader
626e312 pedal has a bootstub now
3662d1e redundant check
81e6b0d fix bug
083cd12 should have bounty to refactor that ish
b65d30c bad asserts
b2e6c3f isotp untested support for subaddr
30fd66a Merge pull request #93 from vntarasov/volt
06f5109 Merge pull request #94 from gregjhogan/can-printer-hex
c7d098c Merge pull request #95 from gregjhogan/setup-script
22fe250 Merge pull request #99 from gregjhogan/bit-transition-example
ba16ba3 Merge pull request #100 from gregjhogan/j2534-troubleshooting-instructions
ad08ea4 Merge pull request #90 from gregjhogan/can-forwarding
f3b6f5d added j2534 troubleshooting instructions
858d150 added script to find bits that transition from 0 to 1
c6acac8 added checking pedal interceptor message length
f7226ff added brake safety checks
d0c2634 added gas safety checks
d378e4a removed bosch safety forwarding restriction on 29 bit addresses
5c7ef9e added bosch safety hooks and forwarding
90c64b6 add note
23de8d4 Merge pull request #97 from commaai/pedal_improvements
0261641 added missing python packages
b92b235 fix bytearray encode issue
2434f1c Tweak Volt's brake pedal stickiness
e2f73d2 enable has a whole byte to itself
d5a9e1e correct checksum
f8ed9fa better names
986a14c don't alias pointers
9b8472e add watchdog support
8f0add9 handle faults
1d917f8 split gas set into 2 values, and have a fault state
1b77026 j2534 isn't alpha anymore
fbcc872 Merge pull request #92 from commaai/pedal
8a6f44b pedal is sending messages
08f464c python 3 bro is bad bro
9390961 kline checksum algo was broken...
3b7c33b add kline debug support
aa622bc init values
631ea9f better refactor
eb1fd75 add PEDAL adc sets
ccaa310 don't build with usb
8d4d763 debug console works
bd09883 comma pedal is building
75a29d5 Merge pull request #84 from gregjhogan/j2534-hds
eece37d only the panda has gmlan
9f43abe Merge pull request #89 from vntarasov/volt
5364d43 Merge pull request #88 from vntarasov/smaller-firmware
377a1ec bump version for descriptor fix
4fabdf0 Merge pull request #87 from gregjhogan/usb-multi-packet-control
8580773 fix sending WinUSB Extended Properties Feature Descriptor
6908feb Chevy Volt safety
786a004 Enable optimization to reduce firmware size
d70f43b hack to fix thinkpad
95ab1ae fixed flow control message padding
bbd04d1 updated installer
62216d0 single standalone DLL for J2534 driver
5c9138d fixed 11 bit address issue
f3b0ad2 fix LOOPBACK getting set when DATA_RATE is set
b750d36 updated README
a9a097f lowered CPU utilization
7c26a70 TIS needs unsupported protocols to return an error
42692b4 TIS doesn't like ChannelID being zero
cf126bb SET_CONFIG return error for reserved parameters
2e99dbf fix HDS issues
8203cc8 add is_grey
e946a54 add insecure_okay flag
4363b3e check webpage
4f59ded add secure mode note
6b11fb5 add autosecuring to tests
b27d185 Merge pull request #86 from commaai/better_pairing
4b53b42 elm wifi isn't an automated test
99f85cb Merge pull request #85 from gregjhogan/usb-wcid
0d38060 auto-install WinUSB device driver
c6653ca from python import
38cc0ee add wifi_secure_mode, boots in insecure mode

git-subtree-dir: panda
git-subtree-split: 67d5208

* Squashed 'opendbc/' changes from 81d9871..aa067f7

aa067f7 Chevy Volt tweaks (#83)
a60c6c4 Toyota: change signal name in EPS_STATUS msg
ce70b1a extra setme field toyota LKAS_HUD
df2a552 toyota missing ACC_CONTROL checksum
48bb293 Revert "Toyota Prius: added a comma specific message to control the speed sent to the EPS"
5f42439 Toyota Prius: added a comma specific message to control the speed sent to the EPS
6f5e8b6 Pedal Interceptor: fault state VAL moved to _comma
efd5f5c add setme to honda ACC_HUD
97fc335 add interceptor to civic
6f40f16 update generator script to allow for multiple imports
9ca956b add setme to toyota STEERING_IPAS
e5afa57 run generator for ipas scaling
8bd1182 Toyota IPAS: proper steer angle unit
f57511e acceleration pedal for gasPressed
c8d1dbc high beams also. likely dashboard message.
9f1c78b high beams for genericToggle
f037d42 turn signal lights (and thus hazard lights)
b35bb08 turn signals
78986cf Revert "turn signals"
ba946c9 turn signals
2af3ecc Speed, braking, and distance signals
f40ab87 Set packet lengths, adding steering rate, adjusted speed
cd59bfa units for speed_right
c2fcce2 speed of right vs left side of car
4ef5fae value table for gear status
97c48e2 tighten up speed bits. brake pressue max comment.
a0cbfd1 add gear status PRNDL
0c82865 initial signals for chrysler pacifica 2017 hybrid
5ed0540 add set me to toyota LKAS_HUD
aecac5d add set me fields to toyota ACC_HUD
5417013 update toyota ACC_CONTROL fields
e91e967 Comma Pedal: made GAS_COMMAND 6 bytes
d04434a Comma Pedal: added state byte and enable bit
c30b2cd Comma Pedal: sending 2 tracks on 0x200
8f72467 Volt doors and belts status (#70)
60f8b6c add set me to lkas hud honda
3c9e335 fix honda pcm gas message size
7ca471d Add 2018 Toyota CHR dbc (#78)
637fe00 set scaling to 1 for brake and gas which have no real unit
62a88d4 Volt: switch to parsing ACC buttons from powertrain CAN (#74)
3fdd47b Volt's gas pedal only and combined gas/acc (#76)
45ec9c9 Add 2017 Honda Ridgeline (#77)
cbd186a Add 2018 Camry Hybrid DBC's (#73)
974eeaf Toyota: re-generated the files after cfbc9ae
19ea195 Toyota: more vals for LKA_STATE
cfbc9ae fixed inconsistent factor for speed in Honda dbc files
e7db803 convert all line endings to unix style

git-subtree-dir: opendbc
git-subtree-split: aa067f7

* openpilot v0.4.3 release

* Squashed 'panda/' changes from 67d5208..3125232

3125232 bump version
703c0b4 Gas Interceptor: another fix to gas pressed logic
196d383 Interceptor: fixed gas pressed logic

git-subtree-dir: panda
git-subtree-split: 3125232

* Squashed 'opendbc/' changes from aa067f7..91e882d

91e882d Updating bosch dbcs to use new format and bringing in new honda changes (#82)
9b32e2e Fix Checksum errors for CH-R (#86)

git-subtree-dir: opendbc
git-subtree-split: 91e882d

* openpilot v0.4.3 release

* openpilot v0.4.3.1 release

* fix bug in canpacker for Toyotas with DSU connected (#221)

* update year on civic

* Revert "openpilot 0.4.3.1 (#220)"

This reverts commit 640ab12.

* Revert the changes to GM in 0.5.4 (#380) (#386)

* Revert 0.5.4 changes for GM for 18ers

* Redo the refactor of stock control msgs

* Fixed missing CONTROL_MSGS -> STOCK_CONTROL_MSGS

* Remove spacing

* Need candidate array idx

* Cleanup

Uses generic dbc
All car names in alphabetical order
All fingerprints in alphabetical order
Acknowledgement to users who have made each vehicle possible

* no unecessary comments

* Match dbc to opendbc
icmma referenced this issue in icmma/openpilot Jan 10, 2019
Set Speed whatever the maximum angle was 2.5s ago
cfranyota referenced this issue in cfranyota/openpilot-retired Jun 7, 2019
* Honda Pilot PID Tuning

* Adjustable Follow Distance w/HUD (#12)

* TR

* TR

* TR

* TR

* TR

* TR

* TR

* TR

* remove readdistancelines - causes boot error

* copying cereal

* arne's cereal

* HUD distance lines display

* capnpp add

* revert

* revert

* Set ACC HUD to KPH

* Test - set HUD_ACC distance line to 2

* revert cruise_kph

LKAS error

* TR

* TR

* TR

* TR

* TR

* TR

* TR

* TR

* remove readdistancelines - causes boot error

* copying cereal

* HUD distance lines display

* capnpp add

* revert

* revert

* Set ACC HUD to KPH

* Test - set HUD_ACC distance line to 2

* revert cruise_kph

LKAS error

* Remove custom btn var line

could be crashing the code when button pressed

* HUD distance lines

* HUD distance lines

* passing CS.CP.readdistancelines

* Hardcode hud object dist_lines var

* Initializes CS.readdistancelines before passing to hud obj

* use integer read_distance_lines instead

* Add HUD_DISTANCE_3 for horizontal HUD bars on dash

* Default to 2 bars follow distance (1.8s)

* Code Cleanup for Distance Adjustment

Cleanup

Cleanup

Cleanup

Cleanup

Cleanup

Cleanup

Cleanup

Cleanup

Cleanup

* Auto-distance at surface street speeds

Override short distance setting when slow

Override distance when slow

Override distance if slow

Override distance when slow

Override distance when slow

Increase follow distance when below 60 kph

Lead car and rel. velocity to distance override

Override distance bars

revert

Override and restore dist based on speed and accel

Step up distance when < 40 km/h and restore

Revert

When using 1 bar distance:  Slow the car down earlier and more aggressively  (#18)

* Change one bar braking profile to 3 bars

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* fake lead car vars

* fake lead vars

* Auto Distance Bar Working - tuning values

* Logging to log.txt

* Override hysteresis for one bar follow

* Only set override when decelerating

* syntax error fix for override flag

* Switch to 1.8s for softer braking

* Revert "Switch to 1.8s for softer braking"

This reverts commit d53623062ef814509db925fe4e624c3ae8aff1f1.

* Disable OTA update for safety

* Physical LKAS button disables OP steer and shows dashed lines on HUD (#19)

* Change one bar braking profile to 3 bars

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* fake lead car vars

* fake lead vars

* Auto Distance Bar Working - tuning values

* Logging to log.txt

* Override hysteresis for one bar follow

* Only set override when decelerating

* syntax error fix for override flag

* Switch to 1.8s for softer braking

* Disable LKAS

* Apply Steer = 0 when user presses LKAS button

* Add Lkas button

* Add LK mode to HUDD data object

* Add Dashed Lanes to HUD

* Adjust HDD object

* return LKAS var in CarState

* Return LK var to CS

* Syntax error fix

* Update carcontroller.py

* testing hud object hardcoded hud_lanes and lkMode

* Restore accidentally deleted steer command

* Update carcontroller.py

* Update carcontroller.py

* Don't show solid lanes if OP steering disabled

* Dashed lines fix during engagement

eliminate steering alert when lkas disabled

lkas button logic cleanup

Reverse the dashed-lane indicator

No steering alert if LKAS disabled

revert Alert - LKAS errors during steer disable

Disable audible alert when steering disabled

Delete CS.aEgo < -0.5 override condition

* Remove chime disable when steering overriden

One bar profile change to 1.8s if < 65 kph

Simplified

chime instead of beep disable for LK override

* Adjust BRAKE_STOPPING_TARGET to 0.25

Keeps the brake pump from going crazy at a stop

* Add relative velocity to auto distance for 1 bar setting (#26)

* CAMERA_OFFSET = 0.08

* Revert Cost_long to comma value of 0.1

* Do not override to 1.8s when accel from stop

* Update logic for override distance bars

* Override distance when < 65kph and v_rel not > 5

* Use rel acceleration to reset to 1 bar

* Use vRel

* Update planner.py

* v_lead - vEgo > 1

* vLead - vEgo = -1

* vLead-vEgo < -1.5

* Cleanup Arne's code for distance

* vLead - vEgo < 1.25

* Back to vLead - vEgo < -1

* Disable OP steering and audio alarm when blinkers on (#28)

* LKAS disable when blinkers are on

* Update carcontroller.py

* Update carcontroller.py

* fix syntax error

* Critical alarm if cruise disengages while braking (#32)

* Update pathplanner.py

* Loud alert in case cruise disables when braking

* re-add if statement on speed for loud alert

* Update interface.py

* increase stopping distance to car by 1.5m

* Increase stopping distance to 2m

* Revert CAMERA_OFFSET to 0.06 (comma default)

* Lane width reduction to 2.85m

* Reduce tailgating for one bar distance at surface street speeds & code cleanup (#43)

* Gernby's Lane width filter fix (#41)

* Fix lane width filtering

* Fixed lane width filtering

* CAMERA_OFFSET = 0.08

* Minimum distance for one bar distance setting

* Don't tailgate at slow speeds with 1 bar distance

* x_lead < 5 only

* x_lead < 5 syntax fix

* self.v_rel < -1 or (x_lead < 10 and self.v_rel >= -1 and self.v_rel < 1)

* Tail gating auto distance change

* x_lead < 7.5 and self.v_rel >= -1 and self.v_rel < 0.2

* self.lastTR > 0 re-adding reinitialization

* Revert "Gernby's Lane width filter fix (#41)"

This reverts commit d081cfd8a05d2eb32e0148d477c806e65662dea7.

* Increase min distance to 10m for auto distance

* Auto distance code cleanup

* Add lead car fast approaching autodistance

* Auto distance Code cleanup

* Don't re-initialize MPC if already initialized

* self.lastTR != instead of >

* Initialize TR = 1.8

* include if statements vs just assigning boolean

* switch to 1 and 0 for TRUE AND FALSE

* Revert "switch to 1 and 0 for TRUE AND FALSE"

This reverts commit 58dcf718cdc3fca636229bf29942669670cb4487.

* Revert "include if statements vs just assigning boolean"

This reverts commit da7b5fa5088d62e78ba57d9e4c01e89160e77b9e.

* Revert "Initialize TR = 1.8"

This reverts commit f9c2571faeb0acaab818bcff146a2a397c0f07ff.

* Initialize TR=1.8 inside override loop

* Cleanup TR assignment for override loop

* Code Cleanup

* Syntax error

* Syntax error

* if statements for autodistance vars

* tr-last assignment indent

* CS.readdistancelines assignment to self.tr_last

* remove else MPC init

* Flatten out elif ladder for autodistance

* Removed shrinking_fast stopping for now

Braking is too sudden with 3 bar distance when radar detects car.  Shrinking gap takes care of this with 2 bar distance.

* Code Cleanup

* Revert CAMERA_OFFSET to Comma default of 0.06

* Merge Gernby's Resonant Steering (#51)

* Learn_angle_steer min max increased to +/-7 degs

* Increase min one bar distance to 12m for autodist

* Merge Gernby's Feed-Forward-Accel-Rate Branch (#49)

* Fixed feed-forward to consider steer_offset

* fixed a small oops on types

* Testing strategies for zero-crossing

* Moved angle stat collection to latcontrol.py

* First version that runs

* added outbound interface for feed-forward table

* First working

* Added more metrics

* Adjusted parameter timing

* performance tweaks

* Cleanup

* untested tweaks

* minor tweaks

* many untested changes

* going the other way with some things...

* Best yet

* cleaned up personalized "stuff"

* more cleanup for general use

* untested: minor adjustment to further reduce noise

* Fixed defect in desired angle interpolation

* some cleanup

* reverted change to Ki

* Reverted changes to manager.py

* Added steering rate consideration to latcontrol

* cleaned up for PR

* Fixed merge

* Testing approach when desired angle close to actual

* trying rate-based feed-forward

* added self-tuning parms for rate and angle FF

* fixed trim logic, and persisted to flash

* working amazingly well

* decreased time lapse for angle-based FF adjust

* many tweaks, self-tuning is a bitch

* simulteneous dual mode feedforward working very well

* added angular accelleration limit

* added super awesome angular accel limit

* non-specific save

* switching directions again

* oops

* ugly code with amazing results

* awesome, but untested after some cleanup

* more cleanup

* cleanup of the cleanup?  Need to test

* works amazingly well ... big O face

* cleanup

* I wish git was batter for cleanup

* removed Steer Offset because Pilot no likey

* Increase tailgating 1 bar resume to 0.5 m/s

* Gernby's resonant steering v2

* fixed an oops for non-bosch hondas

* CAMERA_OFFSET = 0.08

* More conservative tailgating distance and resume

* More conservative auto-distance for 1 bar setting

* Revert CAMERA_OFFSET to 0.06

* Revert auto-distance for 1 bar distance setting

* Revert "Merge Gernby's Resonant Steering" (#53)

* Revert "Revert auto-distance for 1 bar distance setting"

This reverts commit b7e5fb5.

* Revert "Revert CAMERA_OFFSET to 0.06"

This reverts commit 05cf21d.

* Revert "Merge Gernby's Resonant Steering (#51)"

This reverts commit d35aa19.

* better crowned road centering: learn_angle +/-7

* Implement csouers 67-70% charging to preserve batt

* slightly harder braking when tailgating

* x_lead < 5 or (x_lead < 17.5 and self.v_rel < 0.5)

* Proper alerts on Eon and disable flashing HUD alert when blinkers on or LKAS off (#63)

* Disable steer alert when LKAS off

* Display steering unavailable on Eon when LKAS off

* Revert chime disable in favor of new method

* x_lead < 6 or (x_lead < 17.5 and self.v_rel < 0.5)

* logic correction on HUD alert

* blinkers on disables HUD alarm

* Add Manual Steering alert for LKAS Off mode

* Call manual steering alert when LKAS off

* Call blinkers alert when blinkers on

* Add blinkers alert

* Adjust Blinkers alert logic to include LKAS mode

* Fix blinker logic

* Add new steering required alerts to capnp

* Trace LKAS / LDW error

* Disable hud alert when LKAS off or blinkers on

* Disable HUD alerts if LKAS off or blinkers on

* Disable other ACC alert if LKAS off or blinkers on

* Revert testing of steering required alert override

* Disable steer saturate alert if blinkers on or LKAS off

* Disable steer sat alert if LKAS off or blinkers on

* Revert steerSaturated logic

* disable steer limit alert when LKAS off or blinkers on

* Fix Syntax error

* Revert  steerLimit alert disable

* Disable steerSat alert when blinkers on or LKAS off

* Revert stopping distance to default for pedal lurch

* Re-intro 2m stopping distance

* x_lead = 6

* Revert "Implement csouers 67-70% charging to preserve batt"

This reverts commit e3249be.

* Merge with latest kegman-devel without Gernby's FF steer (#72)

* Honda Pilot PID Tuning

* Adjustable Follow Distance w/HUD (#12)

* TR

* TR

* TR

* TR

* TR

* TR

* TR

* TR

* remove readdistancelines - causes boot error

* copying cereal

* arne's cereal

* HUD distance lines display

* capnpp add

* revert

* revert

* Set ACC HUD to KPH

* Test - set HUD_ACC distance line to 2

* revert cruise_kph

LKAS error

* TR

* TR

* TR

* TR

* TR

* TR

* TR

* TR

* remove readdistancelines - causes boot error

* copying cereal

* HUD distance lines display

* capnpp add

* revert

* revert

* Set ACC HUD to KPH

* Test - set HUD_ACC distance line to 2

* revert cruise_kph

LKAS error

* Remove custom btn var line

could be crashing the code when button pressed

* HUD distance lines

* HUD distance lines

* passing CS.CP.readdistancelines

* Hardcode hud object dist_lines var

* Initializes CS.readdistancelines before passing to hud obj

* use integer read_distance_lines instead

* Add HUD_DISTANCE_3 for horizontal HUD bars on dash

* Default to 2 bars follow distance (1.8s)

* Code Cleanup for Distance Adjustment

Cleanup

Cleanup

Cleanup

Cleanup

Cleanup

Cleanup

Cleanup

Cleanup

Cleanup

* Implement csouers 67-70% charging to preserve batt

* Auto-distance at surface street speeds

Override short distance setting when slow

Override distance when slow

Override distance if slow

Override distance when slow

Override distance when slow

Increase follow distance when below 60 kph

Lead car and rel. velocity to distance override

Override distance bars

revert

Override and restore dist based on speed and accel

Step up distance when < 40 km/h and restore

Revert

When using 1 bar distance:  Slow the car down earlier and more aggressively  (#18)

* Change one bar braking profile to 3 bars

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* fake lead car vars

* fake lead vars

* Auto Distance Bar Working - tuning values

* Logging to log.txt

* Override hysteresis for one bar follow

* Only set override when decelerating

* syntax error fix for override flag

* Switch to 1.8s for softer braking

* Revert "Switch to 1.8s for softer braking"

This reverts commit d53623062ef814509db925fe4e624c3ae8aff1f1.

* Disable OTA update for safety

* Physical LKAS button disables OP steer and shows dashed lines on HUD (#19)

* Change one bar braking profile to 3 bars

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* fake lead car vars

* fake lead vars

* Auto Distance Bar Working - tuning values

* Logging to log.txt

* Override hysteresis for one bar follow

* Only set override when decelerating

* syntax error fix for override flag

* Switch to 1.8s for softer braking

* Disable LKAS

* Apply Steer = 0 when user presses LKAS button

* Add Lkas button

* Add LK mode to HUDD data object

* Add Dashed Lanes to HUD

* Adjust HDD object

* return LKAS var in CarState

* Return LK var to CS

* Syntax error fix

* Update carcontroller.py

* testing hud object hardcoded hud_lanes and lkMode

* Restore accidentally deleted steer command

* Update carcontroller.py

* Update carcontroller.py

* Don't show solid lanes if OP steering disabled

* Dashed lines fix during engagement

eliminate steering alert when lkas disabled

lkas button logic cleanup

Reverse the dashed-lane indicator

No steering alert if LKAS disabled

revert Alert - LKAS errors during steer disable

Disable audible alert when steering disabled

Delete CS.aEgo < -0.5 override condition

* Remove chime disable when steering overriden

One bar profile change to 1.8s if < 65 kph

Simplified

chime instead of beep disable for LK override

* Adjust BRAKE_STOPPING_TARGET to 0.25

Keeps the brake pump from going crazy at a stop

* Add relative velocity to auto distance for 1 bar setting (#26)

* CAMERA_OFFSET = 0.08

* Revert Cost_long to comma value of 0.1

* Do not override to 1.8s when accel from stop

* Update logic for override distance bars

* Override distance when < 65kph and v_rel not > 5

* Use rel acceleration to reset to 1 bar

* Use vRel

* Update planner.py

* v_lead - vEgo > 1

* vLead - vEgo = -1

* vLead-vEgo < -1.5

* Cleanup Arne's code for distance

* vLead - vEgo < 1.25

* Back to vLead - vEgo < -1

* Disable OP steering and audio alarm when blinkers on (#28)

* LKAS disable when blinkers are on

* Update carcontroller.py

* Update carcontroller.py

* fix syntax error

* Critical alarm if cruise disengages while braking (#32)

* Update pathplanner.py

* Loud alert in case cruise disables when braking

* re-add if statement on speed for loud alert

* Update interface.py

* increase stopping distance to car by 1.5m

* Increase stopping distance to 2m

* Revert CAMERA_OFFSET to 0.06 (comma default)

* Lane width reduction to 2.85m

* Reduce tailgating for one bar distance at surface street speeds & code cleanup (#43)

* Gernby's Lane width filter fix (#41)

* Fix lane width filtering

* Fixed lane width filtering

* CAMERA_OFFSET = 0.08

* Minimum distance for one bar distance setting

* Don't tailgate at slow speeds with 1 bar distance

* x_lead < 5 only

* x_lead < 5 syntax fix

* self.v_rel < -1 or (x_lead < 10 and self.v_rel >= -1 and self.v_rel < 1)

* Tail gating auto distance change

* x_lead < 7.5 and self.v_rel >= -1 and self.v_rel < 0.2

* self.lastTR > 0 re-adding reinitialization

* Revert "Gernby's Lane width filter fix (#41)"

This reverts commit d081cfd8a05d2eb32e0148d477c806e65662dea7.

* Increase min distance to 10m for auto distance

* Auto distance code cleanup

* Add lead car fast approaching autodistance

* Auto distance Code cleanup

* Don't re-initialize MPC if already initialized

* self.lastTR != instead of >

* Initialize TR = 1.8

* include if statements vs just assigning boolean

* switch to 1 and 0 for TRUE AND FALSE

* Revert "switch to 1 and 0 for TRUE AND FALSE"

This reverts commit 58dcf718cdc3fca636229bf29942669670cb4487.

* Revert "include if statements vs just assigning boolean"

This reverts commit da7b5fa5088d62e78ba57d9e4c01e89160e77b9e.

* Revert "Initialize TR = 1.8"

This reverts commit f9c2571faeb0acaab818bcff146a2a397c0f07ff.

* Initialize TR=1.8 inside override loop

* Cleanup TR assignment for override loop

* Code Cleanup

* Syntax error

* Syntax error

* if statements for autodistance vars

* tr-last assignment indent

* CS.readdistancelines assignment to self.tr_last

* remove else MPC init

* Flatten out elif ladder for autodistance

* Removed shrinking_fast stopping for now

Braking is too sudden with 3 bar distance when radar detects car.  Shrinking gap takes care of this with 2 bar distance.

* Code Cleanup

* Revert CAMERA_OFFSET to Comma default of 0.06

* Merge Gernby's Resonant Steering (#51)

* Learn_angle_steer min max increased to +/-7 degs

* Increase min one bar distance to 12m for autodist

* Merge Gernby's Feed-Forward-Accel-Rate Branch (#49)

* Fixed feed-forward to consider steer_offset

* fixed a small oops on types

* Testing strategies for zero-crossing

* Moved angle stat collection to latcontrol.py

* First version that runs

* added outbound interface for feed-forward table

* First working

* Added more metrics

* Adjusted parameter timing

* performance tweaks

* Cleanup

* untested tweaks

* minor tweaks

* many untested changes

* going the other way with some things...

* Best yet

* cleaned up personalized "stuff"

* more cleanup for general use

* untested: minor adjustment to further reduce noise

* Fixed defect in desired angle interpolation

* some cleanup

* reverted change to Ki

* Reverted changes to manager.py

* Added steering rate consideration to latcontrol

* cleaned up for PR

* Fixed merge

* Testing approach when desired angle close to actual

* trying rate-based feed-forward

* added self-tuning parms for rate and angle FF

* fixed trim logic, and persisted to flash

* working amazingly well

* decreased time lapse for angle-based FF adjust

* many tweaks, self-tuning is a bitch

* simulteneous dual mode feedforward working very well

* added angular accelleration limit

* added super awesome angular accel limit

* non-specific save

* switching directions again

* oops

* ugly code with amazing results

* awesome, but untested after some cleanup

* more cleanup

* cleanup of the cleanup?  Need to test

* works amazingly well ... big O face

* cleanup

* I wish git was batter for cleanup

* removed Steer Offset because Pilot no likey

* Increase tailgating 1 bar resume to 0.5 m/s

* Gernby's resonant steering v2

* fixed an oops for non-bosch hondas

* CAMERA_OFFSET = 0.08

* More conservative tailgating distance and resume

* More conservative auto-distance for 1 bar setting

* Revert CAMERA_OFFSET to 0.06

* Revert auto-distance for 1 bar distance setting

* Revert "Merge Gernby's Resonant Steering" (#53)

* Revert "Revert auto-distance for 1 bar distance setting"

This reverts commit b7e5fb5.

* Revert "Revert CAMERA_OFFSET to 0.06"

This reverts commit 05cf21d.

* Revert "Merge Gernby's Resonant Steering (#51)"

This reverts commit d35aa19.

* better crowned road centering: learn_angle +/-7

* slightly harder braking when tailgating

* Merge Gernby's Resonant FF steering (#62)

* Fixed feed-forward to consider steer_offset

* fixed a small oops on types

* Testing strategies for zero-crossing

* Moved angle stat collection to latcontrol.py

* First version that runs

* added outbound interface for feed-forward table

* First working

* Added more metrics

* Adjusted parameter timing

* performance tweaks

* Cleanup

* untested tweaks

* minor tweaks

* many untested changes

* going the other way with some things...

* Best yet

* cleaned up personalized "stuff"

* more cleanup for general use

* untested: minor adjustment to further reduce noise

* Fixed defect in desired angle interpolation

* some cleanup

* reverted change to Ki

* Reverted changes to manager.py

* Added steering rate consideration to latcontrol

* cleaned up for PR

* Fixed merge

* Testing approach when desired angle close to actual

* trying rate-based feed-forward

* added self-tuning parms for rate and angle FF

* fixed trim logic, and persisted to flash

* working amazingly well

* decreased time lapse for angle-based FF adjust

* many tweaks, self-tuning is a bitch

* simulteneous dual mode feedforward working very well

* added angular accelleration limit

* added super awesome angular accel limit

* non-specific save

* switching directions again

* oops

* ugly code with amazing results

* awesome, but untested after some cleanup

* more cleanup

* cleanup of the cleanup?  Need to test

* works amazingly well ... big O face

* cleanup

* I wish git was batter for cleanup

* hopefully proper merge of merged fixes of merge

* fixed an oops for non-bosch hondas

* added steer rate to future state calculation

* added actual acceleration to future projected state

* fixed projected angle error for PIF

* untested ...

* added comments

* Boost kF for pilot by 30%

* x_lead < 7.5 or (x_lead < 17.5 and self.v_rel < 1)

* x_lead < 7.5 or (x_lead < 17.5 and self.v_rel < 0.5)

* if x_lead < 5 or (x_lead < 17.5 and self.v_rel < 0.5)

* Boost KF for all

* x_lead < 17.5 and self.v_rel < 0.75

* x_lead < 5 or (x_lead < 17.5 and self.v_rel < 0.5)

* more conservative kF for Civics

* Civic kF 0.00003 - Pilot kF 0.000078

* Revert Civic kF values to default

* x_lead < 6 or (x_lead < 17.5 and self.v_rel < 0.5)

* Proper alerts on Eon and disable flashing HUD alert when blinkers on or LKAS off (#63)

* Disable steer alert when LKAS off

* Display steering unavailable on Eon when LKAS off

* Revert chime disable in favor of new method

* x_lead < 6 or (x_lead < 17.5 and self.v_rel < 0.5)

* logic correction on HUD alert

* blinkers on disables HUD alarm

* Add Manual Steering alert for LKAS Off mode

* Call manual steering alert when LKAS off

* Call blinkers alert when blinkers on

* Add blinkers alert

* Adjust Blinkers alert logic to include LKAS mode

* Fix blinker logic

* Add new steering required alerts to capnp

* Trace LKAS / LDW error

* Disable hud alert when LKAS off or blinkers on

* Disable HUD alerts if LKAS off or blinkers on

* Disable other ACC alert if LKAS off or blinkers on

* Revert testing of steering required alert override

* Disable steer saturate alert if blinkers on or LKAS off

* Disable steer sat alert if LKAS off or blinkers on

* Revert steerSaturated logic

* disable steer limit alert when LKAS off or blinkers on

* Fix Syntax error

* Revert  steerLimit alert disable

* Disable steerSat alert when blinkers on or LKAS off

* Revert stopping distance to default for pedal lurch

* Re-intro 2m stopping distance

* Reduce steerKpV for Civics by 20% for Gernby FF steering

* Reduce kPV for civic v2

* Reduce Civic kP further

* Merge Gernby's latest Feed forward resonant (#68)

* Fixed feed-forward to consider steer_offset

* fixed a small oops on types

* Testing strategies for zero-crossing

* Moved angle stat collection to latcontrol.py

* First version that runs

* added outbound interface for feed-forward table

* First working

* Added more metrics

* Adjusted parameter timing

* performance tweaks

* Cleanup

* untested tweaks

* minor tweaks

* many untested changes

* going the other way with some things...

* Best yet

* cleaned up personalized "stuff"

* more cleanup for general use

* untested: minor adjustment to further reduce noise

* Fixed defect in desired angle interpolation

* some cleanup

* reverted change to Ki

* Reverted changes to manager.py

* Added steering rate consideration to latcontrol

* cleaned up for PR

* Fixed merge

* Testing approach when desired angle close to actual

* trying rate-based feed-forward

* added self-tuning parms for rate and angle FF

* fixed trim logic, and persisted to flash

* working amazingly well

* decreased time lapse for angle-based FF adjust

* many tweaks, self-tuning is a bitch

* simulteneous dual mode feedforward working very well

* added angular accelleration limit

* added super awesome angular accel limit

* non-specific save

* switching directions again

* oops

* ugly code with amazing results

* awesome, but untested after some cleanup

* more cleanup

* cleanup of the cleanup?  Need to test

* works amazingly well ... big O face

* cleanup

* I wish git was batter for cleanup

* hopefully proper merge of merged fixes of merge

* fixed an oops for non-bosch hondas

* added steer rate to future state calculation

* added actual acceleration to future projected state

* fixed projected angle error for PIF

* untested ...

* added comments

* completely UNtested

* untested merge

* battling shitty git

* git is sucking giant monkey balls

* Trying to figure out what git did...

* still trying to un-git myself

* Finally got it fixed, works awesome!

* Hopefully not corrupted by git

* hopefully fixed white space corruption

* working again, hopefully resolved git issue

* Revert "Implement csouers 67-70% charging to preserve batt"

This reverts commit e3249be.

* Revert "Implement csouers 67-70% charging to preserve batt"

This reverts commit e3249be.

* Prevent lurching from stop with Comma Pedal

* Prevent lurching from stop with Comma Pedal 2

* Dev UI from P Lee

* delete print() statements

* LaC.lateral_error = 1.0 * np.clip.....

* Pedal lurch prevention v4

* Increase 1 bar city tailing distance by 1 m

* More conservative braking in city for 1 and 2 bar distance

* Revert "LaC.lateral_error = 1.0 * np.clip....."

This reverts commit 82b9ff9.

* Pedal lurch prevention v5

* 1 or 2 bar:  more conservative braking

* Revert "Reduce Civic kP further"

This reverts commit af9bb3f.

* Revert "Reduce kPV for civic v2"

This reverts commit 84e25f3.

* Revert "Reduce steerKpV for Civics by 20% for Gernby FF steering"

This reverts commit 083741a.

* Revert "Revert Civic kF values to default"

This reverts commit 2d5ee5e.

* Revert "Civic kF 0.00003 - Pilot kF 0.000078"

This reverts commit c9434f3.

* Revert "more conservative kF for Civics"

This reverts commit 61613c2.

* Revert "Boost KF for all"

This reverts commit 8858f51.

* Revert "Boost kF for pilot by 30%"

This reverts commit d7220b2.

* Revert "Merge Gernby's Resonant FF steering (#62)"

This reverts commit 234e57d.

* Merge with kegman-gernbyFFsteer-latest (#69)

* Honda Pilot PID Tuning

* Adjustable Follow Distance w/HUD (#12)

* TR

* TR

* TR

* TR

* TR

* TR

* TR

* TR

* remove readdistancelines - causes boot error

* copying cereal

* arne's cereal

* HUD distance lines display

* capnpp add

* revert

* revert

* Set ACC HUD to KPH

* Test - set HUD_ACC distance line to 2

* revert cruise_kph

LKAS error

* TR

* TR

* TR

* TR

* TR

* TR

* TR

* TR

* remove readdistancelines - causes boot error

* copying cereal

* HUD distance lines display

* capnpp add

* revert

* revert

* Set ACC HUD to KPH

* Test - set HUD_ACC distance line to 2

* revert cruise_kph

LKAS error

* Remove custom btn var line

could be crashing the code when button pressed

* HUD distance lines

* HUD distance lines

* passing CS.CP.readdistancelines

* Hardcode hud object dist_lines var

* Initializes CS.readdistancelines before passing to hud obj

* use integer read_distance_lines instead

* Add HUD_DISTANCE_3 for horizontal HUD bars on dash

* Default to 2 bars follow distance (1.8s)

* Code Cleanup for Distance Adjustment

Cleanup

Cleanup

Cleanup

Cleanup

Cleanup

Cleanup

Cleanup

Cleanup

Cleanup

* Auto-distance at surface street speeds

Override short distance setting when slow

Override distance when slow

Override distance if slow

Override distance when slow

Override distance when slow

Increase follow distance when below 60 kph

Lead car and rel. velocity to distance override

Override distance bars

revert

Override and restore dist based on speed and accel

Step up distance when < 40 km/h and restore

Revert

When using 1 bar distance:  Slow the car down earlier and more aggressively  (#18)

* Change one bar braking profile to 3 bars

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* fake lead car vars

* fake lead vars

* Auto Distance Bar Working - tuning values

* Logging to log.txt

* Override hysteresis for one bar follow

* Only set override when decelerating

* syntax error fix for override flag

* Switch to 1.8s for softer braking

* Revert "Switch to 1.8s for softer braking"

This reverts commit d53623062ef814509db925fe4e624c3ae8aff1f1.

* Disable OTA update for safety

* Physical LKAS button disables OP steer and shows dashed lines on HUD (#19)

* Change one bar braking profile to 3 bars

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* Update planner.py

* fake lead car vars

* fake lead vars

* Auto Distance Bar Working - tuning values

* Logging to log.txt

* Override hysteresis for one bar follow

* Only set override when decelerating

* syntax error fix for override flag

* Switch to 1.8s for softer braking

* Disable LKAS

* Apply Steer = 0 when user presses LKAS button

* Add Lkas button

* Add LK mode to HUDD data object

* Add Dashed Lanes to HUD

* Adjust HDD object

* return LKAS var in CarState

* Return LK var to CS

* Syntax error fix

* Update carcontroller.py

* testing hud object hardcoded hud_lanes and lkMode

* Restore accidentally deleted steer command

* Update carcontroller.py

* Update carcontroller.py

* Don't show solid lanes if OP steering disabled

* Dashed lines fix during engagement

eliminate steering alert when lkas disabled

lkas button logic cleanup

Reverse the dashed-lane indicator

No steering alert if LKAS disabled

revert Alert - LKAS errors during steer disable

Disable audible alert when steering disabled

Delete CS.aEgo < -0.5 override condition

* Remove chime disable when steering overriden

One bar profile change to 1.8s if < 65 kph

Simplified

chime instead of beep disable for LK override

* Adjust BRAKE_STOPPING_TARGET to 0.25

Keeps the brake pump from going crazy at a stop

* Add relative velocity to auto distance for 1 bar setting (#26)

* CAMERA_OFFSET = 0.08

* Revert Cost_long to comma value of 0.1

* Do not override to 1.8s when accel from stop

* Update logic for override distance bars

* Override distance when < 65kph and v_rel not > 5

* Use rel acceleration to reset to 1 bar

* Use vRel

* Update planner.py

* v_lead - vEgo > 1

* vLead - vEgo = -1

* vLead-vEgo < -1.5

* Cleanup Arne's code for distance

* vLead - vEgo < 1.25

* Back to vLead - vEgo < -1

* Disable OP steering and audio alarm when blinkers on (#28)

* LKAS disable when blinkers are on

* Update carcontroller.py

* Update carcontroller.py

* fix syntax error

* Critical alarm if cruise disengages while braking (#32)

* Update pathplanner.py

* Loud alert in case cruise disables when braking

* re-add if statement on speed for loud alert

* Update interface.py

* increase stopping distance to car by 1.5m

* Increase stopping distance to 2m

* Revert CAMERA_OFFSET to 0.06 (comma default)

* Lane width reduction to 2.85m

* Reduce tailgating for one bar distance at surface street speeds & code cleanup (#43)

* Gernby's Lane width filter fix (#41)

* Fix lane width filtering

* Fixed lane width filtering

* CAMERA_OFFSET = 0.08

* Minimum distance for one bar distance setting

* Don't tailgate at slow speeds with 1 bar distance

* x_lead < 5 only

* x_lead < 5 syntax fix

* self.v_rel < -1 or (x_lead < 10 and self.v_rel >= -1 and self.v_rel < 1)

* Tail gating auto distance change

* x_lead < 7.5 and self.v_rel >= -1 and self.v_rel < 0.2

* self.lastTR > 0 re-adding reinitialization

* Revert "Gernby's Lane width filter fix (#41)"

This reverts commit d081cfd8a05d2eb32e0148d477c806e65662dea7.

* Increase min distance to 10m for auto distance

* Auto distance code cleanup

* Add lead car fast approaching autodistance

* Auto distance Code cleanup

* Don't re-initialize MPC if already initialized

* self.lastTR != instead of >

* Initialize TR = 1.8

* include if statements vs just assigning boolean

* switch to 1 and 0 for TRUE AND FALSE

* Revert "switch to 1 and 0 for TRUE AND FALSE"

This reverts commit 58dcf718cdc3fca636229bf29942669670cb4487.

* Revert "include if statements vs just assigning boolean"

This reverts commit da7b5fa5088d62e78ba57d9e4c01e89160e77b9e.

* Revert "Initialize TR = 1.8"

This reverts commit f9c2571faeb0acaab818bcff146a2a397c0f07ff.

* Initialize TR=1.8 inside override loop

* Cleanup TR assignment for override loop

* Code Cleanup

* Syntax error

* Syntax error

* if statements for autodistance vars

* tr-last assignment indent

* CS.readdistancelines assignment to self.tr_last

* remove else MPC init

* Flatten out elif ladder for autodistance

* Removed shrinking_fast stopping for now

Braking is too sudden with 3 bar distance when radar detects car.  Shrinking gap takes care of this with 2 bar distance.

* Code Cleanup

* Revert CAMERA_OFFSET to Comma default of 0.06

* Merge Gernby's Resonant Steering (#51)

* Learn_angle_steer min max increased to +/-7 degs

* Increase min one bar distance to 12m for autodist

* Merge Gernby's Feed-Forward-Accel-Rate Branch (#49)

* Fixed feed-forward to consider steer_offset

* fixed a small oops on types

* Testing strategies for zero-crossing

* Moved angle stat collection to latcontrol.py

* First version that runs

* added outbound interface for feed-forward table

* First working

* Added more metrics

* Adjusted parameter timing

* performance tweaks

* Cleanup

* untested tweaks

* minor tweaks

* many untested changes

* going the other way with some things...

* Best yet

* cleaned up personalized "stuff"

* more cleanup for general use

* untested: minor adjustment to further reduce noise

* Fixed defect in desired angle interpolation

* some cleanup

* reverted change to Ki

* Reverted changes to manager.py

* Added steering rate consideration to latcontrol

* cleaned up for PR

* Fixed merge

* Testing approach when desired angle close to actual

* trying rate-based feed-forward

* added self-tuning parms for rate and angle FF

* fixed trim logic, and persisted to flash

* working amazingly well

* decreased time lapse for angle-based FF adjust

* many tweaks, self-tuning is a bitch

* simulteneous dual mode feedforward working very well

* added angular accelleration limit

* added super awesome angular accel limit

* non-specific save

* switching directions again

* oops

* ugly code with amazing results

* awesome, but untested after some cleanup

* more cleanup

* cleanup of the cleanup?  Need to test

* works amazingly well ... big O face

* cleanup

* I wish git was batter for cleanup

* removed Steer Offset because Pilot no likey

* Increase tailgating 1 bar resume to 0.5 m/s

* Gernby's resonant steering v2

* fixed an oops for non-bosch hondas

* CAMERA_OFFSET = 0.08

* More conservative tailgating distance and resume

* More conservative auto-distance for 1 bar setting

* Revert CAMERA_OFFSET to 0.06

* Revert auto-distance for 1 bar distance setting

* Revert "Merge Gernby's Resonant Steering" (#53)

* Revert "Revert auto-distance for 1 bar distance setting"

This reverts commit b7e5fb5.

* Revert "Revert CAMERA_OFFSET to 0.06"

This reverts commit 05cf21d.

* Revert "Merge Gernby's Resonant Steering (#51)"

This reverts commit d35aa19.

* better crowned road centering: learn_angle +/-7

* Implement csouers 67-70% charging to preserve batt

* slightly harder braking when tailgating

* x_lead < 5 or (x_lead < 17.5 and self.v_rel < 0.5)

* Proper alerts on Eon and disable flashing HUD alert when blinkers on or LKAS off (#63)

* Disable steer alert when LKAS off

* Display steering unavailable on Eon when LKAS off

* Revert chime disable in favor of new method

* x_lead < 6 or (x_lead < 17.5 and self.v_rel < 0.5)

* logic correction on HUD alert

* blinkers on disables HUD alarm

* Add Manual Steering alert for LKAS Off mode

* Call manual steering alert when LKAS off

* Call blinkers alert when blinkers on

* Add blinkers alert

* Adjust Blinkers alert logic to include LKAS mode

* Fix blinker logic

* Add new steering required alerts to capnp

* Trace LKAS / LDW error

* Disable hud alert when LKAS off or blinkers on

* Disable HUD alerts if LKAS off or blinkers on

* Disable other ACC alert if LKAS off or blinkers on

* Revert testing of steering required alert override

* Disable steer saturate alert if blinkers on or LKAS off

* Disable steer sat alert if LKAS off or blinkers on

* Revert steerSaturated logic

* disable steer limit alert when LKAS off or blinkers on

* Fix Syntax error

* Revert  steerLimit alert disable

* Disable steerSat alert when blinkers on or LKAS off

* Revert stopping distance to default for pedal lurch

* Re-intro 2m stopping distance

* x_lead = 6

* Merge Gernby's latest Feed forward resonant (#68)

* Fixed feed-forward to consider steer_offset

* fixed a small oops on types

* Testing strategies for zero-crossing

* Moved angle stat collection to latcontrol.py

* First version that runs

* added outbound interface for feed-forward table

* First working

* Added more metrics

* Adjusted parameter timing

* performance tweaks

* Cleanup

* untested tweaks

* minor tweaks

* many untested changes

* going the other way with some things...

* Best yet

* cleaned up personalized "stuff"

* more cleanup for general use

* untested: minor adjustment to further reduce noise

* Fixed defect in desired angle interpolation

* some cleanup

* reverted change to Ki

* Reverted changes to manager.py

* Added steering rate consideration to latcontrol

* cleaned up for PR

* Fixed merge

* Testing approach when desired angle close to actual

* trying rate-based feed-forward

* added self-tuning parms for rate and angle FF

* fixed trim logic, and persisted to flash

* working amazingly well

* decreased time lapse for angle-based FF adjust

* many tweaks, self-tuning is a bitch

* simulteneous dual mode feedforward working very well

* added angular accelleration limit

* added super awesome angular accel limit

* non-specific save

* switching directions again

* oops

* ugly code with amazing results

* awesome, but untested after some cleanup

* more cleanup

* cleanup of the cleanup?  Need to test

* works amazingly well ... big O face

* cleanup

* I wish git was batter for cleanup

* hopefully proper merge of merged fixes of merge

* fixed an oops for non-bosch hondas

* added steer rate to future state calculation

* added actual acceleration to future projected state

* fixed projected angle error for PIF

* untested ...

* added comments

* completely UNtested

* untested merge

* battling shitty git

* git is sucking giant monkey balls

* Trying to figure out what git did...

* still trying to un-git myself

* Finally got it fixed, works awesome!

* Hopefully not corrupted by git

* hopefully fixed white space corruption

* working again, hopefully resolved git issue

* Revert "Implement csouers 67-70% charging to preserve batt"

This reverts commit e3249be.

* Revert "Merge with kegman-gernbyFFsteer-latest (#69)"

This reverts commit 99031cf.

* Pedal lurch prevention v6

* Pedal lurch prevention v7

* Revert visiond back to 0.5.6

* Revert to 0.5.6 visiond

* Brake sooner if approaching a car fast

* Pedal lurch prevention v8 - almost there

* Even more conservative braking for 2 and 3 bars

* Pedal lurch prevention v9

* 1 bar and 2 bar tuning

* syntax error 1 bar / 2 bar tuning

* Revert "syntax error 1 bar / 2 bar tuning"

This reverts commit eb4bbe1.

* Revert "1 bar and 2 bar tuning"

This reverts commit 663ece1.

* Revert "Even more conservative braking for 2 and 3 bars"

This reverts commit 4bb4cf9.

* Revert "Brake sooner if approaching a car fast"

This reverts commit 1ff5347.

* Revert "1 or 2 bar:  more conservative braking"

This reverts commit 0959a0b.

* Revert "More conservative braking in city for 1 and 2 bar distance"

This reverts commit dbae46d.

* Pedal lurch prevention v10

* Lurch prevention v11

* BRAKE_STOPPING_TARGET reduced to 0.1 from 0.25

* visiond-wiggly 0.5.4

* visiond 0.5.6

* Fix comma pedal grinding noise when braking

commit 5dd7fb3dbe01c8854eb4784080cf7108fc970cb9
Date:   Wed Dec 19 19:34:55 2018 -0500

    Revert "BRAKE_STOPPING_TARGET reduced to 0.1 from 0.25"

    This reverts commit b0d75c5.

commit f5cec844471cd4eb650450d88e6118ff818d5edb
Date:   Wed Dec 19 19:34:16 2018 -0500

    Revert "BRAKE_STOPPING_TARGET to 0.0"

    This reverts commit 7a6b3a67826dd1fd5b942b06eb7c1d15b0f3c23a.

commit 1e07b857438aaf983e36f45aa3653ab61aadc17f
Date:   Wed Dec 19 00:38:09 2018 -0500

    Update carstate.py

commit f6b3ba0696f5192167780579a9daa05a39bd30e2
Date:   Wed Dec 19 00:33:54 2018 -0500

    Pedal grind further Code cleanup

commit 0afbcd38396ffd863d963194dda8ddb8e9f2bf02
Date:   Wed Dec 19 00:16:15 2018 -0500

    Pedal Grinding further code cleanup

commit 33b4ce0e38441463846d593861183f96a154e11e
Date:   Tue Dec 18 16:48:03 2018 -0500

    Grinding noise code cleanup

commit f6edcfacd22fe503330adcd0bef2b9aa9a742838
Date:   Tue Dec 18 16:19:25 2018 -0500

    Fix Syntax error

commit 2a74863cf4e6d93e3b390d41fa427243f28ebdfa
Date:   Tue Dec 18 16:12:46 2018 -0500

    Pedal noise mitigation v1

commit 7a6b3a67826dd1fd5b942b06eb7c1d15b0f3c23a
Date:   Tue Dec 18 10:53:11 2018 -0500

    BRAKE_STOPPING_TARGET to 0.0

* Revert "Fix comma pedal grinding noise when braking"

This reverts commit 454b918.

* Fix Pedal Grinding noise (#70)

* BRAKE_STOPPING_TARGET to 0.0

* Pedal noise mitigation v1

* Fix Syntax error

* Grinding noise code cleanup

* Pedal Grinding further code cleanup

* Pedal grind further Code cleanup

* Update carstate.py

* Revert "BRAKE_STOPPING_TARGET to 0.0"

This reverts commit 7a6b3a67826dd1fd5b942b06eb7c1d15b0f3c23a.

* Revert "BRAKE_STOPPING_TARGET reduced to 0.1 from 0.25"

This reverts commit b0d75c5.

* Add visiond.057

* Revert "Merge branch 'kegman-devel' of https://github.com/kegman/openpilot into kegman-devel"

This reverts commit 612695b, reversing
changes made to 6531ed2.

* Fix Comma Pedal Grinding sound when braking

commit 5dd7fb3dbe01c8854eb4784080cf7108fc970cb9
Date:   Wed Dec 19 19:34:55 2018 -0500

    Revert "BRAKE_STOPPING_TARGET reduced to 0.1 from 0.25"

    This reverts commit b0d75c5.

commit f5cec844471cd4eb650450d88e6118ff818d5edb
Date:   Wed Dec 19 19:34:16 2018 -0500

    Revert "BRAKE_STOPPING_TARGET to 0.0"

    This reverts commit 7a6b3a67826dd1fd5b942b06eb7c1d15b0f3c23a.

commit 1e07b857438aaf983e36f45aa3653ab61aadc17f
Date:   Wed Dec 19 00:38:09 2018 -0500

    Update carstate.py

commit f6b3ba0696f5192167780579a9daa05a39bd30e2
Date:   Wed Dec 19 00:33:54 2018 -0500

    Pedal grind further Code cleanup

commit 0afbcd38396ffd863d963194dda8ddb8e9f2bf02
Date:   Wed Dec 19 00:16:15 2018 -0500

    Pedal Grinding further code cleanup

commit 33b4ce0e38441463846d593861183f96a154e11e
Date:   Tue Dec 18 16:48:03 2018 -0500

    Grinding noise code cleanup

commit f6edcfacd22fe503330adcd0bef2b9aa9a742838
Date:   Tue Dec 18 16:19:25 2018 -0500

    Fix Syntax error

commit 2a74863cf4e6d93e3b390d41fa427243f28ebdfa
Date:   Tue Dec 18 16:12:46 2018 -0500

    Pedal noise mitigation v1

commit 7a6b3a67826dd1fd5b942b06eb7c1d15b0f3c23a
Date:   Tue Dec 18 10:53:11 2018 -0500

    BRAKE_STOPPING_TARGET to 0.0

* Simplified pedal grinding noise fix code

* Grinding noise fix applied only to Honda Pilots

* Indent fix

* self.CP

* Tweak braking for 1 / 2 bar distance and Fix Grinding for Pilot only (#71)

* Tweaks to 1 and 2 bar distance braking

* Code cleanup

* Apply grinding fix for Honda Pilot only

* Indent fix

* self.CP

* Revert "Merge branch 'kegman-gernbyFFsteer-latest' into kegman-devel"

This reverts commit 78fa3e4, reversing
changes made to 0171235.
avolmensky pushed a commit to avolmensky/openpilot that referenced this issue Jun 10, 2019
* Create toyota_camry_hybrid_2018_pt_generated.dbc

* Create toyota_camry_hybrid_2018_pt.dbc
rav4kumar referenced this issue in rav4kumar/openpilot Mar 26, 2020
* update README.md

* add my files

* interface updates

* add more libaries and camera offset

* add fix for steer unavailable

* add capnp related code

* finish updates to controlsd

* add dynamic gas

* add dynamic follow

* more updates

* more updates

* offroad warning removal

* run all test

* add ui and updated

* use touch_poll already called

* don't pop out the sidebar when touching df button

* use lqr for 17 corolla

* fix

* add origin and branch tags

* don't clean

* camerad zmq_poll, also recover from EAGAIN

* Fix kernel logging in logcatd, fixes commaai#957

* Revert "fix"

This reverts commit 7c9ec3f.

* Revert "don't pop out the sidebar when touching df button"

This reverts commit a0ef34b.

* new test

* add debugger

* fix

* fix

* don't activate sidebar if df button touched

* so this should work

* send df button status

* send df button status

* test

* debug

* debug

* debug

* debug

* test

* test

* test

* test

* ...will this finally work then?

* ...of course it works all of a sudden

* tuning

* fix

* tuning

* tuning

* tuning

* test

* add padding

* padding only for y

* clean up

* move

* add padding to x again

* don't run all

* use cache

* remove

* add scons_cache file to run scons with cache enabled on demand

* quicker

* test

* test

* revert

Co-authored-by: Willem Melching <willem.melching@gmail.com>
dragonpilot referenced this issue in dragonpilot-community/dragonpilot Apr 7, 2020
* Update fingerprints.py

Taiwanese Prius Prime fingerprint was identical to the regular prime (107 msgs.), but should really have 110.  I have the correct one in there now.

* openpilot 0.4.3.1 (commaai#220)

* Honda Pilot 2017 Port (#161)

* Update README.md

* Update fingerprints.py

* Update carstate.py

* Update hondacan.py

* Update interface.py

* Update interface.py

* Update interface.py

* Update README.md

* Update README.md

* Update README.md

* Update fingerprints.py

* Update carstate.py

* Update hondacan.py

* Update interface.py

* Update carstate.py

* Update hondacan.py

* Update README.md

* Update fingerprints.py

* Update carstate.py

* Update carstate.py

* Update carstate.py

* Update hondacan.py

* Update interface.py

* Update carstate.py

* Update carstate.py

* Update Pilot Fingerprint

* Update fingerprints.py

* Give pilot its own definition and not use ILX

* add pilot argument

* Add Pilot interface

* Add pilot argument

* Update interface.py

* Parse Different gear on pilot

* Add steer max

* Fixed duplication of steer max value

* Adjust PID's for steering

* Update carcontroller.py

* Change Steer Ratio and wheelbase

* Update Steer fault values

Steer fault value of 3, does not seem to effect anything

* Update Kp,Ki Ratio

* Update interface.py

* Update readme for Pilot

* add pilot

* Update fingerprints.py

* Update carstate.py

* add signals

* add signal

* fix restricting video upload to wifi

* Dibs on SAFETY_GM numerical value

To match Panda repo.

* Safety Reference for Honda Bosch

* Update fingerprints.py (#210)

Consolidated my fingerprint and removed duplicates and ordered the fingerprint for the RAV4H. Double Checked.

* Interpolate ki/kp for steering PID loop (#200)

* Interpolate ki/kp for steering PID loop

Very much needed for the Volt port: car ping-pongs with low kp
on high speeeds, and the loop is unstable with high kp on
low speeds.

Also, removes "number or array?" logic from PIController,
now that all the callers use interpolation ofr ki/kp.

* Pass speed to steering PID loop for ki/kp interpolation

* Remove unused numbers import

* Slight changes to UI and Fingerprint for Odyssey Elite (#196)

* Adding back drive time to UI

* Add fingerprint for Odyssey Elite

* Removed extended fingerprint for Elite

* Revert "Adding back drive time to UI"

This reverts commit b9b02f7.

* Squashed 'panda/' changes from 98f29a4..67d5208

67d5208 fix signedness issue in toyota safety
fe15d3f bump pandacan
11c2b08 add fault invalid
2c26e45 add sleep
27c7637 forgot the counter
3a6d7db don't hang
bfa7d2e canloader works
b259e2a can flasher is close to working
83f2edf isotp can support in softloader
7ae7c79 typo
e85cc47 forgot the selfs
190b4f6 start work on canflasher
5c655c9 add recover support
ae3457f usbflash is reliable
f7a0ab0 pedal usbflash works
585d0f9 add way to call isotp
be82899 despite it being bad code, move isotp
000715b start work on pedal canloader
626e312 pedal has a bootstub now
3662d1e redundant check
81e6b0d fix bug
083cd12 should have bounty to refactor that ish
b65d30c bad asserts
b2e6c3f isotp untested support for subaddr
30fd66a Merge pull request #93 from vntarasov/volt
06f5109 Merge pull request #94 from gregjhogan/can-printer-hex
c7d098c Merge pull request #95 from gregjhogan/setup-script
22fe250 Merge pull request #99 from gregjhogan/bit-transition-example
ba16ba3 Merge pull request #100 from gregjhogan/j2534-troubleshooting-instructions
ad08ea4 Merge pull request #90 from gregjhogan/can-forwarding
f3b6f5d added j2534 troubleshooting instructions
858d150 added script to find bits that transition from 0 to 1
c6acac8 added checking pedal interceptor message length
f7226ff added brake safety checks
d0c2634 added gas safety checks
d378e4a removed bosch safety forwarding restriction on 29 bit addresses
5c7ef9e added bosch safety hooks and forwarding
90c64b6 add note
23de8d4 Merge pull request #97 from commaai/pedal_improvements
0261641 added missing python packages
b92b235 fix bytearray encode issue
2434f1c Tweak Volt's brake pedal stickiness
e2f73d2 enable has a whole byte to itself
d5a9e1e correct checksum
f8ed9fa better names
986a14c don't alias pointers
9b8472e add watchdog support
8f0add9 handle faults
1d917f8 split gas set into 2 values, and have a fault state
1b77026 j2534 isn't alpha anymore
fbcc872 Merge pull request #92 from commaai/pedal
8a6f44b pedal is sending messages
08f464c python 3 bro is bad bro
9390961 kline checksum algo was broken...
3b7c33b add kline debug support
aa622bc init values
631ea9f better refactor
eb1fd75 add PEDAL adc sets
ccaa310 don't build with usb
8d4d763 debug console works
bd09883 comma pedal is building
75a29d5 Merge pull request #84 from gregjhogan/j2534-hds
eece37d only the panda has gmlan
9f43abe Merge pull request #89 from vntarasov/volt
5364d43 Merge pull request #88 from vntarasov/smaller-firmware
377a1ec bump version for descriptor fix
4fabdf0 Merge pull request #87 from gregjhogan/usb-multi-packet-control
8580773 fix sending WinUSB Extended Properties Feature Descriptor
6908feb Chevy Volt safety
786a004 Enable optimization to reduce firmware size
d70f43b hack to fix thinkpad
95ab1ae fixed flow control message padding
bbd04d1 updated installer
62216d0 single standalone DLL for J2534 driver
5c9138d fixed 11 bit address issue
f3b0ad2 fix LOOPBACK getting set when DATA_RATE is set
b750d36 updated README
a9a097f lowered CPU utilization
7c26a70 TIS needs unsupported protocols to return an error
42692b4 TIS doesn't like ChannelID being zero
cf126bb SET_CONFIG return error for reserved parameters
2e99dbf fix HDS issues
8203cc8 add is_grey
e946a54 add insecure_okay flag
4363b3e check webpage
4f59ded add secure mode note
6b11fb5 add autosecuring to tests
b27d185 Merge pull request #86 from commaai/better_pairing
4b53b42 elm wifi isn't an automated test
99f85cb Merge pull request #85 from gregjhogan/usb-wcid
0d38060 auto-install WinUSB device driver
c6653ca from python import
38cc0ee add wifi_secure_mode, boots in insecure mode

git-subtree-dir: panda
git-subtree-split: 67d5208

* Squashed 'opendbc/' changes from 81d9871..aa067f7

aa067f7 Chevy Volt tweaks (#83)
a60c6c4 Toyota: change signal name in EPS_STATUS msg
ce70b1a extra setme field toyota LKAS_HUD
df2a552 toyota missing ACC_CONTROL checksum
48bb293 Revert "Toyota Prius: added a comma specific message to control the speed sent to the EPS"
5f42439 Toyota Prius: added a comma specific message to control the speed sent to the EPS
6f5e8b6 Pedal Interceptor: fault state VAL moved to _comma
efd5f5c add setme to honda ACC_HUD
97fc335 add interceptor to civic
6f40f16 update generator script to allow for multiple imports
9ca956b add setme to toyota STEERING_IPAS
e5afa57 run generator for ipas scaling
8bd1182 Toyota IPAS: proper steer angle unit
f57511e acceleration pedal for gasPressed
c8d1dbc high beams also. likely dashboard message.
9f1c78b high beams for genericToggle
f037d42 turn signal lights (and thus hazard lights)
b35bb08 turn signals
78986cf Revert "turn signals"
ba946c9 turn signals
2af3ecc Speed, braking, and distance signals
f40ab87 Set packet lengths, adding steering rate, adjusted speed
cd59bfa units for speed_right
c2fcce2 speed of right vs left side of car
4ef5fae value table for gear status
97c48e2 tighten up speed bits. brake pressue max comment.
a0cbfd1 add gear status PRNDL
0c82865 initial signals for chrysler pacifica 2017 hybrid
5ed0540 add set me to toyota LKAS_HUD
aecac5d add set me fields to toyota ACC_HUD
5417013 update toyota ACC_CONTROL fields
e91e967 Comma Pedal: made GAS_COMMAND 6 bytes
d04434a Comma Pedal: added state byte and enable bit
c30b2cd Comma Pedal: sending 2 tracks on 0x200
8f72467 Volt doors and belts status (#70)
60f8b6c add set me to lkas hud honda
3c9e335 fix honda pcm gas message size
7ca471d Add 2018 Toyota CHR dbc (#78)
637fe00 set scaling to 1 for brake and gas which have no real unit
62a88d4 Volt: switch to parsing ACC buttons from powertrain CAN (#74)
3fdd47b Volt's gas pedal only and combined gas/acc (#76)
45ec9c9 Add 2017 Honda Ridgeline (#77)
cbd186a Add 2018 Camry Hybrid DBC's (#73)
974eeaf Toyota: re-generated the files after cfbc9ae
19ea195 Toyota: more vals for LKA_STATE
cfbc9ae fixed inconsistent factor for speed in Honda dbc files
e7db803 convert all line endings to unix style

git-subtree-dir: opendbc
git-subtree-split: aa067f7

* openpilot v0.4.3 release

* Squashed 'panda/' changes from 67d5208..3125232

3125232 bump version
703c0b4 Gas Interceptor: another fix to gas pressed logic
196d383 Interceptor: fixed gas pressed logic

git-subtree-dir: panda
git-subtree-split: 3125232

* Squashed 'opendbc/' changes from aa067f7..91e882d

91e882d Updating bosch dbcs to use new format and bringing in new honda changes (#82)
9b32e2e Fix Checksum errors for CH-R (#86)

git-subtree-dir: opendbc
git-subtree-split: 91e882d

* openpilot v0.4.3 release

* openpilot v0.4.3.1 release

* fix bug in canpacker for Toyotas with DSU connected (commaai#221)

* update year on civic

* Revert "openpilot 0.4.3.1 (commaai#220)"

This reverts commit 32ebfde2ddf907878aa2faca2624ec23e495b5f7.

* Revert the changes to GM in 0.5.4 (commaai#380) (commaai#386)

* Revert 0.5.4 changes for GM for 18ers

* Redo the refactor of stock control msgs

* Fixed missing CONTROL_MSGS -> STOCK_CONTROL_MSGS

* Remove spacing

* Need candidate array idx

* Cleanup

Uses generic dbc
All car names in alphabetical order
All fingerprints in alphabetical order
Acknowledgement to users who have made each vehicle possible

* no unecessary comments

* Match dbc to opendbc
weimou pushed a commit to SFtoLA/openpilot that referenced this issue May 6, 2021
* start messaging tests

* test drain sock

* recv with retry

* test retry blocking

* fix zmq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants