WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
controller.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_CONTROLLER_NPB_H_INCLUDED
8#define PB_WPI_PROTO_CONTROLLER_NPB_H_INCLUDED
9#include <pb.h>
10#include <span>
11#include <string_view>
12
13#if PB_PROTO_HEADER_VERSION != 40
14#error Regenerate this file with the current version of nanopb generator.
15#endif
16
17/* Struct definitions */
19 static const pb_msgdesc_t* msg_descriptor(void) noexcept;
20 static std::string_view msg_name(void) noexcept;
21 static pb_filedesc_t file_descriptor(void) noexcept;
22
23 double ks;
24 double kg;
25 double kv;
26 double ka;
27 double dt;
29
31 static const pb_msgdesc_t* msg_descriptor(void) noexcept;
32 static std::string_view msg_name(void) noexcept;
33 static pb_filedesc_t file_descriptor(void) noexcept;
34
35 double kv_linear;
36 double ka_linear;
37 double kv_angular;
38 double ka_angular;
40
42 static const pb_msgdesc_t* msg_descriptor(void) noexcept;
43 static std::string_view msg_name(void) noexcept;
44 static pb_filedesc_t file_descriptor(void) noexcept;
45
46 double ks;
47 double kg;
48 double kv;
49 double ka;
50 double dt;
52
54 static const pb_msgdesc_t* msg_descriptor(void) noexcept;
55 static std::string_view msg_name(void) noexcept;
56 static pb_filedesc_t file_descriptor(void) noexcept;
57
58 double ks;
59 double kv;
60 double ka;
61 double dt;
63
65 static const pb_msgdesc_t* msg_descriptor(void) noexcept;
66 static std::string_view msg_name(void) noexcept;
67 static pb_filedesc_t file_descriptor(void) noexcept;
68
69 double left;
70 double right;
72
73
74/* Initializer values for message structs */
75#define wpi_proto_ProtobufArmFeedforward_init_default {0, 0, 0, 0, 0}
76#define wpi_proto_ProtobufDifferentialDriveFeedforward_init_default {0, 0, 0, 0}
77#define wpi_proto_ProtobufElevatorFeedforward_init_default {0, 0, 0, 0, 0}
78#define wpi_proto_ProtobufSimpleMotorFeedforward_init_default {0, 0, 0, 0}
79#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_init_default {0, 0}
80#define wpi_proto_ProtobufArmFeedforward_init_zero {0, 0, 0, 0, 0}
81#define wpi_proto_ProtobufDifferentialDriveFeedforward_init_zero {0, 0, 0, 0}
82#define wpi_proto_ProtobufElevatorFeedforward_init_zero {0, 0, 0, 0, 0}
83#define wpi_proto_ProtobufSimpleMotorFeedforward_init_zero {0, 0, 0, 0}
84#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_init_zero {0, 0}
85
86/* Field tags (for use in manual encoding/decoding) */
87#define wpi_proto_ProtobufArmFeedforward_ks_tag 1
88#define wpi_proto_ProtobufArmFeedforward_kg_tag 2
89#define wpi_proto_ProtobufArmFeedforward_kv_tag 3
90#define wpi_proto_ProtobufArmFeedforward_ka_tag 4
91#define wpi_proto_ProtobufArmFeedforward_dt_tag 5
92#define wpi_proto_ProtobufDifferentialDriveFeedforward_kv_linear_tag 1
93#define wpi_proto_ProtobufDifferentialDriveFeedforward_ka_linear_tag 2
94#define wpi_proto_ProtobufDifferentialDriveFeedforward_kv_angular_tag 3
95#define wpi_proto_ProtobufDifferentialDriveFeedforward_ka_angular_tag 4
96#define wpi_proto_ProtobufElevatorFeedforward_ks_tag 1
97#define wpi_proto_ProtobufElevatorFeedforward_kg_tag 2
98#define wpi_proto_ProtobufElevatorFeedforward_kv_tag 3
99#define wpi_proto_ProtobufElevatorFeedforward_ka_tag 4
100#define wpi_proto_ProtobufElevatorFeedforward_dt_tag 5
101#define wpi_proto_ProtobufSimpleMotorFeedforward_ks_tag 1
102#define wpi_proto_ProtobufSimpleMotorFeedforward_kv_tag 2
103#define wpi_proto_ProtobufSimpleMotorFeedforward_ka_tag 3
104#define wpi_proto_ProtobufSimpleMotorFeedforward_dt_tag 4
105#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_left_tag 1
106#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_right_tag 2
107
108/* Struct field encoding specification for nanopb */
109#define wpi_proto_ProtobufArmFeedforward_FIELDLIST(X, a) \
110X(a, STATIC, SINGULAR, DOUBLE, ks, 1) \
111X(a, STATIC, SINGULAR, DOUBLE, kg, 2) \
112X(a, STATIC, SINGULAR, DOUBLE, kv, 3) \
113X(a, STATIC, SINGULAR, DOUBLE, ka, 4) \
114X(a, STATIC, SINGULAR, DOUBLE, dt, 5)
115#define wpi_proto_ProtobufArmFeedforward_CALLBACK NULL
116#define wpi_proto_ProtobufArmFeedforward_DEFAULT NULL
117
118#define wpi_proto_ProtobufDifferentialDriveFeedforward_FIELDLIST(X, a) \
119X(a, STATIC, SINGULAR, DOUBLE, kv_linear, 1) \
120X(a, STATIC, SINGULAR, DOUBLE, ka_linear, 2) \
121X(a, STATIC, SINGULAR, DOUBLE, kv_angular, 3) \
122X(a, STATIC, SINGULAR, DOUBLE, ka_angular, 4)
123#define wpi_proto_ProtobufDifferentialDriveFeedforward_CALLBACK NULL
124#define wpi_proto_ProtobufDifferentialDriveFeedforward_DEFAULT NULL
125
126#define wpi_proto_ProtobufElevatorFeedforward_FIELDLIST(X, a) \
127X(a, STATIC, SINGULAR, DOUBLE, ks, 1) \
128X(a, STATIC, SINGULAR, DOUBLE, kg, 2) \
129X(a, STATIC, SINGULAR, DOUBLE, kv, 3) \
130X(a, STATIC, SINGULAR, DOUBLE, ka, 4) \
131X(a, STATIC, SINGULAR, DOUBLE, dt, 5)
132#define wpi_proto_ProtobufElevatorFeedforward_CALLBACK NULL
133#define wpi_proto_ProtobufElevatorFeedforward_DEFAULT NULL
134
135#define wpi_proto_ProtobufSimpleMotorFeedforward_FIELDLIST(X, a) \
136X(a, STATIC, SINGULAR, DOUBLE, ks, 1) \
137X(a, STATIC, SINGULAR, DOUBLE, kv, 2) \
138X(a, STATIC, SINGULAR, DOUBLE, ka, 3) \
139X(a, STATIC, SINGULAR, DOUBLE, dt, 4)
140#define wpi_proto_ProtobufSimpleMotorFeedforward_CALLBACK NULL
141#define wpi_proto_ProtobufSimpleMotorFeedforward_DEFAULT NULL
142
143#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_FIELDLIST(X, a) \
144X(a, STATIC, SINGULAR, DOUBLE, left, 1) \
145X(a, STATIC, SINGULAR, DOUBLE, right, 2)
146#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_CALLBACK NULL
147#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_DEFAULT NULL
148
149/* Maximum encoded size of messages (where known) */
150#define WPI_PROTO_CONTROLLER_NPB_H_MAX_SIZE wpi_proto_ProtobufArmFeedforward_size
151#define wpi_proto_ProtobufArmFeedforward_size 45
152#define wpi_proto_ProtobufDifferentialDriveFeedforward_size 36
153#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_size 18
154#define wpi_proto_ProtobufElevatorFeedforward_size 45
155#define wpi_proto_ProtobufSimpleMotorFeedforward_size 36
156
157
158#endif
struct _wpi_proto_ProtobufArmFeedforward wpi_proto_ProtobufArmFeedforward
struct _wpi_proto_ProtobufElevatorFeedforward wpi_proto_ProtobufElevatorFeedforward
struct _wpi_proto_ProtobufDifferentialDriveWheelVoltages wpi_proto_ProtobufDifferentialDriveWheelVoltages
struct _wpi_proto_ProtobufSimpleMotorFeedforward wpi_proto_ProtobufSimpleMotorFeedforward
struct _wpi_proto_ProtobufDifferentialDriveFeedforward wpi_proto_ProtobufDifferentialDriveFeedforward
Definition controller.npb.h:18
double ka
Definition controller.npb.h:26
static const pb_msgdesc_t * msg_descriptor(void) noexcept
static pb_filedesc_t file_descriptor(void) noexcept
double dt
Definition controller.npb.h:27
double kv
Definition controller.npb.h:25
double ks
Definition controller.npb.h:23
double kg
Definition controller.npb.h:24
static std::string_view msg_name(void) noexcept
double ka_angular
Definition controller.npb.h:38
double ka_linear
Definition controller.npb.h:36
static pb_filedesc_t file_descriptor(void) noexcept
double kv_linear
Definition controller.npb.h:35
static const pb_msgdesc_t * msg_descriptor(void) noexcept
static std::string_view msg_name(void) noexcept
double kv_angular
Definition controller.npb.h:37
static const pb_msgdesc_t * msg_descriptor(void) noexcept
static pb_filedesc_t file_descriptor(void) noexcept
double right
Definition controller.npb.h:70
static std::string_view msg_name(void) noexcept
double left
Definition controller.npb.h:69
Definition controller.npb.h:41
static std::string_view msg_name(void) noexcept
static const pb_msgdesc_t * msg_descriptor(void) noexcept
double kg
Definition controller.npb.h:47
static pb_filedesc_t file_descriptor(void) noexcept
double ks
Definition controller.npb.h:46
double ka
Definition controller.npb.h:49
double kv
Definition controller.npb.h:48
double dt
Definition controller.npb.h:50
Definition controller.npb.h:53
double kv
Definition controller.npb.h:59
static pb_filedesc_t file_descriptor(void) noexcept
static const pb_msgdesc_t * msg_descriptor(void) noexcept
double ks
Definition controller.npb.h:58
double ka
Definition controller.npb.h:60
double dt
Definition controller.npb.h:61
static std::string_view msg_name(void) noexcept
Definition pb.h:322
Definition pb.h:331