mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Fixed Dshot command sending to all motors.
This commit is contained in:
parent
cda31ef88a
commit
91ffa4b88c
7 changed files with 39 additions and 36 deletions
|
@ -24,6 +24,8 @@
|
|||
#include "drivers/timer.h"
|
||||
|
||||
|
||||
#define ALL_MOTORS 255
|
||||
|
||||
#define DSHOT_MAX_COMMAND 47
|
||||
|
||||
/*
|
||||
|
@ -168,7 +170,7 @@ uint16_t prepareDshotPacket(motorDmaOutput_t *const motor, uint16_t value);
|
|||
extern loadDmaBufferFn *loadDmaBuffer;
|
||||
|
||||
uint32_t getDshotHz(motorPwmProtocolTypes_e pwmProtocolType);
|
||||
void pwmWriteDshotCommand(uint8_t index, uint8_t command);
|
||||
void pwmWriteDshotCommand(uint8_t index, uint8_t motorCount, uint8_t command);
|
||||
void pwmWriteDshotInt(uint8_t index, uint16_t value);
|
||||
void pwmDshotMotorHardwareConfig(const timerHardware_t *timerHardware, uint8_t motorIndex, motorPwmProtocolTypes_e pwmProtocolType, uint8_t output);
|
||||
void pwmCompleteDshotMotorUpdate(uint8_t motorCount);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue