Changeset de10cbc in orbit for iOS/Orbit/Orbit/controllers/AdvancedViewController.m
- Timestamp:
- 08/02/13 19:00:35 (9 years ago)
- Branches:
- master, Servo, Tab_Interface, pyramid
- Children:
- 1472980
- Parents:
- ce0a7ee
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
iOS/Orbit/Orbit/controllers/AdvancedViewController.m
rce0a7ee rde10cbc 53 53 - (void) adjustValues 54 54 { 55 55 [signalConverter setYaw:[self yawValue]throttle:[self throttleValue] pitch:[self pitchValue]]; 56 } 57 58 - (int) yawValue 59 { 60 return round(yaw.value * 100); 61 } 62 63 - (int) pitchValue 64 { 65 return round(pitch.value * 100); 66 } 67 68 - (int) throttleValue 69 { 70 return round(throttle.value * 100); 71 } 72 73 - (IBAction) resetButtonPressed:(id)button 74 { 75 pitch.value = 0.5; 76 yaw.value = 0.5; 77 throttle.value = 0.5; 78 NSString *zero = @"0%"; 79 throttlePercent.text = zero; 80 yawPercent.text = zero; 81 pitchPercent.text = zero; 82 [self adjustValues]; 56 83 } 57 84
Note: See TracChangeset
for help on using the changeset viewer.