mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-30 11:37:06 +08:00
[fix] fix macro
It was not making issues since by default PWM_FREQUENCY is also 1M.
This commit is contained in:
@@ -44,7 +44,7 @@
|
|||||||
* in milliseconds to microseconds (required by pwmEnableChannel())
|
* in milliseconds to microseconds (required by pwmEnableChannel())
|
||||||
*/
|
*/
|
||||||
#ifndef PWM_CMD_TO_US
|
#ifndef PWM_CMD_TO_US
|
||||||
#define PWM_CMD_TO_US(_t) (1000000 * _t / PWM_FREQUENCY)
|
#define PWM_CMD_TO_US(_t) (PWM_FREQUENCY * _t / 1000000)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int32_t actuators_pwm_values[ACTUATORS_PWM_NB];
|
int32_t actuators_pwm_values[ACTUATORS_PWM_NB];
|
||||||
|
|||||||
Reference in New Issue
Block a user