servo documentation

This commit is contained in:
Jasper Güldenstein 2020-11-15 17:26:29 +01:00
parent 148ae858b5
commit 9ccbfa5cac

View file

@ -1,8 +1,26 @@
/**
******************************************************************************
* @file Servo.h
* @author CAVAILLES, Kevin and GÜLDENSTEIN, Jasper
* @brief Service for using the Servo to set the sail angle.
******************************************************************************
*/
#ifndef SERVO_H
#define SERVO_H
/**
* @brief Initialziation function for the RF_OUTPUT module.
* The period of the PWM signal is 20ms.
* Peripherals used: TIM1
* Pins used: PA8 (TIM1 channel 1)
*/
void SERVO_Init(void);
/**
* @brief Sets the angle of the servo using a PWM signal with a on time between 1ms and 2ms and a resolution of 1us
* @param angle of the servo between XXXXX and YYYYY degree
*/
void SERVO_SetAngle(int angle);
#endif