Zephyr Scientific Library (zscilib)
include
zsl
orientation
gravity.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2021 Kevin Townsend
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
23
#ifndef ZEPHYR_INCLUDE_ZSL_GRAVITY_H_
24
#define ZEPHYR_INCLUDE_ZSL_GRAVITY_H_
25
26
#include <
zsl/zsl.h
>
27
#include <
zsl/vectors.h
>
28
29
#ifdef __cplusplus
30
extern
"C"
{
31
#endif
32
48
int
zsl_grav_lat_alt
(
zsl_real_t
lat,
zsl_real_t
alt,
zsl_real_t
*g);
49
50
#ifdef __cplusplus
51
}
52
#endif
53
54
#endif
/* ZEPHYR_INCLUDE_ZSL_GRAVITY_H_ */
55
/* End of gravity group */
zsl_grav_lat_alt
int zsl_grav_lat_alt(zsl_real_t lat, zsl_real_t alt, zsl_real_t *g)
Calculates the geographical gravitational field based on latitude and altitude over the sea level.
vectors.h
API header file for vectors in zscilib.
zsl.h
API header file for zscilib.
zsl_real_t
double zsl_real_t
Definition:
zsl.h:51
Generated by
1.8.17