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
|
// Converter.cpp
|
||||||
|
// V3.0
|
||||||
|
|
||||||
#include "Converter.h"
|
#include "Converter.h"
|
||||||
|
|
||||||
@@ -66,8 +67,4 @@ void Converter::Convert(Data *DataLine)
|
|||||||
DataLine->ReadyToSend = true;
|
DataLine->ReadyToSend = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
// Converter.h
|
// Converter.h
|
||||||
|
// V3.0
|
||||||
|
|
||||||
#ifndef CONVERTER_H
|
#ifndef CONVERTER_H
|
||||||
#define CONVERTER_H
|
#define CONVERTER_H
|
||||||
|
|||||||
@@ -60,11 +60,4 @@ struct Data
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -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;
|
||||||
@@ -146,13 +147,4 @@ void InverseKinemetics::IK(Data *DataLine)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
// InverseKinemetics.h
|
// InverseKinemetics.h
|
||||||
|
// V3.0
|
||||||
|
|
||||||
#ifndef inverseKinemetics_H
|
#ifndef inverseKinemetics_H
|
||||||
#define inverseKinemetics_H
|
#define inverseKinemetics_H
|
||||||
@@ -19,9 +20,4 @@ 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"
|
||||||
|
|
||||||
@@ -101,12 +102,4 @@ 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
|
||||||
@@ -17,10 +18,4 @@ 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
|
||||||
@@ -35,8 +36,4 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
// Watchdog.cpp
|
// Watchdog.cpp
|
||||||
|
/ V3.0
|
||||||
|
|
||||||
#include "Watchdog.h"
|
#include "Watchdog.h"
|
||||||
|
|
||||||
@@ -34,6 +35,4 @@ 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
|
||||||
@@ -16,9 +17,4 @@ 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