Loading…
Loading…
Method Name: met_encode
Method ID: 0x40CE
Method Label: Method encode
Method Help: Encode big numbers into the internal sensor representation
- {
- unsigned short exponent;
- unsigned short result;
- exponent = 0;
- if (input_value > 1600000)
- {
- exponent = 3;
- result = input_value / 1000;
- }
- else
- if (input_value > 160000)
- {
- exponent = 2;
- result = input_value / 100. + 0.5;
- }
Please login for more