1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00

Convert mixer to float math

This commit is contained in:
borisbstyle 2016-10-18 23:59:14 +02:00
parent e21e1f50aa
commit 706897c187
13 changed files with 126 additions and 91 deletions

View file

@ -58,7 +58,6 @@ void pwmWriteDigital(uint8_t index, uint16_t value)
{
motorDmaOutput_t * const motor = &dmaMotors[index];
value = (value <= 1000) ? 0 : ((value - 1000) * 2);
motor->value = value;
motor->dmaBuffer[0] = (value & 0x400) ? MOTOR_BIT_1 : MOTOR_BIT_0;
@ -215,4 +214,4 @@ void pwmDigitalMotorHardwareConfig(const timerHardware_t *timerHardware, uint8_t
dmaSetHandler(timerHardware->dmaIrqHandler, motor_DMA_IRQHandler, NVIC_BUILD_PRIORITY(1, 2), motorIndex);
}
#endif
#endif