Sie sind auf Seite 1von 3

Z:\_218aTeams\Team12 - The Dirty Dozen\FINAL PROJECT MACHINES\ControllerA\Headers\TargetControl.

Sunday, December 01, 2013 5:41 PM

/**************************************************************************** Header file for all target control based on the Gen 2 Events and Services Framework Description: Manipulates multiplexers as necessary to power target LEDs/sensors as desired Event checkers: - Hand detected Events posted: - TargetCovered - TargetUncovered ****************************************************************************/ #ifndef TargetControl_H #define TargetControl_H #include "ES_Types.h" // Target flags typedef enum { AdvanceSuccess, AdvanceError } TargetFlag_t; // Public Function Prototypes /************************ Required Function Prototypes ************************/ /* InitTargetControl - only needs to be called once * Initializes pins, module level variables necessary for Target Control */ bool InitTargetControl ( uint8_t Priority ); bool PostTargetControl( ES_Event ThisEvent ); ES_Event RunTargetControl( ES_Event ThisEvent );

/************************ Interface Function Prototypes ************************/ /* StartPracticeRound will turn on the calibration target INPUTS: --OUTPUTS: --Comments: State machine should turn off all targets once this target is "hit" */ void StartPracticeRound( void ); /* StartSynchroRound will turn on the first target in the synchro target list INPUTS: --OUTPUTS: --Comments: The target order is preset in arrays A target timer is started when the target turns on
-1-

Z:\_218aTeams\Team12 - The Dirty Dozen\FINAL PROJECT MACHINES\ControllerA\Headers\TargetControl.h

Sunday, December 01, 2013 5:41 PM

*/ void StartSynchroRound( void ); /* AdvanceTarget will turn off all targets and turn on the next target in the list INPUTS: --OUTPUTS: --Comments: The target order is preset in arrays A target timer is started when the target turns on */ TargetFlag_t AdvanceTarget( void ); /* RunWaitingForStartShow will slowly cycle through the targets INPUTS: --OUTPUTS: --Comments: only ONE target can be on at a time */ void RunWaitingForStartShow( void ); /* RunEndOfGameShow will go through a pre-programmed show lighting the targets INPUTS: --OUTPUTS: --Comments: only ONE target can be on at a time */ void RunEndOfGameShow( void ); /* TurnOffAllTargets turns off all of the targets INPUTS: --OUTPUTS: --Comments: */ void TurnOffAllTargets( void );

/* BrightenTarget turns on the other half of target LEDs INPUTS: --OUTPUTS: --Comments: */ void BrightenTarget(void); /* DimTarget turns on the other half of target LEDs INPUTS: --OUTPUTS: --Comments: */ void DimTarget(void); //Stops the timer to end the show void StopShow(void); void BlinkTarget(void); /************************** Event Checker Prototypes **************************/ /* CheckForTargetCovered checks for a new hand or hand removed
-2-

Z:\_218aTeams\Team12 - The Dirty Dozen\FINAL PROJECT MACHINES\ControllerA\Headers\TargetControl.h

Sunday, December 01, 2013 5:41 PM

INPUTS: --OUTPUTS: --Comments: Posts TargetCovered or TargetUncovered */ bool CheckForTargetCovered( void ); #endif /* TargetControl_H */

-3-

Das könnte Ihnen auch gefallen