[ab9d63b] | 1 | |
---|
| 2 | |
---|
| 3 | |
---|
| 4 | |
---|
| 5 | |
---|
[6db346c] | 6 | |
---|
| 7 | |
---|
| 8 | |
---|
| 9 | |
---|
[ab9d63b] | 10 | |
---|
| 11 | |
---|
| 12 | #import <UIKit/UIKit.h> |
---|
| 13 | #import <AVFoundation/AVFoundation.h> |
---|
| 14 | #import "../SignalConverterDelegate.h" |
---|
| 15 | |
---|
[b5aa714] | 16 | int minimumScoreTarget = 40; |
---|
| 17 | int scoreCurrent = 0; |
---|
| 18 | int scoreLast = 0; |
---|
| 19 | int scoreHigh = 0; |
---|
| 20 | |
---|
[ab9d63b] | 21 | @interface FlightViewController : UIViewController <SignalConverterDelegate> { |
---|
| 22 | AVAudioPlayer *audioPlayer; |
---|
| 23 | } |
---|
| 24 | |
---|
[57848ad] | 25 | @property (nonatomic, retain) IBOutlet UIBarButtonItem *connectButton; |
---|
| 26 | @property (nonatomic, retain) IBOutlet UIBarButtonItem *testButton; |
---|
[ab9d63b] | 27 | @property (nonatomic, retain) IBOutlet UIProgressView *attention; |
---|
| 28 | @property (nonatomic, retain) IBOutlet UILabel *attentionPercent; |
---|
| 29 | @property (nonatomic, retain) IBOutlet UIProgressView *meditation; |
---|
| 30 | @property (nonatomic, retain) IBOutlet UILabel *meditationPercent; |
---|
| 31 | @property (nonatomic, retain) IBOutlet UIProgressView *signal; |
---|
| 32 | @property (nonatomic, retain) IBOutlet UILabel *signalPercent; |
---|
| 33 | @property (nonatomic, retain) IBOutlet UIProgressView *power; |
---|
| 34 | @property (nonatomic, retain) IBOutlet UILabel *powerPercent; |
---|
| 35 | @property (nonatomic, retain) IBOutlet UISlider *attentionThreshold; |
---|
| 36 | @property (nonatomic, retain) IBOutlet UISlider *meditationThreshold; |
---|
| 37 | @property (nonatomic, retain) IBOutlet UIImageView *statusImage; |
---|
[57848ad] | 38 | @property (nonatomic, retain) IBOutlet UILabel *scoresDisplay; |
---|
[ab9d63b] | 39 | |
---|
| 40 | - (IBAction) connectButtonPressed:(id) sender; |
---|
[de10cbc] | 41 | - (IBAction) testButtonPressed:(id) sender; |
---|
[ab9d63b] | 42 | |
---|
[b5aa714] | 43 | - (void) updateScores; |
---|
[af91708] | 44 | - (void) displayScore; |
---|
| 45 | - (void) resetCurrentScore; |
---|
[b5aa714] | 46 | |
---|
[ab9d63b] | 47 | @end |
---|