Ignore:
Timestamp:
12/29/13 12:16:01 (7 years ago)
Author:
Steve Castellotti <sc@…>
Branches:
master, Servo
Children:
4a94f92
Parents:
d42b042
Message:
  • Tilt Control UISwitch controls Throttle Only UISwitch
File:
1 edited

Legend:

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

    rd42b042 rd5f1a91  
    4040//   [switchTiltSensorControlThrottle addTarget:self action:@selector(changeSwitchTiltSensorControlThrottle:) forControlEvents:UIControlEventValueChanged]; 
    4141//   [self.view addSubview:switchTiltSensorControlThrottle]; 
     42    
     43   [_switchTiltSensorControlThrottle setOn:NO]; 
     44   [_switchTiltSensorControlThrottle setEnabled:NO]; 
    4245    
    4346} 
     
    121124   if([sender isOn]){ 
    122125      NSLog(@"DEBUG: Tilt Sensor Enabled"); 
     126      [_switchTiltSensorControlThrottle setEnabled:YES]; 
    123127   } else{ 
    124128      NSLog(@"DEBUG: Tilt Sensor Disabled"); 
     129      [_switchTiltSensorControlThrottle setOn:NO animated:YES]; 
     130      [_switchTiltSensorControlThrottle setEnabled:NO]; 
    125131   } 
    126132    
Note: See TracChangeset for help on using the changeset viewer.