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>
old-commit-hash: 73db079199
* use memory cache
* use template function to return buffer
* inline function
* const size_t
* use std::vector instead of kj::array
old-commit-hash: cdb48cc180
* Slower rate for ACC cancel msg to avoid cruise disable
Sending ACC cancel message at 10hz may end up disabling
main cruise state. That is because stoc ACC use the same
signal for both functions. If cruise is already enabled
the signal canceles it, otherwise cruise is disabled.
10hz seems to be still fast in some cases not allowing
the state to sync up between OP and the Stock state.
5hz avoids that issue. Also, the resume message was also
updated to 5hz as that seems to work better as well.
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* Round up 27.96 to 28mph
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
old-commit-hash: 41fbce5906
* Added Rogue 2019/Leaf 2019 fingerprints
* Added Rogue as new car. Updated readme
* Added route to test_car_models.py. Fixed if statements to check against rogue/x-trail
* Fixed paste error
* Merged Leaf fingerprints
* Assume Rogue is MPH until we work out the mph/kph bit
old-commit-hash: 9fc826cb5c
commit 012049274fd5573bdc5d2d0f198817646dfd5a1b
Author: Willem Melching <willem.melching@gmail.com>
Date: Sat May 30 10:40:49 2020 -0700
update ref
commit d50cc2d81f
Author: Jason Young <jyoung8607@gmail.com>
Date: Sat May 30 10:32:25 2020 -0400
Discard no-longer-used import
commit c092e6f509
Author: Jason Young <jyoung8607@gmail.com>
Date: Sat May 30 10:21:57 2020 -0400
Improved tune from community
old-commit-hash: b5a2cec913
* Call to gmtime is potentially dangerous
* Revert "Call to gmtime is potentially dangerous"
This reverts commit cc531e4e19.
* Call to gmtime is potentially dangerous
* oops
* not a pointer
* Little identation fix
old-commit-hash: 3ddbb7fe5b