Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
projektews2013:wwsr:start:wwsr [2014/01/20 21:50] yuri_gbur angelegt |
projektews2013:wwsr:start:wwsr [2016/01/21 12:45] (aktuell) |
||
---|---|---|---|
Zeile 4: | Zeile 4: | ||
#define WWSR_h | #define WWSR_h | ||
#include "Arduino.h" | #include "Arduino.h" | ||
+ | |||
//Imports für WlanAntenne | //Imports für WlanAntenne | ||
#include <WiFlyHQ.h> | #include <WiFlyHQ.h> | ||
#include <ArdOSCForWiFlyHQ.h> | #include <ArdOSCForWiFlyHQ.h> | ||
- | class WlanAntenne{ | + | //Imports für Servo |
+ | #include <Servo.h> | ||
+ | |||
+ | |||
+ | class Fahren{ | ||
public: | public: | ||
- | WlanAntenne(); | + | Fahren(); |
+ | void nachVorneFahren(int delayValue); | ||
+ | void linksDrehung(int delayValue); | ||
+ | void rechtsDrehung(int delayValue); | ||
+ | private: | ||
+ | int step2; //Rechtes Rad Fahren in SonarWahrnehmung integrieren | ||
+ | int dir2; | ||
+ | int step3; //Linkes Rad | ||
+ | int dir3; | ||
+ | |||
+ | }; | ||
+ | class StepperAntenne{ //drehung einbauen und mit felix über yagi antenne reden | ||
+ | public: | ||
+ | StepperAntenne(); | ||
void connect(); | void connect(); | ||
- | void setLedFade(OSCMessage *_mes); | ||
int getSignal(); | int getSignal(); | ||
- | | ||
private: | private: | ||
- | OSCServer server(&wifly); | ||
int ledPin; | int ledPin; | ||
WiFly wifly; | WiFly wifly; | ||
- | |||
- | | ||
- | }; | ||
- | class StepperRad{ | ||
- | public: | ||
- | | ||
- | }; | ||
- | class StepperAntenne{ | ||
- | public: | ||
- | StepperAntenne(); | ||
- | void turnRight(); | ||
- | void turnLeft(); | ||
- | private: | ||
int array[360]; | int array[360]; | ||
int hoechsterWifiWert; | int hoechsterWifiWert; | ||
int step; | int step; | ||
int dir; | int dir; | ||
+ | |||
}; | }; | ||
- | class SonarRaumwahrnehmung{ | + | class SonarRaumwahrnehmung{ |
- | + | public: | |
+ | SonarRaumwahrnehmung(); | ||
+ | long entfernungsMesser(); | ||
+ | void ausweichen(); | ||
+ | int getOptWinkel(); | ||
+ | long microsecondsToInches(long microseconds); | ||
+ | long microsecondsToCentimeters(long microseconds); | ||
+ | private: | ||
+ | int trigger; | ||
+ | int echo; | ||
+ | int rotation; | ||
+ | int array[180]; | ||
+ | int weitesteEntfernung; | ||
+ | int optimalerWinkel; | ||
+ | int step1; | ||
+ | int dir1; | ||
+ | int step2; //Rechtes Rad | ||
+ | int dir2; | ||
+ | int step3; //Linkes Rad | ||
+ | int dir3; | ||
+ | Servo myservo; | ||
+ | long duration, inches, cm; | ||
}; | }; | ||
#endif | #endif | ||
</file> | </file> |