ACwing FC firmware
STM32WB55: attitude IEKF, altitude Kalman filter, flight core, protocol v2
Loading...
Searching...
No Matches
motors.h
Go to the documentation of this file.
1
11#ifndef MOTORS_H
12#define MOTORS_H
13
14#include <stdint.h>
15
16#define MOTORS_ENABLE 0
17#define MOTORS_PWM_TOP 1999u
18
19void motors_init(void);
20void motors_arm(uint8_t armed);
21void motors_set(const float duty[4]);
24void motors_test(uint8_t motor, float duty);
25
26#endif /* MOTORS_H */
void motors_set(const float duty[4])
0..1, saturated
Definition motors.c:30
void motors_arm(uint8_t armed)
disarmed: duty forced to 0
Definition motors.c:24
void motors_init(void)
Definition motors.c:13
void motors_test(uint8_t motor, float duty)
MOTOR_TEST (props off, disarmed): motor 1..4 at duty, the others off; motor 0 = all off.
Definition motors.c:44