This repository was archived by the owner on Apr 8, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmag.h
More file actions
47 lines (39 loc) · 1.47 KB
/
mag.h
File metadata and controls
47 lines (39 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* Copyright (C) 2015-2018 Swift Navigation Inc.
* Contact: Swift Navigation <dev@swiftnav.com>
*
* This source is subject to the license found in the file 'LICENSE' which must
* be be distributed together with this source. All other rights reserved.
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
* EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
*/
/*****************************************************************************
* Automatically generated from yaml/swiftnav/sbp/mag.yaml
* with generate.py. Please do not hand edit!
*****************************************************************************/
/** \defgroup mag Mag
*
* * Magnetometer (mag) messages.
* \{ */
#ifndef LIBSBP_MAG_MESSAGES_H
#define LIBSBP_MAG_MESSAGES_H
#include "common.h"
/** Raw magnetometer data
*
* Raw data from the magnetometer.
*/
#define SBP_MSG_MAG_RAW 0x0902
typedef struct {
u32 tow; /**< Milliseconds since start of GPS week. If the high bit is set, the
time is unknown or invalid.
[ms] */
u8 tow_f; /**< Milliseconds since start of GPS week, fractional part
[ms / 256] */
s16 mag_x; /**< Magnetic field in the body frame X axis */
s16 mag_y; /**< Magnetic field in the body frame Y axis */
s16 mag_z; /**< Magnetic field in the body frame Z axis */
} msg_mag_raw_t;
/** \} */
#endif /* LIBSBP_MAG_MESSAGES_H */