CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/AP_ADSB/sagetech-sdk/toVel.c
Views: 1799
1
/**
2
* @copyright Copyright (c) 2021 Sagetech, Inc. All rights reserved.
3
*
4
* @file toVel.c
5
* @author Jacob.Garrison
6
*
7
* @date Mar 2, 2021
8
*
9
*/
10
11
#include "sgUtil.h"
12
13
#define SV_RES_VEL 0.125
14
15
/*
16
* Documented in the header file.
17
*/
18
double toVel(const uint8_t bytes[])
19
{
20
double value = toInt16(bytes);
21
value *= SV_RES_VEL;
22
23
return value;
24
}
25
26