Changeset 7f21a20 in orbit


Ignore:
Timestamp:
12/30/13 04:54:07 (6 years ago)
Author:
Steve Castellotti <sc@…>
Branches:
master, Servo
Children:
876e42b
Parents:
0a45bc8
Message:
  • Presets implemented
Location:
iOS/Orbit/Orbit
Files:
2 edited

Legend:

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

    r0a45bc8 r7f21a20  
    9191 
    9292- (IBAction) hoverButtonPressed:(id)sender { 
    93    NSLog(@"DEBUG: hoverButtonPressed"); 
     93   [self resetButtonPressed:(sender)]; 
     94    
    9495} 
    9596 
    9697- (IBAction) forwardButtonPressed:(id)sender { 
    9798   NSLog(@"DEBUG: forwardButtonPressed"); 
     99    
     100   pitch.value = 0.8; 
     101   yaw.value = 0.5; 
     102   throttle.value = 0.5; 
     103   [self adjustValues]; 
     104    
    98105} 
    99106 
    100107- (IBAction) leftButtonPressed:(id)sender { 
    101108   NSLog(@"DEBUG: leftButtonPressed"); 
     109   pitch.value = 0.5; 
     110   yaw.value = 0.1; 
     111   throttle.value = 0.5; 
     112   [self adjustValues]; 
     113 
    102114} 
    103115 
    104116- (IBAction) rightButtonPressed:(id)sender { 
    105117   NSLog(@"DEBUG: rightButtonPressed"); 
     118   pitch.value = 0.5; 
     119   yaw.value = 0.9; 
     120   throttle.value = 0.5; 
     121   [self adjustValues]; 
     122 
    106123} 
    107124 
  • iOS/Orbit/Orbit/en.lproj/MainStoryboard.storyboard

    r0a45bc8 r7f21a20  
    227227                                <subviews> 
    228228                                    <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="center" text="Presets" lineBreakMode="wordWrap" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="CAH-Ea-FiL"> 
    229                                         <rect key="frame" x="9" y="20" width="49" height="20"/> 
     229                                        <rect key="frame" x="10" y="20" width="49" height="20"/> 
    230230                                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/> 
    231231                                        <fontDescription key="fontDescription" type="system" pointSize="14"/> 
Note: See TracChangeset for help on using the changeset viewer.