Ignore:
Timestamp:
08/27/13 02:28:13 (7 years ago)
Author:
Steve Castellotti <sc@…>
Branches:
master, Servo, Tab_Interface, pyramid
Children:
ad80ed2
Parents:
6bdfe8d
Message:

Orbit:

  • Signal bar now updating correctly

Tutorial:

  • additional text added to step 6
File:
1 edited

Legend:

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

    rba2b6ff rd249b65  
    8585                          power: (float)powerLevel 
    8686{ 
    87     self.signal.progress = signalStrength; 
    88     self.signalPercent.text = [NSString stringWithFormat:@"%i%%", (int)(signalStrength * 100)]; 
     87    
     88//   self.signal.progress = (int)(signalStrength); 
     89    self.signal.progress = signalStrength / 100; 
     90//    NSLog(@"Setting self.signal.progress: %f", signalStrength / 100); 
     91    
     92    self.signalPercent.text = [NSString stringWithFormat:@"%i%%", (int)(signalStrength)]; 
    8993    self.attention.progress = attentionLevel; 
    9094    self.attentionPercent.text = [NSString stringWithFormat:@"%i%%", (int)(attentionLevel * 100)]; 
Note: See TracChangeset for help on using the changeset viewer.