-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgps_ubloxTypes.hpp
87 lines (78 loc) · 2.92 KB
/
gps_ubloxTypes.hpp
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#ifndef gps_ublox_TYPES_HPP
#define gps_ublox_TYPES_HPP
#include <cstdint>
#include <gps_ublox/cfg.hpp>
#include <gps_ublox/RTKInfo.hpp>
namespace gps_ublox {
/**
* Component configuration namespace
*/
namespace configuration {
/**
* Rate of periodic messages sent by the device (per second, per epoch)
*
* Set a rate to zero to disable
*/
struct MessageRates {
/** NAV-PVT message period in solution periods. Controls pose_samples
* and gps_solution outputs
*/
uint8_t nav_pvt = 1;
/** NAV-RELPOSNED message period in solution periods. Controls
* the rtk_relative_position_samples output
*/
uint8_t nav_relposned = 0;
/** NAV-SIG message period in solution periods. Controls
* signal_info
*/
uint8_t nav_sig = 10;
/** NAV-SAT message period in solution periods. Control satellite_info
*/
uint8_t nav_sat = 10;
/** MON-COMMS message period in solution periods. Controls comms_info
*/
uint8_t mon_comms = 0;
/** MON-RF message period in solution periods. Controls
* rf_info outpus
*/
uint8_t mon_rf = 10;
/** Control of the rtk_info output
*
* This is actually an aggregate of messages. Part of the structure
* is filled with NAV-SAT (controlled with nav_sat)
*/
uint8_t rtk_info = 0;
};
/**
* Device's internal odometer configuration
*/
struct Odometer {
bool enabled = true;
bool low_speed_course_over_ground_filter = true;
bool output_low_pass_filtered_velocity = true;
bool output_low_pass_filtered_heading = true;
OdometerProfile odometer_profile = ODOM_SWIMMING;
uint8_t upper_speed_limit_for_heading_filter = 5;
uint8_t max_position_accuracy_for_low_speed_heading_filter = 5;
uint8_t velocity_low_pass_filter_level = 1;
uint8_t heading_low_pass_filter_level = 1;
};
/**
* Navigtation solutions configuration
*/
struct Navigation {
base::Time position_measurement_period = base::Time::fromMilliseconds(1000);
uint16_t measurements_per_solution_ratio = 1;
MeasurementRefTime measurement_ref_time = MEASUREMENT_REF_TIME_GPS;
DynamicModel dynamic_model = DYNAMIC_MODEL_PORTABLE;
/** Speed below which the receiver is considered static (in m/s)
*
* Resolution is 1cm
*/
float speed_threshold = 0;
/** Distance above which GNSSbased stationary motion is exit (m) */
int static_hold_distance_threshold = 0;
};
}
}
#endif