Carlo Collodi / kangaroo

Dependencies:   QEI mbed

Master.cpp

Committer:
Sparker
Date:
2013-11-24
Revision:
35:a4e89e78d034
Parent:
28:21773a6fb6df
Child:
37:bf257a0154db

File content as of revision 35:a4e89e78d034:

#include "mbed.h"
#include "include/zgeom.hpp"

Serial pc(USBTX, USBRX);

int main() {

    Point p1(1,2,3);
    Point p2(2,2,3);
    
    Line l1(p1,p2);
    
    Point p3(3,2,3);
    
    Point bLine[3] = {p1,p2,p3};
    
    BezCurve b(bLine, sizeof(bLine)/sizeof(Point));
    
    b.setAdot(.025);
    b.startCurve();
    
    while(1){
        pc.printf("%f\n",b.newPoint().x);
        wait(2);
    }
}