Changeset 6db346c in orbit for iOS/Orbit/Orbit/controllers


Ignore:
Timestamp:
12/29/13 11:24:57 (9 years ago)
Author:
Steve Castellotti <sc@…>
Branches:
master, Servo
Children:
d42b042
Parents:
4c86e4a
Message:
  • Scoring fields added
  • Tilt Control widgets added
Location:
iOS/Orbit/Orbit/controllers
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • iOS/Orbit/Orbit/controllers/AdvancedViewController.h

    rde10cbc r6db346c  
    33//  orbit 
    44// 
    5 //  Created by Jonathon Horsman on 11/07/2013. 
    65//  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 
    710// 
    811 
  • iOS/Orbit/Orbit/controllers/AdvancedViewController.m

    r37ca4e8 r6db346c  
    33//  orbit 
    44// 
    5 //  Created by Jonathon Horsman on 11/07/2013. 
    65//  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 
    710// 
    811 
     
    2932//   UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Help Wanted" message:@"Please join our Open Source development community to help us port this feature! See link to Forums under Support tab" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles: nil]; 
    3033//   [alert show]; 
     34    
     35    
     36   UISwitch *switchTiltSensorControl = [[UISwitch alloc] initWithFrame:CGRectMake(10, 310, 0, 0)]; 
     37   [switchTiltSensorControl addTarget:self action:@selector(changeSwitchTiltSensorControl:) forControlEvents:UIControlEventValueChanged]; 
     38   [self.view addSubview:switchTiltSensorControl]; 
     39    
     40   UISwitch *switchTiltSensorControlThrottle = [[UISwitch alloc] initWithFrame:CGRectMake(148, 310, 0, 0)]; 
     41   [switchTiltSensorControlThrottle addTarget:self action:@selector(changeSwitchTiltSensorControlThrottle:) forControlEvents:UIControlEventValueChanged]; 
     42   [self.view addSubview:switchTiltSensorControlThrottle]; 
     43    
    3144} 
    3245 
     
    8699} 
    87100 
     101- (void)changeSwitchTiltSensorControl:(id)sender{ 
     102    
     103   if([sender isOn]){ 
     104      NSLog(@"DEBUG: Tilt Sensor Enabled"); 
     105   } else{ 
     106      NSLog(@"DEBUG: Tilt Sensor Disabled"); 
     107   } 
     108    
     109} 
     110 
     111- (void)changeSwitchTiltSensorControlThrottle:(id)sender{ 
     112    
     113   if([sender isOn]){ 
     114      NSLog(@"DEBUG: Throttle Tilt Sensor Enabled"); 
     115   } else{ 
     116      NSLog(@"DEBUG: Throttle Tilt Sensor Disabled"); 
     117   } 
     118    
     119} 
     120 
    88121@end 
  • iOS/Orbit/Orbit/controllers/FlightViewController.h

    r8a0f920f r6db346c  
    33//  Orbit 
    44// 
    5 //  Created by Jonathon Horsman on 10/07/2013. 
    65//  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 
    710// 
    811 
  • iOS/Orbit/Orbit/controllers/SupportViewController.h

    rab9d63b r6db346c  
    33//  orbit 
    44// 
    5 //  Created by Jonathon Horsman on 11/07/2013. 
    65//  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 
    710// 
    811 
  • iOS/Orbit/Orbit/controllers/SupportViewController.m

    r5d87396 r6db346c  
    33//  orbit 
    44// 
    5 //  Created by Jonathon Horsman on 11/07/2013. 
    65//  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 
    710// 
    811 
  • iOS/Orbit/Orbit/controllers/TutorialViewController.h

    rab9d63b r6db346c  
    33//  Orbit 
    44// 
    5 //  Created by Jonathon Horsman on 09/07/2013. 
    65//  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 
    710// 
    811 
  • iOS/Orbit/Orbit/controllers/TutorialViewController.m

    r548a60f r6db346c  
    33//  Orbit 
    44// 
    5 //  Created by Jonathon Horsman on 09/07/2013. 
    65//  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 
    710// 
    811 
Note: See TracChangeset for help on using the changeset viewer.