updated todo.txt;
added some files as .pdf, too
This commit is contained in:
parent
5843f35538
commit
7370f9ab1e
12 changed files with 57 additions and 53 deletions
BIN
Information/Hardware/Hardwareliste.pdf
Normal file
BIN
Information/Hardware/Hardwareliste.pdf
Normal file
Binary file not shown.
BIN
Information/Hardware/Portbelegung.pdf
Normal file
BIN
Information/Hardware/Portbelegung.pdf
Normal file
Binary file not shown.
|
@ -10,19 +10,16 @@ Hardware:
|
||||||
Motoren können montiert werden
|
Motoren können montiert werden
|
||||||
Grundstücke für Befestigung von Tastsensoren(Maschendraht)
|
Grundstücke für Befestigung von Tastsensoren(Maschendraht)
|
||||||
Maussensoren eingebaut
|
Maussensoren eingebaut
|
||||||
Entfernungssensoren bis auf einen fertiggestellt, mit Befestigung
|
Ultraschallsensoren befestigt
|
||||||
|
|
||||||
Todo:
|
Todo:
|
||||||
|
|
||||||
Letzten Maussensor einbauen
|
Dribbler fertigestellen(Räder sind nun vorhanden)
|
||||||
Dribbler-befestigung verbessern
|
Tastsensoren befestigen
|
||||||
Tastsensoren-befestigtung ausarbeiten
|
Ballsensoren fertigstellen(nearly done)
|
||||||
Infrarotsensoren Schaltung ausarbeiten
|
Eigene Schaltungen fertigstellen
|
||||||
Infrarotsensoren Schaltung löten
|
Verkabelung
|
||||||
Infrarotsensoren befestigen
|
Motorik fertigstellen(entstören)
|
||||||
Verkabelung fertigstellen
|
|
||||||
Sensorik fertigstellen
|
|
||||||
Motorik fertigstellen
|
|
||||||
Räder endgültig befestigen
|
Räder endgültig befestigen
|
||||||
!!Zusammenbau & Verkabelung!!
|
!!Zusammenbau & Verkabelung!!
|
||||||
|
|
||||||
|
@ -32,6 +29,7 @@ Software:
|
||||||
Disskusion um Grundkonzept
|
Disskusion um Grundkonzept
|
||||||
weitere Ausarbeitungen am Design
|
weitere Ausarbeitungen am Design
|
||||||
Programmierumgebung eingerichtet
|
Programmierumgebung eingerichtet
|
||||||
|
Platinen ausreichend konfigueriert(fuses gesetzt)
|
||||||
|
|
||||||
Todo:
|
Todo:
|
||||||
|
|
||||||
|
@ -44,9 +42,13 @@ Software:
|
||||||
!!! Code Fertigstellung !!!
|
!!! Code Fertigstellung !!!
|
||||||
|
|
||||||
Allgemein:
|
Allgemein:
|
||||||
|
Getan:
|
||||||
|
|
||||||
|
Teilnahmegebühren(120€) überwiesen
|
||||||
|
|
||||||
Todo:
|
Todo:
|
||||||
Anmeldung abschließen
|
Anmeldung abschließen
|
||||||
->10€ Kosten von Teilnehmern an Jakob, Teilnahmegebühr überweisen
|
->10€ Kosten von Teilnehmern an Jakob
|
||||||
Magdeburg organisieren
|
Magdeburg organisieren
|
||||||
->Hin-/Rückfahrt
|
->Hin-/Rückfahrt
|
||||||
->Unterkunft
|
->Unterkunft
|
||||||
|
|
|
@ -6,4 +6,4 @@ namespace hardware
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -88,4 +88,4 @@ enum IOModuleNames
|
||||||
IO_END = IO_SENSOR_END,
|
IO_END = IO_SENSOR_END,
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -16,4 +16,4 @@ public:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -26,4 +26,4 @@ public:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
@ -44,4 +44,4 @@ int main()
|
||||||
//Cleanup
|
//Cleanup
|
||||||
delete localRobot;
|
delete localRobot;
|
||||||
localRobot = NULL;
|
localRobot = NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,24 +1,31 @@
|
||||||
#include "robot.h"
|
#include "robot.h"
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
Robot::Robot()
|
||||||
|
{
|
||||||
|
memset(modules, NULL, sizeof(modules));
|
||||||
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
Robot::~Robot()
|
Robot::~Robot()
|
||||||
{
|
{
|
||||||
while(!modules.empty())
|
for(uint8 i = 0; i < IO_END; i++)
|
||||||
{
|
{
|
||||||
moduleMap::iterator iter = modules.begin();
|
if(!modules[i]) continue;
|
||||||
delete iter->second;
|
|
||||||
modules.erase(iter);
|
delete modules[i];
|
||||||
|
modules[i] = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
bool Robot::AddModule(IO_Module* newModule)
|
bool Robot::AddModule(IO_Module* newModule)
|
||||||
{
|
{
|
||||||
moduleMap::iterator itr = modules.find(newModule->GetId());
|
if(modules[newModule->GetId()])
|
||||||
if(itr != modules.end())
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
modules[newModule->GetId()] = newModule;
|
modules[newModule->GetId()] = newModule;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,4 +41,4 @@ void Robot::Update()
|
||||||
//insert code here
|
//insert code here
|
||||||
}
|
}
|
||||||
|
|
||||||
//--- EOF ---
|
//--- EOF ---
|
||||||
|
|
|
@ -9,32 +9,29 @@ class Engine;
|
||||||
|
|
||||||
class Robot
|
class Robot
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
Robot();
|
||||||
~Robot();
|
~Robot();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
typedef hash_map<uint32, IO_Module*> moduleMap;
|
IO_Module* modules[IO_END];
|
||||||
moduleMap modules;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
bool AddModule(IO_Module* newModule);
|
bool AddModule(IO_Module* newModule);
|
||||||
|
|
||||||
template <class T> T* GetModule(uint32 moduleId)
|
template <class T> T* GetModule(uint8 moduleId)
|
||||||
{
|
{
|
||||||
moduleMap::const_iterator itr = modules.find(moduleId);
|
return ((T*)modules[moduleId]);
|
||||||
if(itr == modules.end())
|
|
||||||
return NULL;
|
|
||||||
else
|
|
||||||
return ((T*)itr->second);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool RemoveModule(uint32 moduleId)
|
bool RemoveModule(uint8 moduleId)
|
||||||
{
|
{
|
||||||
moduleMap::iterator itr = modules.find(moduleId);
|
if(!modules[moduleId])
|
||||||
if(itr == modules.end())
|
return false;
|
||||||
return false;
|
|
||||||
|
delete modules[moduleId];
|
||||||
modules.erase(itr);
|
modules[moduleId] = NULL;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,4 +40,4 @@ public:
|
||||||
void Update();
|
void Update();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -26,4 +26,4 @@ public:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
#include <iostream>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string>
|
|
||||||
#include <hash_map>
|
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
#include "defines.h"
|
#include "defines.h"
|
||||||
|
#include "tools.h"
|
||||||
#include "io_module.h"
|
#include "io_module.h"
|
||||||
#include "sensor.h"
|
#include "sensor.h"
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "robot.h"
|
#include "robot.h"
|
||||||
|
|
Reference in a new issue