Changes

Jump to navigation Jump to search
7 bytes added ,  01:38, 23 June 2017
Line 239: Line 239:  
bool myStingr.gesture(struct gesture gest);
 
bool myStingr.gesture(struct gesture gest);
 
</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. <br/>
 +
 
 
<code>
 
<code>
 
bool myStingr.gesture(byte type, byte flags, byte dest, char[] data);
 
bool myStingr.gesture(byte type, byte flags, byte dest, char[] data);

Navigation menu