Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of Lab_6_WaG by
wag.h
- Committer:
- spm71
- Date:
- 2018-04-27
- Revision:
- 78:84ce90a76594
- Parent:
- 77:73e1cf3a7284
File content as of revision 78:84ce90a76594:
/****************************************************************************** * 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 1 #define STATION_B 0 //player constants #define GNOLLER 1 #define WHACKER 0 //Calibration status constants #define CALIBRATED 1 #define NOT_CALIBRATED 0 //delay times #define VOLLEY_DELAY 1000 #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