Inclinometer reading. An inclinometer's reading is expressed in radians, and will be in the range [-M_PI/2,M_PI/2]. As the value is the result of an analog to digital conversion, it may lie slightly outside this interval. To be useful, an inclinometer has two axes: X and Y.
Interpret inclination tag.
- Parameters
-
| st | Pointer to status data (must coincide with start of tag). |
[out] | out | Inclination written here. |
- Return values
-
Interprets inclination tag at st, storing the result in out.
Compose a inclination tag.
- Parameters
-
buf | Buffer to write result into. |
in | Inclination. |
Encodes the inclination in in, appending the result onto buf.
int soh_store_get_inclination |
( |
const struct soh_store_t * |
store, |
|
|
struct iso8601_date * |
timestamp, |
|
|
struct unified_status_inclination_t * |
inclination |
|
) |
| |
Retrieve inclination from persistent store object.
- Parameters
-
| store | Persistent storage object. |
[out] | timestamp | Timestamp of last update. May be 0. |
[out] | inclination | Inclination structure. May be 0. |
- Return values
-
0 | on success. |
-1 | on error (no status information seen). |