From Electronics\Hexapod\Arduino sketches 2011-2012\FireFly. Data.h, Def.h and SerD.h moved into the library.
32 lines
457 B
Arduino
32 lines
457 B
Arduino
// Hexapod FireFly
|
|
|
|
#include "hexapod.h"
|
|
|
|
#include "Gedrags_Classen.cpp"
|
|
|
|
//Watchdog WD;
|
|
//Ultrasone US;
|
|
hexapod *FireFly = new hexapod;
|
|
|
|
void setup()
|
|
{
|
|
Serial.begin(38400);
|
|
Serial1.begin(38400);
|
|
pinMode(13, OUTPUT);
|
|
|
|
FireFly->FireFly();
|
|
}
|
|
|
|
// Main loop.
|
|
void loop()
|
|
{
|
|
DataObject *cache = new DataObject;
|
|
|
|
cache->input(5, 3, 8, 8, 3, 0, 5, 3, -8, 5, 3, 8, 8, 3, 0, 5, 3, -8, 500);
|
|
|
|
//WD.CheckTime(DataLine);
|
|
|
|
FireFly->CoreSend(cache);
|
|
}
|
|
|