diff --git a/keil_project/Services/Servo.h b/keil_project/Services/Servo.h index 7d3f780..07c791c 100644 --- a/keil_project/Services/Servo.h +++ b/keil_project/Services/Servo.h @@ -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