Skip to content

how to enable motor fault pins? #399

Answered by terjeio
yuuahmad asked this question in Q&A
Discussion options

You must be logged in to vote

Currently there is no general driver support for motor fault input(s).
Until general driver support is added either board specific or plugin code has to be added handling the inputs and forward events to the core by setting the appropriate flags in a control_signals_t struct, and calling hal.control.interrupt_callback with this when a fault is detected.

The most immediate (and flexible) solution would be a generic plugin that claims one or more interrupt capable aux inputs for the signal(s). This would work for all drivers provided that the selected board map assigns such inputs.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by yuuahmad
Comment options

You must be logged in to vote
1 reply
@yuuahmad
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants