From 9ccbfa5cac5fc97074bdb011a104a4cb764b00f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jasper=20G=C3=BCldenstein?= Date: Sun, 15 Nov 2020 17:26:29 +0100 Subject: [PATCH] servo documentation --- keil_project/Services/Servo.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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