GroupA / Mbed 2 deprecated WaG_final

Dependencies:   mbed

Fork of Lab_6_WaG by GroupA

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers wag.h Source File

wag.h

00001 /******************************************************************************
00002 * EECS 397
00003 *
00004 * Assignment Name: Lab 6: WaG
00005 * 
00006 * Authors: Sam Morrison and Phong Nguyen 
00007 * File name: utility.h
00008 * Purpose: Header for WaG functions
00009 *
00010 * Created: 04/03/2018
00011 * Last Modified: 04/03/2018
00012 *
00013 ******************************************************************************/
00014 #ifndef WAG_H
00015 #define WAG_H
00016 
00017 #include "mbed.h"
00018 #include "io_pins.h"
00019 #include "analog.h"
00020 #include "display.h"
00021 #include "laser.h"
00022 #include "stepper.h"
00023 #include "utility.h"
00024 
00025 //Station Constants
00026 #define STATION_A 1
00027 #define STATION_B 0
00028 
00029 //player constants
00030 #define GNOLLER 1
00031 #define WHACKER 0
00032 
00033 //Calibration status constants
00034 #define CALIBRATED 1
00035 #define NOT_CALIBRATED 0
00036 
00037 //delay times
00038 #define VOLLEY_DELAY 1000
00039 #define LASER_DELAY 0.125
00040 #define LED_DELAY 0.02
00041 
00042 
00043 //timer expired
00044 #define WHACK_EXPIRED_TIMER 50000
00045 
00046 void gnoll(int sensor_no, float * sensor_values);
00047 void whack(int sensor_no, float * sensor_values);
00048 void update_score(int hit, int miss);
00049 
00050 #endif