Elevator v2.0
Elevator Documenation
Loading...
Searching...
No Matches
servo.c File Reference

servo.h source code More...

#include "inc/servo.h"
Include dependency graph for servo.c:

Functions

void moveServo (Servo *servo, int angle)
 moveServo will move the servo motor by angles More...
 
void servoInit (Servo *servo)
 servoInit will initialize servo motor More...
 
void haltServo (Servo *servo)
 haltServo will stop the timer of the mcpwm More...
 
void startServo (Servo *servo)
 startServo will start the time of the mcpwm More...
 

Detailed Description

servo.h source code

Author
Jesus Minjares (https://github.com/jminjares4)
Version
0.1
Date
2021-11-27

Function Documentation

◆ haltServo()

void haltServo ( Servo servo)

haltServo will stop the timer of the mcpwm

Parameters
servopass a Servo motor by reference
Returns
None

◆ moveServo()

void moveServo ( Servo servo,
int  angle 
)

moveServo will move the servo motor by angles

Parameters
servopass a Servo by reference
angleint servo angle movment
Note
Rangee for -90 to 90 degrees

◆ servoInit()

void servoInit ( Servo servo)

servoInit will initialize servo motor

Parameters
servopass a Servo motor by reference

◆ startServo()

void startServo ( Servo servo)

startServo will start the time of the mcpwm

Parameters
servopass a Servo motor by reference