source: orbit/iOS/Orbit/Orbit/controllers/AdvancedViewController.h @ 876e42b

Servo
Last change on this file since 876e42b was 876e42b, checked in by Steve Castellotti <sc@…>, 7 years ago
  • Property mode set to 100644
File size: 2.1 KB
Line 
1//
2//  AdvancedViewController.h
3//  orbit
4//
5//  Copyright (c) 2013 Puzzlebox Productions, LLC. All rights reserved.
6//  Originally created by Jonathon Horsman.
7//
8//  This code is released under the GNU Public License (GPL) version 2
9//  For more information please refer to http://www.gnu.org/copyleft/gpl.html
10//
11
12#import <UIKit/UIKit.h>
13#import <CoreMotion/CoreMotion.h>
14
15double defaultControlYaw = 0.5;
16double defaultControlPitch = 0.5;
17double defaultControlThrottle = 0.5;
18double referenceTiltX = 0;
19double referenceTiltY = 0;
20
21@interface AdvancedViewController : UIViewController
22
23@property (nonatomic, retain) IBOutlet UIBarButtonItem *resetButton;
24
25@property (nonatomic, retain) IBOutlet UILabel *throttlePercent;
26@property (nonatomic, retain) IBOutlet UISlider *throttle;
27@property (nonatomic, retain) IBOutlet UILabel *yawPercent;
28@property (nonatomic, retain) IBOutlet UISlider *yaw;
29@property (nonatomic, retain) IBOutlet UILabel *pitchPercent;
30@property (nonatomic, retain) IBOutlet UISlider *pitch;
31
32@property (nonatomic, retain) IBOutlet UILabel *presets;
33@property (nonatomic, retain) IBOutlet UIButton *buttonHover;
34@property (nonatomic, retain) IBOutlet UIButton *buttonForward;
35@property (nonatomic, retain) IBOutlet UIButton *buttonLeft;
36@property (nonatomic, retain) IBOutlet UIButton *buttonRight;
37
38@property (nonatomic, retain) IBOutlet UILabel *tiltSensorControl;
39@property (nonatomic, retain) IBOutlet UISwitch *switchTiltSensorControl;
40@property (nonatomic, retain) IBOutlet UILabel *tiltSensorControlThrottle;
41@property (nonatomic, retain) IBOutlet UISwitch *switchTiltSensorControlThrottle;
42
43- (IBAction) resetButtonPressed:(id)button;
44
45- (IBAction) pitchChanged:(id)sender;
46- (IBAction) yawChanged:(id)sender;
47- (IBAction) throttleChanged:(id)sender;
48
49- (IBAction) hoverButtonPressed:(id)sender;
50- (IBAction) forwardButtonPressed:(id)sender;
51- (IBAction) leftButtonPressed:(id)sender;
52- (IBAction) rightButtonPressed:(id)sender;
53
54- (IBAction)changeSwitchTiltSensorControl:(id)sender;
55- (IBAction)changeSwitchTiltSensorControlThrottle:(id)sender;
56
57@property (strong, nonatomic) CMMotionManager *motionManager;
58
59
60@end
Note: See TracBrowser for help on using the repository browser.