WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
system.npb.h
Go to the documentation of this file.
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4/* Automatically generated nanopb header */
5/* Generated by nanopb-0.4.9 */
6
7#ifndef PB_WPI_PROTO_SYSTEM_NPB_H_INCLUDED
8#define PB_WPI_PROTO_SYSTEM_NPB_H_INCLUDED
9#include <pb.h>
10#include <span>
11#include <string_view>
12#include "wpimath.npb.h"
13
14#if PB_PROTO_HEADER_VERSION != 40
15#error Regenerate this file with the current version of nanopb generator.
16#endif
17
18/* Struct definitions */
20 static const pb_msgdesc_t* msg_descriptor(void) noexcept;
21 static std::string_view msg_name(void) noexcept;
22 static pb_filedesc_t file_descriptor(void) noexcept;
23
28 double free_speed;
30
32 static const pb_msgdesc_t* msg_descriptor(void) noexcept;
33 static std::string_view msg_name(void) noexcept;
34 static pb_filedesc_t file_descriptor(void) noexcept;
35
36 uint32_t num_states;
37 uint32_t num_inputs;
38 uint32_t num_outputs;
44
45
46/* Initializer values for message structs */
47#define wpi_proto_ProtobufDCMotor_init_default {0, 0, 0, 0, 0}
48#define wpi_proto_ProtobufLinearSystem_init_default {0, 0, 0, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
49#define wpi_proto_ProtobufDCMotor_init_zero {0, 0, 0, 0, 0}
50#define wpi_proto_ProtobufLinearSystem_init_zero {0, 0, 0, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
51
52/* Field tags (for use in manual encoding/decoding) */
53#define wpi_proto_ProtobufDCMotor_nominal_voltage_tag 1
54#define wpi_proto_ProtobufDCMotor_stall_torque_tag 2
55#define wpi_proto_ProtobufDCMotor_stall_current_tag 3
56#define wpi_proto_ProtobufDCMotor_free_current_tag 4
57#define wpi_proto_ProtobufDCMotor_free_speed_tag 5
58#define wpi_proto_ProtobufLinearSystem_num_states_tag 1
59#define wpi_proto_ProtobufLinearSystem_num_inputs_tag 2
60#define wpi_proto_ProtobufLinearSystem_num_outputs_tag 3
61#define wpi_proto_ProtobufLinearSystem_a_tag 4
62#define wpi_proto_ProtobufLinearSystem_b_tag 5
63#define wpi_proto_ProtobufLinearSystem_c_tag 6
64#define wpi_proto_ProtobufLinearSystem_d_tag 7
65
66/* Struct field encoding specification for nanopb */
67#define wpi_proto_ProtobufDCMotor_FIELDLIST(X, a) \
68X(a, STATIC, SINGULAR, DOUBLE, nominal_voltage, 1) \
69X(a, STATIC, SINGULAR, DOUBLE, stall_torque, 2) \
70X(a, STATIC, SINGULAR, DOUBLE, stall_current, 3) \
71X(a, STATIC, SINGULAR, DOUBLE, free_current, 4) \
72X(a, STATIC, SINGULAR, DOUBLE, free_speed, 5)
73#define wpi_proto_ProtobufDCMotor_CALLBACK NULL
74#define wpi_proto_ProtobufDCMotor_DEFAULT NULL
75
76#define wpi_proto_ProtobufLinearSystem_FIELDLIST(X, a_) \
77X(a_, STATIC, SINGULAR, UINT32, num_states, 1) \
78X(a_, STATIC, SINGULAR, UINT32, num_inputs, 2) \
79X(a_, STATIC, SINGULAR, UINT32, num_outputs, 3) \
80X(a_, CALLBACK, OPTIONAL, MESSAGE, a, 4) \
81X(a_, CALLBACK, OPTIONAL, MESSAGE, b, 5) \
82X(a_, CALLBACK, OPTIONAL, MESSAGE, c, 6) \
83X(a_, CALLBACK, OPTIONAL, MESSAGE, d, 7)
84#define wpi_proto_ProtobufLinearSystem_CALLBACK pb_default_field_callback
85#define wpi_proto_ProtobufLinearSystem_DEFAULT NULL
86#define wpi_proto_ProtobufLinearSystem_a_MSGTYPE wpi_proto_ProtobufMatrix
87#define wpi_proto_ProtobufLinearSystem_b_MSGTYPE wpi_proto_ProtobufMatrix
88#define wpi_proto_ProtobufLinearSystem_c_MSGTYPE wpi_proto_ProtobufMatrix
89#define wpi_proto_ProtobufLinearSystem_d_MSGTYPE wpi_proto_ProtobufMatrix
90
91/* Maximum encoded size of messages (where known) */
92/* wpi_proto_ProtobufLinearSystem_size depends on runtime parameters */
93#define WPI_PROTO_SYSTEM_NPB_H_MAX_SIZE wpi_proto_ProtobufDCMotor_size
94#define wpi_proto_ProtobufDCMotor_size 45
95
96
97#endif
struct pb_filedesc_s pb_filedesc_t
Definition pb.h:321
struct pb_msgdesc_s pb_msgdesc_t
Definition pb.h:330
struct pb_callback_s pb_callback_t
Definition pb.h:413
Definition system.npb.h:19
static const pb_msgdesc_t * msg_descriptor(void) noexcept
double free_speed
Definition system.npb.h:28
double nominal_voltage
Definition system.npb.h:24
static std::string_view msg_name(void) noexcept
double stall_torque
Definition system.npb.h:25
static pb_filedesc_t file_descriptor(void) noexcept
double free_current
Definition system.npb.h:27
double stall_current
Definition system.npb.h:26
Definition system.npb.h:31
uint32_t num_inputs
Definition system.npb.h:37
static std::string_view msg_name(void) noexcept
static pb_filedesc_t file_descriptor(void) noexcept
pb_callback_t b
Definition system.npb.h:40
pb_callback_t c
Definition system.npb.h:41
static const pb_msgdesc_t * msg_descriptor(void) noexcept
pb_callback_t a
Definition system.npb.h:39
pb_callback_t d
Definition system.npb.h:42
uint32_t num_states
Definition system.npb.h:36
uint32_t num_outputs
Definition system.npb.h:38
struct _wpi_proto_ProtobufLinearSystem wpi_proto_ProtobufLinearSystem
struct _wpi_proto_ProtobufDCMotor wpi_proto_ProtobufDCMotor