This is a test

Dependencies:   Motor

main.cpp

Committer:
evangeli
Date:
2018-10-06
Branch:
master
Revision:
4:226d394ffd9e
Parent:
2:bc0d7cc15f1c

File content as of revision 4:226d394ffd9e:

/**
 * ES200-1121 Project 2 Team 1
 * MIDN 3/c Morty Smith & Prof Rick Sanchez
 * 2018
 */
 
#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()