24 lines
649 B
C
24 lines
649 B
C
#ifndef MOTORS_H
|
|
#define MOTORS_H
|
|
|
|
#include <stdint.h>
|
|
#include "pid.h"
|
|
|
|
void motors_init();
|
|
void motor_gpio_tim1_ch3_init();
|
|
void motor_gpio_tim1_ch4_init();
|
|
void motors_tim1_ch3_4_init();
|
|
|
|
void motor_gpio_tim2_ch1_init();
|
|
void motor_gpio_tim2_ch2_init();
|
|
void motors_tim2_ch1_2_init();
|
|
|
|
void motors_set_throttle_mix(const int16_t throttle, const control_channels_t* chs, const int8_t armed);
|
|
void motor_set_throttle(int8_t motor_number, int16_t us, int8_t armed);
|
|
void motors_turn_off();
|
|
void motor1_set_throttle(int16_t us);
|
|
void motor2_set_throttle(int16_t us);
|
|
void motor3_set_throttle(int16_t us);
|
|
void motor4_set_throttle(int16_t us);
|
|
|
|
#endif |