FireFly 2012 v3: restructured into Data/Converter/IK/Servos classes, IR remote, ultrasonic radar head

From 'hexapodV3 28-april-2012-Backup.rar'. Oud/ is the 2011 code it was based on.
This commit is contained in:
mangavalk committed 2012-04-28 16:42:59 +02:00
1 parent 2e063fc0d9
commit f690f307c1
30 files changed
+1990

No files matched your search

@@ -0,0 +1,42 @@
//Ultrasone.h
#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