Changes

Jump to navigation Jump to search
221 bytes added ,  01:00, 23 June 2017
Line 224: Line 224:  
</code><br />
 
</code><br />
 
The gesture(struct gesture gest) is the primary means of sending data using STINGR. The method takes a valid gesture struct, formats it appropriately, parses it, and sends it through the flight stack over CAN. The method returns a boolean success flag -- true in the case of successful transmission, and false in the case of either failed transmission or invalid struct.
 
The gesture(struct gesture gest) is the primary means of sending data using STINGR. The method takes a valid gesture struct, formats it appropriately, parses it, and sends it through the flight stack over CAN. The method returns a boolean success flag -- true in the case of successful transmission, and false in the case of either failed transmission or invalid struct.
 +
<code>
 +
bool myStingr.gesture(byte type, byte flags, byte dest, char[] data);
 +
</code><br />
 +
This method is equivalent to the primary gesture method, but accepts the individual parameters as opposed to a filled-out struct.

Navigation menu