Changeset 9a24f48 in orbit


Ignore:
Timestamp:
12/30/13 13:37:59 (6 years ago)
Author:
Steve Castellotti <sc@…>
Branches:
master, Servo
Children:
ac59750
Parents:
bfa2ba1
Message:
  • realtime Tilt Sensor control updates fixed
Location:
iOS/Orbit
Files:
2 edited

Legend:

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

    rbfa2ba1 r9a24f48  
    189189         pitch.value = newPitch; 
    190190          
    191          [self adjustValues]; 
    192           
    193191      } // Pitch/Yaw Tilt Control 
    194192       
     
    199197         double tiltY = acceleration.y * -1;  // invert the Y axis so that negative values equal forward 
    200198          
    201          throttle.value = defaultControlThrottle - (tiltY - referenceTiltY);         
     199         throttle.value = defaultControlThrottle - (tiltY - referenceTiltY); 
    202200          
    203201      } // Throttle Tilt Control 
     202       
     203 
     204      [self adjustValues]; 
    204205       
    205206   } 
Note: See TracChangeset for help on using the changeset viewer.