-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Honda: Car Port Acura Integra #1722
base: master
Are you sure you want to change the base?
Changes from all commits
5de22c8
e43ba07
6de5ca1
85abb35
c58a66d
c49a2b2
065830b
8987d48
5ef81c2
67a0854
15485ae
31415c6
999a989
e09ff61
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,8 @@ | |
#define HONDA_COMMON_NO_SCM_FEEDBACK_RX_CHECKS(pt_bus) \ | ||
{.msg = {{0x1A6, (pt_bus), 8, .max_counter = 3U, .frequency = 25U}, /* SCM_BUTTONS */ \ | ||
{0x296, (pt_bus), 4, .max_counter = 3U, .frequency = 25U}, { 0 }}}, \ | ||
{.msg = {{0x158, (pt_bus), 8, .max_counter = 3U, .frequency = 100U}, { 0 }, { 0 }}}, /* ENGINE_DATA */ \ | ||
{.msg = {{0x158, (pt_bus), 8, .max_counter = 3U, .frequency = 100U}, /* ENGINE_DATA */ \ | ||
{0x309, (pt_bus), 8, .max_counter = 3U, .frequency = 10U}, { 0 }}}, /* CAR_SPEED */ \ | ||
{.msg = {{0x17C, (pt_bus), 8, .max_counter = 3U, .frequency = 100U}, { 0 }, { 0 }}}, /* POWERTRAIN_DATA */ \ | ||
|
||
#define HONDA_COMMON_RX_CHECKS(pt_bus) \ | ||
|
@@ -80,7 +81,8 @@ static void honda_rx_hook(const CANPacket_t *to_push) { | |
int bus = GET_BUS(to_push); | ||
|
||
// sample speed | ||
if (addr == 0x158) { | ||
// 0x158 used for all suported Hondas except Integra (use 0x309 car_speed message) | ||
if ((addr == 0x158) || (addr == 0x309)){ | ||
Comment on lines
+84
to
+85
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. will leave for the moment. Maybe we can find another message for speed |
||
// first 2 bytes | ||
vehicle_moving = GET_BYTE(to_push, 0) | GET_BYTE(to_push, 1); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm definitely not in love with this message, it's almost certainly intended for instrument cluster display. Low frequency, high arb ID, and has a considerable response lag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can take another look to see what we have, or can use
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In a pinch, there's a message that has ABS wheel speed sensor impulse integral, and that doesn't have the 2 kmh cutoff. We'd have to calibrate it against the main reference speed, but there's precedent and support for briefly suppressing engagement for steering angle sensor calibration and the like.
The reason I asked about stock ACC is that I'd be surprised if it does FtS/SnG if its own reference source has the 2kmh cutoff.