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
Call updateInit() before writing motor command data #12866
Call updateInit() before writing motor command data #12866
Conversation
@SteveCEvans please update the cherry-pick :) |
src/main/drivers/dshot_command.c
Outdated
@@ -182,6 +182,7 @@ void dshotCommandWrite(uint8_t index, uint8_t motorCount, uint8_t command, dshot | |||
|
|||
uint8_t repeats = 1; | |||
timeUs_t delayAfterCommandUs = DSHOT_COMMAND_DELAY_US; | |||
motorVTable_t vTable = motorGetVTable(); |
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.
Should this be updated to:
motorVTable_t vTable = motorGetVTable(); | |
motorVTable_t *vTable = motorGetVTable(); |
Along with the other pointer changes?
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.
This PR needs to pull in the latest changes from the original PR
i dismissed my approval. |
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.
Not ready for approval yet
what about this one, it was merged already: |
That one was ready for approval. This PR needs to be updated first. |
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.
vTable
is a pointer
9b7d166
to
ef67423
Compare
tested PR this on H7 + 4.4-maintenance, reverses the motors normally, spins them ok with both bidirectional ON and OFF. |
ef67423
to
094ebad
Compare
tested new PR state. All seems to be still working :) |
Cherry pick of #12865 fixing #12860