servo documentation
This commit is contained in:
parent
148ae858b5
commit
9ccbfa5cac
1 changed files with 18 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue