FireFly 2012 v3: later version of May 2012
From Electronics\Hexapod\Arduino sketches 2011-2012\hexapodV3 (backup 2012-07-09).
This commit is contained in:
1 parent
f690f307c1
commit
0911543c03
14 files changed
+27
-78
No files matched your search
@@ -1,4 +1,5 @@
|
||||
// Converter.cpp
|
||||
// V3.0
|
||||
|
||||
#include "Converter.h"
|
||||
|
||||
@@ -66,8 +67,4 @@ void Converter::Convert(Data *DataLine)
|
||||
DataLine->ReadyToSend = true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// Converter.h
|
||||
// V3.0
|
||||
|
||||
#ifndef CONVERTER_H
|
||||
#define CONVERTER_H
|
||||
|
||||
@@ -60,11 +60,4 @@ struct Data
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
//Def.h
|
||||
//Define some Hard Coded Variables
|
||||
// Def.h
|
||||
// Define some Hard Coded Variables
|
||||
// V3.0
|
||||
|
||||
//DEBUG CODES
|
||||
//#define DEBUGC
|
||||
//#define DEBUGIK
|
||||
//#define DEBUGS
|
||||
//#define DEBUGC // Converter
|
||||
//#define DEBUGIK // InverseKinemetics
|
||||
//#define DEBUGS // Servos
|
||||
//#define DEBUGHS // ServosHead
|
||||
//#define DEBUGW
|
||||
//#define Freeze
|
||||
//#define DEBUGW // Watchdog
|
||||
//#define Freeze // Protect all the servos
|
||||
|
||||
//InverseKinemetics VARIABLES
|
||||
#define l2 15
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "InverseKinemetics.h"
|
||||
// V3.0
|
||||
|
||||
//Variables
|
||||
boolean error;
|
||||
@@ -146,13 +147,4 @@ void InverseKinemetics::IK(Data *DataLine)
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// InverseKinemetics.h
|
||||
// V3.0
|
||||
|
||||
#ifndef inverseKinemetics_H
|
||||
#define inverseKinemetics_H
|
||||
@@ -19,9 +20,4 @@ public:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
//SerD.h
|
||||
// SerD.h
|
||||
// V3.0
|
||||
|
||||
#ifndef SERD
|
||||
#define SERD
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// Servos.cpp
|
||||
// V3.0
|
||||
|
||||
#include "Servos.h"
|
||||
|
||||
@@ -101,12 +102,4 @@ void Servos::Send(Data *DataLine)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// Servos.h
|
||||
// V3.0
|
||||
|
||||
#ifndef SERVOS_H
|
||||
#define SERVOS_H
|
||||
@@ -17,10 +18,4 @@ public:
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//Ultrasone.cpp
|
||||
// V3.0
|
||||
|
||||
#include "Ultrasone.h"
|
||||
|
||||
@@ -48,7 +49,11 @@ void Ultrasone::GetRadar(Data *DataLine)
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
[Vector]
|
||||
X = Distance / Cos( CurrentPosition * pi2rad );
|
||||
Y = Distance / sin( CurrentPosition / pi2rad );
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//Ultrasone.h
|
||||
// V3.0
|
||||
|
||||
#ifndef ULTRASONE_H
|
||||
#define ULTRASONE_H
|
||||
@@ -35,8 +36,4 @@ public:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// Watchdog.cpp
|
||||
/ V3.0
|
||||
|
||||
#include "Watchdog.h"
|
||||
|
||||
@@ -34,6 +35,4 @@ void Watchdog::CheckTime(Data *DataLine)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// Watchdog.h
|
||||
/ V3.0
|
||||
|
||||
#ifndef WATCHDOG_H
|
||||
#define WATCHDOG_H
|
||||
@@ -16,9 +17,4 @@ public:
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// Hexapod FireFly
|
||||
// V3.0
|
||||
|
||||
#include "hexapod.h"
|
||||
#include "Data.h"
|
||||
@@ -190,23 +191,4 @@ void loop()
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user