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

Applying hardware acceptance filters #200

Closed
rebeccaRossRobotics opened this issue Sep 14, 2022 · 1 comment
Closed

Applying hardware acceptance filters #200

rebeccaRossRobotics opened this issue Sep 14, 2022 · 1 comment
Labels

Comments

@rebeccaRossRobotics
Copy link

Hello!

I'm currently attempting to implement acceptance filters into my application (which is based off the differential_pressure_sensor demo found here). I've followed the explanation in the readme, using the API provided (canardMakeFilters and consolidateFilters functions).

After using those functions it says to call configureHardwareFilters(combined_config.extended_can_id, combined_config.extended_mask);, however I cannot find any trace of this function within libcanard or socketcan. Is this something that I am meant to implement myself?

I've looked back through the commits in libcanard to the point where the filters were added to the readme and the function doesn't exist there either.

Thank in advance

@pavel-kirienko
Copy link
Member

I cannot find any trace of this function within libcanard or socketcan. Is this something that I am meant to implement myself?

For SocketCAN you should use socketcanFilter(), otherwise you may need to implement it yourself.

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

No branches or pull requests

2 participants