yattaze!

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers omni_all.cpp Source File

omni_all.cpp

00001 #include "omni_all.h"
00002 
00003 Omni_all::Omni_all(int number_wheel)
00004 {
00005      wheelRad = new double[number_wheel];
00006 }
00007 
00008 void Omni_all::sendRad(double rad, int num)
00009 {
00010     wheelRad[num] = rad;
00011 }
00012 
00013 double Omni_all::vec(double way, int dis)
00014 {
00015     delete[] wheelRad;
00016     return sin(way - wheelRad[dis]);
00017 }