Line data Source code
1 : /** 2 : * @copyright Copyright (c) 2021 Sagetech, Inc. All rights reserved. 3 : * 4 : * @file toAlt.c 5 : * @author Jacob.Garrison 6 : * 7 : * @date Mar 2, 2021 8 : * 9 : */ 10 : 11 : #include "sgUtil.h" 12 : 13 : #define SV_RES_ALT 0.015625 14 : 15 : /* 16 : * Documented in the header file. 17 : */ 18 4155 : double toAlt(const uint8_t bytes[]) 19 : { 20 4155 : double value = toInt32(bytes); 21 4155 : value *= SV_RES_ALT; 22 : 23 4155 : return value; 24 : }