Changeset 812f274 in orbit for iOS


Ignore:
Timestamp:
10/22/13 15:47:20 (7 years ago)
Author:
Steve Castellotti <sc@…>
Branches:
master, Servo
Children:
e6618f3
Parents:
4f6c02b
Message:
  • Fixes to display correct status image
Location:
iOS/Orbit
Files:
2 edited

Legend:

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

    r3434fbc r812f274  
    108108- (int) statusFromSignal: (float)signalLevel power:(float)powerLevel 
    109109{ 
    110    if (signalLevel < 0.9) { // weak signal 
     110    
     111//   NSLog(@"signalLevel: %f | powerLevel: %f", signalLevel, powerLevel); 
     112    
     113   if (signalLevel == 0.0) { // no signal 
     114      return STATUS_CONNECTING; 
     115   } 
     116    
     117   if (signalLevel < 100.0) { // poor signal 
    111118      return STATUS_CONNECTED; 
    112    } else if (powerLevel == 0.0) { // strong signal but thresholds not met 
     119   } 
     120    
     121   if (powerLevel == 0.0) { // strong signal but thresholds not met 
    113122      return STATUS_PROCESSING; 
    114123   } else { // flight command sent to orbit 
    115124      return STATUS_ACTIVE; 
    116125   } 
     126    
    117127} 
    118128 
Note: See TracChangeset for help on using the changeset viewer.