From Electronics\Hexapod\Arduino sketches 2011-2012\hexapod_oud (banner 'Version 3.0').
27 lines
198 B
C++
27 lines
198 B
C++
// atan2.h
|
|
|
|
#ifndef joy_H
|
|
#define joy_H
|
|
|
|
#include "WProgram.h"
|
|
|
|
class joy
|
|
{
|
|
public:
|
|
void JoyToDegAndDis (int x, int y);
|
|
int JoyToDeg (int x, int y);
|
|
|
|
int deg, distance;
|
|
};
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|