Skip to content

Implementation of CAN bus #12

Description

@ethanrushh

It would be great to get an implementation of CAN bus going to check off the TODO list. Steering wheel controls are of large concern to me. How would CAN logic best be specified in a way thats easy to change?
On PQ-35 (VAG 2010-era cars), MFW controls are ID 0x5C1 and the first byte:

none(0x00),
leftPadLeft(0x03),
leftPadRight(0x02),
leftPadUp(0x06),
leftPadDown(0x07),
leftPadCall(0x1A),
mic(0x2B);

(copied from my own Flutter code)

The CAN bus will rapidly repeat the message when a button is pressed and send 0x00 when it is released, indicating a press. If we just had a simple CAN filter for each button to send to the Carlinkit, this would be problematic in this scenario as the messages would be spammed for a single physical button press.

It would also be great to be able to map something like an iDrive controller for navigation.

While I would happily do the work and submit a PR, my C++ is beginner at best. If I am able to assist in any way with information around CAN internals or logic then I would be more than happy to help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions