1 | |
---|
2 | |
---|
3 | |
---|
4 | |
---|
5 | |
---|
6 | |
---|
7 | |
---|
8 | |
---|
9 | |
---|
10 | |
---|
11 | |
---|
12 | #import <UIKit/UIKit.h> |
---|
13 | #import <AVFoundation/AVFoundation.h> |
---|
14 | #import "../SignalConverterDelegate.h" |
---|
15 | |
---|
16 | int minimumScoreTarget = 40; |
---|
17 | int scoreCurrent = 0; |
---|
18 | int scoreLast = 0; |
---|
19 | int scoreHigh = 0; |
---|
20 | |
---|
21 | @interface FlightViewController : UIViewController <SignalConverterDelegate> { |
---|
22 | AVAudioPlayer *audioPlayer; |
---|
23 | } |
---|
24 | |
---|
25 | @property (nonatomic, retain) IBOutlet UIBarButtonItem *connectButton; |
---|
26 | @property (nonatomic, retain) IBOutlet UIBarButtonItem *testButton; |
---|
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; |
---|
38 | @property (nonatomic, retain) IBOutlet UILabel *scoresDisplay; |
---|
39 | |
---|
40 | - (IBAction) connectButtonPressed:(id) sender; |
---|
41 | - (IBAction) testButtonPressed:(id) sender; |
---|
42 | |
---|
43 | - (void) updateScores; |
---|
44 | - (void) displayScore; |
---|
45 | - (void) resetCurrentScore; |
---|
46 | |
---|
47 | @end |
---|