Replace your code with this.
-(void)viewDidLoad {
[super viewDidLoad];
/*Register for application lifecycle notifications so we known when to connect and disconnect from the robot*/
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(appDidBecomeActive:) name:UIApplicationDidBecomeActiveNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(appWillResignActive:) name:UIApplicationWillResignActiveNotification object:nil];
/*Only start the blinking loop when the view loads*/
robotOnline = NO;
calibrateHandler = [[RUICalibrateGestureHandler alloc] initWithView:self.view];
}