FireFly 2012: behaviour rewrite now uses the hexapod library

From Electronics\Hexapod\Arduino sketches 2011-2012\FireFly. Data.h, Def.h and SerD.h moved into the library.
This commit is contained in:
mangavalk committed 2012-07-23 17:56:33 +02:00
1 parent 304367a769
commit 6e50819e01
9 files changed
+84 -465

No files matched your search

@@ -0,0 +1,39 @@
//Ultrasone.h
// V3.0
#ifndef ULTRASONE_H
#define ULTRASONE_H
#include "Arduino.h"
#include "Data.h"
#include "Servos.h"
#include "Converter.h"
#define MaxLeft -45
#define MaxRight 45
class Ultrasone
{
private:
Servos SSC32;
Converter Con;
public:
void GetRadar(Data *DataLine);
int CurrentPosition;
byte CurrentDirection;
Ultrasone()
{
CurrentPosition = 0;
CurrentDirection = 0; // Left
}
};
#endif