yattaze!

omni_all.cpp

Committer:
THtakahiro702286
Date:
2019-05-02
Revision:
0:657446f249bc

File content as of revision 0:657446f249bc:

#include "omni_all.h"

Omni_all::Omni_all(int number_wheel)
{
     wheelRad = new double[number_wheel];
}

void Omni_all::sendRad(double rad, int num)
{
    wheelRad[num] = rad;
}

double Omni_all::vec(double way, int dis)
{
    delete[] wheelRad;
    return sin(way - wheelRad[dis]);
}