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
+24
-75
No files matched your search
@@ -1,4 +1,5 @@
|
|||||||
// Converter.cpp
|
// Converter.cpp
|
||||||
|
// V3.0
|
||||||
|
|
||||||
#include "Converter.h"
|
#include "Converter.h"
|
||||||
|
|
||||||
@@ -67,7 +68,3 @@ void Converter::Convert(Data *DataLine)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
// Converter.h
|
// Converter.h
|
||||||
|
// V3.0
|
||||||
|
|
||||||
#ifndef CONVERTER_H
|
#ifndef CONVERTER_H
|
||||||
#define CONVERTER_H
|
#define CONVERTER_H
|
||||||
|
|||||||
@@ -61,10 +61,3 @@ struct Data
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,13 +1,14 @@
|
|||||||
// Def.h
|
// Def.h
|
||||||
// Define some Hard Coded Variables
|
// Define some Hard Coded Variables
|
||||||
|
// V3.0
|
||||||
|
|
||||||
//DEBUG CODES
|
//DEBUG CODES
|
||||||
//#define DEBUGC
|
//#define DEBUGC // Converter
|
||||||
//#define DEBUGIK
|
//#define DEBUGIK // InverseKinemetics
|
||||||
//#define DEBUGS
|
//#define DEBUGS // Servos
|
||||||
//#define DEBUGHS // ServosHead
|
//#define DEBUGHS // ServosHead
|
||||||
//#define DEBUGW
|
//#define DEBUGW // Watchdog
|
||||||
//#define Freeze
|
//#define Freeze // Protect all the servos
|
||||||
|
|
||||||
//InverseKinemetics VARIABLES
|
//InverseKinemetics VARIABLES
|
||||||
#define l2 15
|
#define l2 15
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#include "InverseKinemetics.h"
|
#include "InverseKinemetics.h"
|
||||||
|
// V3.0
|
||||||
|
|
||||||
//Variables
|
//Variables
|
||||||
boolean error;
|
boolean error;
|
||||||
@@ -147,12 +148,3 @@ void InverseKinemetics::IK(Data *DataLine)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
// InverseKinemetics.h
|
// InverseKinemetics.h
|
||||||
|
// V3.0
|
||||||
|
|
||||||
#ifndef inverseKinemetics_H
|
#ifndef inverseKinemetics_H
|
||||||
#define inverseKinemetics_H
|
#define inverseKinemetics_H
|
||||||
@@ -20,8 +21,3 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,4 +1,6 @@
|
|||||||
// SerD.h
|
// SerD.h
|
||||||
|
// V3.0
|
||||||
|
|
||||||
#ifndef SERD
|
#ifndef SERD
|
||||||
#define SERD
|
#define SERD
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
// Servos.cpp
|
// Servos.cpp
|
||||||
|
// V3.0
|
||||||
|
|
||||||
#include "Servos.h"
|
#include "Servos.h"
|
||||||
|
|
||||||
@@ -102,11 +103,3 @@ void Servos::Send(Data *DataLine)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
// Servos.h
|
// Servos.h
|
||||||
|
// V3.0
|
||||||
|
|
||||||
#ifndef SERVOS_H
|
#ifndef SERVOS_H
|
||||||
#define SERVOS_H
|
#define SERVOS_H
|
||||||
@@ -18,9 +19,3 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
//Ultrasone.cpp
|
//Ultrasone.cpp
|
||||||
|
// V3.0
|
||||||
|
|
||||||
#include "Ultrasone.h"
|
#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
|
//Ultrasone.h
|
||||||
|
// V3.0
|
||||||
|
|
||||||
#ifndef ULTRASONE_H
|
#ifndef ULTRASONE_H
|
||||||
#define ULTRASONE_H
|
#define ULTRASONE_H
|
||||||
@@ -36,7 +37,3 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
// Watchdog.cpp
|
// Watchdog.cpp
|
||||||
|
/ V3.0
|
||||||
|
|
||||||
#include "Watchdog.h"
|
#include "Watchdog.h"
|
||||||
|
|
||||||
@@ -35,5 +36,3 @@ void Watchdog::CheckTime(Data *DataLine)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
// Watchdog.h
|
// Watchdog.h
|
||||||
|
/ V3.0
|
||||||
|
|
||||||
#ifndef WATCHDOG_H
|
#ifndef WATCHDOG_H
|
||||||
#define WATCHDOG_H
|
#define WATCHDOG_H
|
||||||
@@ -17,8 +18,3 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
// Hexapod FireFly
|
// Hexapod FireFly
|
||||||
|
// V3.0
|
||||||
|
|
||||||
#include "hexapod.h"
|
#include "hexapod.h"
|
||||||
#include "Data.h"
|
#include "Data.h"
|
||||||
@@ -190,23 +191,4 @@ void loop()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in new issue
Block a user