drexel_duct_navigator_gui
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
drexel_duct_navigator_gui [2016/11/07 20:02] – dwallace | drexel_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: |
- | | + | (IBAction)setPow: |
- | | + | (IBAction)setAuto: |
- | | + | (IBAction)setManual: |
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: | udpSocket = [[AsyncUdpSocket alloc] initWithDelegate: | ||
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: | if (![udpSocket bindToPort: | ||
{ | { | ||
Line 191: | Line 191: | ||
} | } | ||
[udpSocket receiveWithTimeout: | [udpSocket receiveWithTimeout: | ||
- | + | | |
NSLog(@" | NSLog(@" | ||
- | | + | |
} | } | ||
- | |||
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