Skip to content

Instantly share code, notes, and snippets.

View Lichor8's full-sized avatar

Lichor8

View GitHub Profile
@Lichor8
Lichor8 / detection.cpp
Last active August 29, 2015 14:23
detection.cpp
#include "detection.h"
// constructors
//===================================
Detection::Detection() {
// mprocessing
plot = true; // Turn on plotting if true;
// sitrec
tol_filter = 2;
@Lichor8
Lichor8 / detection.h
Last active August 29, 2015 14:23
detection.h
//===================================
// include guard (safety measure)
#ifndef DETECTION_H // if not defined
#define DETECTION_H // define
//===================================
// forward declared dependencies
//===================================
// included dependencies
@Lichor8
Lichor8 / strategy.cpp
Last active August 29, 2015 14:23
strategy.cpp
#include "strategy.h"
// forward declared dependencies
//===================================
#include "movement.h"
#include "detection.h"
// constructors
//===================================
Strategy::Strategy() {
@Lichor8
Lichor8 / strategy.h
Last active August 29, 2015 14:23
strategy.h
//===================================
// include guard (safety measure)
#ifndef STRATEGY_H // if not defined
#define STRATEGY_H // define
//===================================
// forward declared dependencies
class Detection;
class Movement;
@Lichor8
Lichor8 / movement.cpp
Last active August 29, 2015 14:23
movement.cpp
#include "movement.h"
// forward declared dependencies
//===================================
#include "strategy.h"
#include "detection.h"
// constructors
//===================================
Movement::Movement() {
@Lichor8
Lichor8 / movement.h
Last active August 29, 2015 14:23
movement.h
//===================================
// include guard (safety measure)
#ifndef MOVEMENT_H // if not defined
#define MOVEMENT_H // define
//===================================
// forward declared dependencies
class Strategy;
class Detection;
@Lichor8
Lichor8 / main.cpp
Last active August 29, 2015 14:23
main
// emc-framework
#include <emc/io.h>
#include <emc/rate.h>
#include <iostream>
#include <stdio.h>
#include <time.h>
// subsystems
#include "movement.h"
#include "detection.h"