Skip to content

Commit 05ca16a

Browse files
committed
Generated files
1 parent 07c7674 commit 05ca16a

32 files changed

+1230
-1057
lines changed

c/include/libsbp/cpp/message_traits.h

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,13 +1057,13 @@ struct MessageTraits<msg_linux_sys_state_t> {
10571057

10581058

10591059
template<>
1060-
struct MessageTraits<msg_linux_process_socket_counts_t> {
1060+
struct MessageTraits<msg_proc_socket_counts_t> {
10611061
static constexpr u16 id = 32515;
10621062
};
10631063

10641064

10651065
template<>
1066-
struct MessageTraits<msg_linux_process_socket_queues_t> {
1066+
struct MessageTraits<msg_proc_socket_queues_t> {
10671067
static constexpr u16 id = 32516;
10681068
};
10691069

@@ -1075,13 +1075,13 @@ struct MessageTraits<msg_linux_socket_usage_t> {
10751075

10761076

10771077
template<>
1078-
struct MessageTraits<msg_linux_process_fd_count_t> {
1078+
struct MessageTraits<msg_proc_fd_count_t> {
10791079
static constexpr u16 id = 32518;
10801080
};
10811081

10821082

10831083
template<>
1084-
struct MessageTraits<msg_linux_process_fd_summary_t> {
1084+
struct MessageTraits<msg_linux_fd_summary_t> {
10851085
static constexpr u16 id = 32519;
10861086
};
10871087

@@ -1140,24 +1140,6 @@ struct MessageTraits<msg_soln_meta_t> {
11401140
};
11411141

11421142

1143-
template<>
1144-
struct MessageTraits<gnss_input_type_t> {
1145-
static constexpr u16 id = 65511;
1146-
};
1147-
1148-
1149-
template<>
1150-
struct MessageTraits<imu_input_type_t> {
1151-
static constexpr u16 id = 65512;
1152-
};
1153-
1154-
1155-
template<>
1156-
struct MessageTraits<odo_input_type_t> {
1157-
static constexpr u16 id = 65513;
1158-
};
1159-
1160-
11611143
template<>
11621144
struct MessageTraits<msg_heartbeat_t> {
11631145
static constexpr u16 id = 65535;

c/include/libsbp/linux.h

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ SBP_PACK_START
3333
* This message indicates the process state of the top 10 heaviest
3434
* consumers of CPU on the system.
3535
*/
36-
#define SBP_MSG_LINUX_CPU_STATE 0x7F00
36+
#define SBP_MSG_LINUX_CPU_STATE 0x7F00
3737
typedef struct SBP_ATTR_PACKED {
3838
u8 index; /**< sequence of this status message, values from 0-9 */
3939
u16 pid; /**< the PID of the process */
@@ -43,12 +43,12 @@ typedef struct SBP_ATTR_PACKED {
4343
} msg_linux_cpu_state_t;
4444

4545

46-
/** List CPU state on the system
46+
/** List CPU state on the linux system
4747
*
4848
* This message indicates the process state of the top 10 heaviest
4949
* consumers of memory on the system.
5050
*/
51-
#define SBP_MSG_LINUX_MEM_STATE 0x7F01
51+
#define SBP_MSG_LINUX_MEM_STATE 0x7F01
5252
typedef struct SBP_ATTR_PACKED {
5353
u8 index; /**< sequence of this status message, values from 0-9 */
5454
u16 pid; /**< the PID of the process */
@@ -62,7 +62,7 @@ typedef struct SBP_ATTR_PACKED {
6262
*
6363
* This presents a summary of CPU and memory utilization.
6464
*/
65-
#define SBP_MSG_LINUX_SYS_STATE 0x7F02
65+
#define SBP_MSG_LINUX_SYS_STATE 0x7F02
6666
typedef struct SBP_ATTR_PACKED {
6767
u16 mem_total; /**< total system memory */
6868
u8 pcpu; /**< percent of total cpu currently utilized */
@@ -73,11 +73,11 @@ typedef struct SBP_ATTR_PACKED {
7373
} msg_linux_sys_state_t;
7474

7575

76-
/** A list of processes with high socket counts
76+
/** A list of linux processes with high socket counts
7777
*
7878
* Top 10 list of processes with high socket counts.
7979
*/
80-
#define SBP_MSG_LINUX_PROCESS_SOCKET_COUNTS 0x7F03
80+
#define SBP_MSG_PROC_SOCKET_COUNTS 0x7F03
8181
typedef struct SBP_ATTR_PACKED {
8282
u8 index; /**< sequence of this status message, values from 0-9 */
8383
u16 pid; /**< the PID of the process in question */
@@ -93,14 +93,14 @@ typedef struct SBP_ATTR_PACKED {
9393
and 0x8000 (unknown)
9494
*/
9595
char cmdline[0]; /**< the command line of the process in question */
96-
} msg_linux_process_socket_counts_t;
96+
} msg_proc_socket_counts_t;
9797

9898

99-
/** A list of processes with deep socket queues
99+
/** A list of linux processes with deep socket queues
100100
*
101101
* Top 10 list of sockets with deep queues.
102102
*/
103-
#define SBP_MSG_LINUX_PROCESS_SOCKET_QUEUES 0x7F04
103+
#define SBP_MSG_PROC_SOCKET_QUEUES 0x7F04
104104
typedef struct SBP_ATTR_PACKED {
105105
u8 index; /**< sequence of this status message, values from 0-9 */
106106
u16 pid; /**< the PID of the process in question */
@@ -120,14 +120,14 @@ typedef struct SBP_ATTR_PACKED {
120120
of the connection.
121121
*/
122122
char cmdline[0]; /**< the command line of the process in question */
123-
} msg_linux_process_socket_queues_t;
123+
} msg_proc_socket_queues_t;
124124

125125

126-
/** Summary of socket usage across the system
126+
/** Summary of socket usage across the linux system
127127
*
128128
* Summaries the socket usage across the system.
129129
*/
130-
#define SBP_MSG_LINUX_SOCKET_USAGE 0x7F05
130+
#define SBP_MSG_LINUX_SOCKET_USAGE 0x7F05
131131
typedef struct SBP_ATTR_PACKED {
132132
u32 avg_queue_depth; /**< average socket queue depths across all sockets on the system */
133133
u32 max_queue_depth; /**< the max queue depth seen within the reporting period */
@@ -140,32 +140,32 @@ the first entry corresponds to the first enabled bit in `types_reported`.
140140
} msg_linux_socket_usage_t;
141141

142142

143-
/** Summary of processes with large amounts of open file descriptors
143+
/** Summary of linux processes with large amounts of open file descriptors
144144
*
145145
* Top 10 list of processes with a large number of open file descriptors.
146146
*/
147-
#define SBP_MSG_LINUX_PROCESS_FD_COUNT 0x7F06
147+
#define SBP_MSG_PROC_FD_COUNT 0x7F06
148148
typedef struct SBP_ATTR_PACKED {
149149
u8 index; /**< sequence of this status message, values from 0-9 */
150150
u16 pid; /**< the PID of the process in question */
151151
u16 fd_count; /**< a count of the number of file descriptors opened by the process */
152152
char cmdline[0]; /**< the command line of the process in question */
153-
} msg_linux_process_fd_count_t;
153+
} msg_proc_fd_count_t;
154154

155155

156-
/** Summary of open file descriptors on the system
156+
/** Summary of open file descriptors on the linux system
157157
*
158158
* Summary of open file descriptors on the system.
159159
*/
160-
#define SBP_MSG_LINUX_PROCESS_FD_SUMMARY 0x7F07
160+
#define SBP_MSG_LINUX_FD_SUMMARY 0x7F07
161161
typedef struct SBP_ATTR_PACKED {
162162
u32 sys_fd_count; /**< count of total FDs open on the system */
163163
char most_opened[0]; /**< A null delimited list of strings which alternates between
164164
a string representation of the process count and the file
165165
name whose count it being reported. That is, in C string
166166
syntax "32\0/var/log/syslog\012\0/tmp/foo\0" with the end
167167
of the list being 2 NULL terminators in a row. */
168-
} msg_linux_process_fd_summary_t;
168+
} msg_linux_fd_summary_t;
169169

170170

171171
/** \} */

c/include/libsbp/solution_meta.h

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -55,46 +55,40 @@ typedef struct SBP_ATTR_PACKED {
5555
u16 vdop; /**< Vertical Dilution of Precision, as per last available DOPS from Starling GNSS engine [0.01] */
5656
u8 n_sats; /**< Number of satellites, as per last available solution from Starling GNSS engine */
5757
u16 age_corrections; /**< Age of the corrections (0xFFFF indicates invalid), as per last available AGE_CORRECTIONS from Starling GNSS engine [deciseconds] */
58-
u8 alignment_status; /**< Bits for reason why it cannot align (yet) */
58+
u8 alignment_status; /**< State of alignment and the status and receipt of the alignment inputs */
5959
u32 last_used_gnss_pos_tow; /**< Tow of last-used GNSS position measurement [ms] */
6060
u32 last_used_gnss_vel_tow; /**< Tow of last-used GNSS velocity measurement [ms] */
6161
solution_input_type_t sol_in[0]; /**< Array of Metadata describing the sensors potentially involved in the solution. Each element in the array represents a single sensor type and consists of flags containing (meta)data pertaining to that specific single sensor. Refer to each (XX)InputType descriptor in the present doc. */
6262
} msg_soln_meta_t;
6363

6464

65-
/** Flags for a given GNSS sensor used as input for the fuzed solution.
65+
/** Instruments the physical type of GNSS sensor input to the fuzed solution.
6666
*
67-
* Metadata around the GNSS sensors involved in the fuzed solution. Accessible through sol_in[N].flags
68-
* in a MSG_SOLN_META.
69-
* Note: Just to build descriptive tables in documentation and not actually used.
67+
* Metadata around the GNSS sensors involved in the fuzed solution.
68+
* Accessible through sol_in[N].flags in a MSG_SOLN_META.
7069
*/
71-
#define SBP_GNSSInputType 0xFFE7
7270
typedef struct SBP_ATTR_PACKED {
7371
u8 flags; /**< flags that store all relevant info specific to this sensor type. */
7472
} gnss_input_type_t;
7573

7674

77-
/** Flags for a given IMU sensor used as input for the fuzed solution.
75+
/** Provides detail about the IMU sensor, its timestamping mode, and its quality for input to the fuzed solution.
7876
*
79-
* Metadata around the IMU sensors involved in the fuzed solution. Accessible through sol_in[N].flags
80-
* in a MSG_SOLN_META.
81-
* Note: Just to build descriptive tables in documentation and not actually used.
77+
* Metadata around the IMU sensors involved in the fuzed solution.
78+
* Accessible through sol_in[N].flags in a MSG_SOLN_META.
8279
*/
83-
#define SBP_IMUInputType 0xFFE8
8480
typedef struct SBP_ATTR_PACKED {
85-
u8 flags; /**< flags that store all relevant info specific to this sensor type. */
81+
u8 flags; /**< Instrument time, grade, and architecture for a sensor. */
8682
} imu_input_type_t;
8783

8884

89-
/** Flags for a given Odometry sensor used as input for the fuzed solution.
85+
/** Provides detail about the Odometry sensor, its timestamping mode, and its quality for input to the fuzed solution.
9086
*
91-
* Metadata around the Odometry sensors involved in the fuzed solution. Accessible through sol_in[N].flags
92-
* in a MSG_SOLN_META.
93-
* Note: Just to build descriptive tables in documentation and not actually used.
87+
* Metadata around the Odometry sensors involved in the fuzed solution.
88+
* Accessible through sol_in[N].flags in a MSG_SOLN_META.
9489
*/
95-
#define SBP_OdoInputType 0xFFE9
9690
typedef struct SBP_ATTR_PACKED {
97-
u8 flags; /**< flags that store all relevant info specific to this sensor type. */
91+
u8 flags; /**< Instrument ODO rate, grade, and quality. */
9892
} odo_input_type_t;
9993

10094

docs/sbp.pdf

260 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)