This is a test

Dependencies:   Motor

Files at this revision

API Documentation at this revision

Comitter:
evangeli
Date:
Sat Oct 06 23:09:00 2018 +0000
Branch:
master
Parent:
3:e77ad33cbb04
Commit message:
Added servo for rudder

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sat Oct 06 23:05:25 2018 +0000
+++ b/main.cpp	Sat Oct 06 23:09:00 2018 +0000
@@ -7,13 +7,17 @@
 #include "mbed.h"
 #include "stdio.h"
 #include "Motor.h"
+#include "Servo.h"
 
 Motor mot(p26,p30,p29); 
+Servo rud(p21); 
 
 int main() {
     printf("ES200-1121 Team 1\n");
     printf("Project 2 test code\n");
     
     mot.speed(0.0); 
+    rud.calibrate(0.0009,90.0); // calibration for Hitec HS422 in ES200 
+    rud.write(0.5); 
 } // main()