Developer World
Spresense SDK Library v3.2.0-ebc0364
physical_command.h
Go to the documentation of this file.
1/****************************************************************************
2 * modules/include/sensing/logical_sensor/physical_command.h
3 *
4 * Copyright 2018 Sony Semiconductor Solutions Corporation
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 *
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in
14 * the documentation and/or other materials provided with the
15 * distribution.
16 * 3. Neither the name of Sony Semiconductor Solutions Corporation nor
17 * the names of its contributors may be used to endorse or promote
18 * products derived from this software without specific prior written
19 * permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
28 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
29 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
31 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32 * POSSIBILITY OF SUCH DAMAGE.
33 *
34 ****************************************************************************/
35
36#ifndef __INCLUDE_SENSING_PHYSICAL_COMMAND_H
37#define __INCLUDE_SENSING_PHYSICAL_COMMAND_H
38
44/****************************************************************************
45 * Included Files
46 ****************************************************************************/
47
48#include <stdint.h>
49
54#ifdef __cplusplus
55extern "C" {
56#endif /* __cplusplus */
57
58/****************************************************************************
59 * Public Types
60 ****************************************************************************/
61
62/*--------------------------------------------------------------------------*/
67typedef struct {
68
69 float ax;
75 float ay;
81 float az;
88
89/*--------------------------------------------------------------------------*/
94typedef struct
95{
96 uint32_t time_stamp;
97 uint16_t sampling_rate;
98 uint16_t sample_num;
101
102/*--------------------------------------------------------------------------*/
107typedef struct
108{
109 uint32_t time_stamp;
110 uint16_t sampling_rate;
111 uint16_t sample_num;
112 FAR uint32_t *p_data;
114
115/*--------------------------------------------------------------------------*/
120typedef struct
121{
129 double latitude;
130 double longitude;
131 float direction;
134 float velocity;
135 uint32_t time_stamp;
136 uint8_t pos_fix_mode;
137 uint8_t vel_fix_mode;
139
140#ifdef __cplusplus
141};
142#endif
143
148#endif /* __INCLUDE_SENSING_PHYSICAL_COMMAND_H */
149
the frame of Barometer data.
Definition: physical_command.h:108
uint16_t sampling_rate
Definition: physical_command.h:110
FAR uint32_t * p_data
Definition: physical_command.h:112
uint32_t time_stamp
Definition: physical_command.h:109
uint16_t sample_num
Definition: physical_command.h:111
Definition: physical_command.h:121
double latitude
Definition: physical_command.h:129
double raw_longitude
Definition: physical_command.h:126
float direction
Definition: physical_command.h:131
double raw_latitude
Definition: physical_command.h:122
uint32_t time_stamp
Definition: physical_command.h:135
double longitude
Definition: physical_command.h:130
float velocity
Definition: physical_command.h:134
uint8_t vel_fix_mode
Definition: physical_command.h:137
uint8_t pos_fix_mode
Definition: physical_command.h:136
Definition: physical_command.h:95
FAR ThreeAxisSample * p_data
Definition: physical_command.h:99
uint16_t sampling_rate
Definition: physical_command.h:97
uint32_t time_stamp
Definition: physical_command.h:96
uint16_t sample_num
Definition: physical_command.h:98
Structure of physical sensor sample data using 3 axis.
Definition: physical_command.h:67
float az
Definition: physical_command.h:81
float ax
Definition: physical_command.h:69
float ay
Definition: physical_command.h:75