From Electronics\Hexapod\Arduino sketches 2011-2012\hexapod_oud (banner 'Version 3.0').
35 lines
321 B
C++
35 lines
321 B
C++
// SSC32.h
|
|
|
|
#ifndef SSC32_H
|
|
#define SSC32_H
|
|
|
|
#include "WProgram.h"
|
|
#include "Data_Manager.h"
|
|
|
|
class SSC32
|
|
{
|
|
public:
|
|
void setup();
|
|
|
|
void Render();
|
|
void toServos ();
|
|
void MoveHead (int angel_from_mid);
|
|
|
|
int ConverttoMS(int i, int low, int high);
|
|
|
|
// 0 | 3
|
|
// 1 | 4
|
|
// 2 | 5
|
|
|
|
int time;
|
|
};
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|