Changes

Jump to navigation Jump to search
1,171 bytes added ,  01:28, 23 June 2017
Line 329: Line 329:  
</code><br />
 
</code><br />
 
Returns battery pack capacity (0-1000), as determined by the Core BMS.
 
Returns battery pack capacity (0-1000), as determined by the Core BMS.
 +
 +
=== Avionics Functions ===
 +
These are STINGR functions reserved to the avionics, and will not be processed if called by any board that isn't the avionics (this is verified by comparing the source identifier to the internal list of identifiers).
 +
 +
<code>
 +
myStringr.setSilent(byte identifier);
 +
</code><br />
 +
Sets the specified board to silent mode.
 +
 +
<code>
 +
myStringr.setStandard(byte identifier);
 +
</code><br />
 +
Sets the specified board to standard mode.
 +
 +
<code>
 +
myStringr.setAllSilent();
 +
</code><br />
 +
Sets all boards to silent mode.
 +
 +
<code>
 +
myStringr.setAllStandard();
 +
</code><br />
 +
Sets all boards to standard mode.
 +
 +
<code>
 +
myStringr.disable(byte identifier);
 +
</code><br />
 +
Sends a specialty gesture to the specified board to cease all operations, except STINGR response handling.
 +
 +
<code>
 +
myStringr.enable(byte identifier);
 +
</code><br />
 +
Sends a speciality gesture to the specified board to resume all operations.
 +
 +
<code>
 +
myStringr.disableAll();
 +
</code><br />
 +
Sends a speciality gesture to all boards to cease all operations, except STINGR response handling.
 +
 +
<code>
 +
myStringr.enableAll();
 +
</code><br />
 +
Sends a speciality gesture to all boards to resume all operations.

Navigation menu