WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
plant.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_PLANT_NPB_H_INCLUDED
8#define PB_WPI_PROTO_PLANT_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
27 double free_speed;
29
30
31/* Initializer values for message structs */
32#define wpi_proto_ProtobufDCMotor_init_default {0, 0, 0, 0, 0}
33#define wpi_proto_ProtobufDCMotor_init_zero {0, 0, 0, 0, 0}
34
35/* Field tags (for use in manual encoding/decoding) */
36#define wpi_proto_ProtobufDCMotor_nominal_voltage_tag 1
37#define wpi_proto_ProtobufDCMotor_stall_torque_tag 2
38#define wpi_proto_ProtobufDCMotor_stall_current_tag 3
39#define wpi_proto_ProtobufDCMotor_free_current_tag 4
40#define wpi_proto_ProtobufDCMotor_free_speed_tag 5
41
42/* Struct field encoding specification for nanopb */
43#define wpi_proto_ProtobufDCMotor_FIELDLIST(X, a) \
44X(a, STATIC, SINGULAR, DOUBLE, nominal_voltage, 1) \
45X(a, STATIC, SINGULAR, DOUBLE, stall_torque, 2) \
46X(a, STATIC, SINGULAR, DOUBLE, stall_current, 3) \
47X(a, STATIC, SINGULAR, DOUBLE, free_current, 4) \
48X(a, STATIC, SINGULAR, DOUBLE, free_speed, 5)
49#define wpi_proto_ProtobufDCMotor_CALLBACK NULL
50#define wpi_proto_ProtobufDCMotor_DEFAULT NULL
51
52/* Maximum encoded size of messages (where known) */
53#define WPI_PROTO_PLANT_NPB_H_MAX_SIZE wpi_proto_ProtobufDCMotor_size
54#define wpi_proto_ProtobufDCMotor_size 45
55
56
57#endif
struct _wpi_proto_ProtobufDCMotor wpi_proto_ProtobufDCMotor
Definition plant.npb.h:18
static const pb_msgdesc_t * msg_descriptor(void) noexcept
double free_speed
Definition plant.npb.h:27
double nominal_voltage
Definition plant.npb.h:23
static std::string_view msg_name(void) noexcept
double stall_torque
Definition plant.npb.h:24
static pb_filedesc_t file_descriptor(void) noexcept
double free_current
Definition plant.npb.h:26
double stall_current
Definition plant.npb.h:25
Definition pb.h:322
Definition pb.h:331