GroupA / Mbed 2 deprecated WaG_final

Dependencies:   mbed

Fork of Lab_6_WaG by GroupA

wag.h

Committer:
phn10
Date:
2018-04-26
Revision:
75:49e69031799c
Parent:
74:8881f4aeb174
Child:
77:73e1cf3a7284

File content as of revision 75:49e69031799c:

/******************************************************************************
* EECS 397
*
* Assignment Name: Lab 6: WaG
* 
* Authors: Sam Morrison and Phong Nguyen 
* File name: utility.h
* Purpose: Header for WaG functions
*
* Created: 04/03/2018
* Last Modified: 04/03/2018
*
******************************************************************************/
#ifndef WAG_H
#define WAG_H

#include "mbed.h"
#include "io_pins.h"
#include "analog.h"
#include "display.h"
#include "laser.h"
#include "stepper.h"
#include "utility.h"

//Station Constants
#define STATION_A 0
#define STATION_B 1

//player constants
#define GNOLLER 1
#define WHACKER 0

//Calibration status constants
#define CALIBRATED 1
#define NOT_CALIBRATED 0

//delay times
#define VOLLEY_DELAY 5000
#define LASER_DELAY 0.125
#define LED_DELAY 0.02


//timer expired
#define WHACK_EXPIRED_TIMER 50000

void gnoll(int sensor_no, float * sensor_values);
void whack(int sensor_no, float * sensor_values);
void update_score(int hit, int miss);

#endif