User Tools

Site Tools


drexel_duct_navigator_gui

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
drexel_duct_navigator_gui [2016/11/07 20:02] dwallacedrexel_duct_navigator_gui [2016/11/07 20:04] (current) dwallace
Line 96: Line 96:
 **Actions are called when we interact with objects in our GUI.  We need some of them too.  You can create them in the same way, just make sure you select action instead of outlet** **Actions are called when we interact with objects in our GUI.  We need some of them too.  You can create them in the same way, just make sure you select action instead of outlet**
  
-  (IBAction)setSteer:(id)sender;+  (IBAction)setSteer:(id)sender;
  
-  (IBAction)setPow:(id)sender;+  (IBAction)setPow:(id)sender;
  
-  (IBAction)setAuto:(id)sender;+  (IBAction)setAuto:(id)sender;
  
-  (IBAction)setManual:(id)sender;+  (IBAction)setManual:(id)sender;
  
 If you ever want to manually inspect your connections you can do so using the connection inspector in the utilities panel.   If you ever want to manually inspect your connections you can do so using the connection inspector in the utilities panel.  
Line 184: Line 184:
       udpSocket = [[AsyncUdpSocket alloc] initWithDelegate:self];   // allocate memory for the socket and initialize it       udpSocket = [[AsyncUdpSocket alloc] initWithDelegate:self];   // allocate memory for the socket and initialize it
       NSError *error = nil;   // create an NSError object and initialize it to nil       NSError *error = nil;   // create an NSError object and initialize it to nil
- +  
       if (![udpSocket bindToPort:0 error:&error])        // check to make sure binding was successful        if (![udpSocket bindToPort:0 error:&error])        // check to make sure binding was successful 
       {       {
Line 191: Line 191:
     }     }
     [udpSocket receiveWithTimeout:-1 tag:0];       [udpSocket receiveWithTimeout:-1 tag:0];  
-    +  
     NSLog(@"Ready");     NSLog(@"Ready");
-    +  
      }      }
- 
  
 Now a method (function) must be created to send data over UDP so we need to insert Now a method (function) must be created to send data over UDP so we need to insert
drexel_duct_navigator_gui.txt · Last modified: 2016/11/07 20:04 by dwallace