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
19
void
motors_init
(
void
);
20
void
motors_arm
(uint8_t armed);
21
void
motors_set
(
const
float
duty[4]);
24
void
motors_test
(uint8_t motor,
float
duty);
25
26
#endif
/* MOTORS_H */
motors_set
void motors_set(const float duty[4])
0..1, saturated
Definition
motors.c:30
motors_arm
void motors_arm(uint8_t armed)
disarmed: duty forced to 0
Definition
motors.c:24
motors_init
void motors_init(void)
Definition
motors.c:13
motors_test
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
control
motors.h
Generated by
1.9.8