Returns the default battery mode encoded value for a given encoder shaft type.
Returns
The encoded default battery mode value corresponding to the shaft type:
- 0x5d for 'motor'
- 0x68 for 'driving'
- 0x00 if the shaft type is not specified or unknown
Parameters
Optional shaft: "motor" | "driving"
The type of encoder shaft. Can be 'motor' or 'driving'.
If omitted or unrecognized, returns a default fallback value.
Returns the default battery mode encoded value for a given encoder shaft type.
Returns
The encoded default battery mode value corresponding to the shaft type: -
0x5d
for'motor'
-0x68
for'driving'
-0x00
if the shaft type is not specified or unknown