I thought I was missing a rounding in Mazda code, but it turned
out to be a missing rounding after the recent event refactoring
Python3 interpreter:
>>> print(" %d %d" % (1.6,1.4))
1 1
>>> print(" %d %d" % (round(1.6),round(1.4)))
2 1
>>> print(" %d %d" % (int(round(1.6)),round(1.4)))
2 1
>>> print(" %d %d" % (int(round(1.6)),int(round(1.4))))
2 1
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* it's a class
* more refactor
* remove that
* car interface should create that
* that too
* not a dict
* don't create permanent events every iteration
* break up long lines
* fix honda
* small optimization
* less long lines
* dict is faster
* latcontrol less args
* longcontrol less args
* update profiling script
* few optimizations
* create events together
* clean up
* more clean up
* remove comment
* clean up
* simplify state transition
* more clean up
* update comments
* unit test for alert width
* fix scale
* comment
* fix offending alert text
* rename
* update process replay refs
Co-authored-by: Willem Melching <willem.melching@gmail.com>
* split out leaf and xtrail
* Add brake pedal
* This should work
* Fix test car models + bump panda
* Combined cruise enabled detection in single message
* Proper frequency checks
* Add doors
* Blinkers and doors
* Seatbelt
* Gear
* Add cancel message
* Unify steering pressed
* Remove angle limit
* Add steer saturation alert for angle based control
* Add set speed
* Change wheel speed factor
* Fix offset in set speed
* Timeout on engage for steer saturated
* Put counter back
* try cancel using seatbelt
* Try different cancel message
* Rename cancel signal
* Add LKAS alert
* Add missing fingerprint values
* Update test car models
* Add some comments
* fade ll out and in
* bug fixes
* pretty important fixes
* safer in case model misses desire input
* Safer float compares
Co-authored-by: Willem Melching <willem.melching@gmail.com>
* too many if
* unused
* whitespace
* key
* sefldrive/car/*
* no more gctx
* lower
* start abstracting common events
* all cars
* start small
* all cars
* reverse gear
* wrongCarMode
* wrongGear
* espDisabled
* steerUnvailable
* make linter happy
* c isn't used
* fix esp_disabled in VW
* update ref
* more red
* more cleanup
* fix subaru
* update ref
* add LaneChangeEnabled param and settings toggle
* Read lane change toggle in pathplanner.py
Co-authored-by: Willem Melching <willem.melching@gmail.com>