Control servo motors

Dependencies:   Servo mbed

Committer:
jordaahh
Date:
Sun May 21 12:50:37 2017 +0000
Revision:
3:306d3725ed04
Parent:
2:baf8a7b2b150
Individual Project Servo Control - University of Leeds

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jordaahh 3:306d3725ed04 1 /**
jordaahh 3:306d3725ed04 2 @file main.cpp
jordaahh 3:306d3725ed04 3
jordaahh 3:306d3725ed04 4 @brief Servo Control Algorithm implementation
jordaahh 3:306d3725ed04 5 */
jordaahh 2:baf8a7b2b150 6
jordaahh 0:b5ce567b469c 7 #include "mbed.h"
jordaahh 0:b5ce567b469c 8 #include "Servo.h"
jordaahh 0:b5ce567b469c 9 #include "SystemFunctions.h"
jordaahh 0:b5ce567b469c 10
jordaahh 3:306d3725ed04 11 int main() {
jordaahh 3:306d3725ed04 12 initialiseServo();
jordaahh 3:306d3725ed04 13 // positionTest(); // Uncomment to test servomotor movement.
jordaahh 0:b5ce567b469c 14 while(1){
jordaahh 3:306d3725ed04 15 digitalFilter();
jordaahh 3:306d3725ed04 16 servoMovement();
jordaahh 3:306d3725ed04 17 //serialRead(); // Uncomment to use serial communication with PC to log analog data. (CoolTerm)
jordaahh 3:306d3725ed04 18 }
jordaahh 0:b5ce567b469c 19 }
jordaahh 0:b5ce567b469c 20