WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
controller.npb.h File Reference
#include <pb.h>
#include <span>
#include <string_view>

Go to the source code of this file.

Classes

struct  _wpi_proto_ProtobufArmFeedforward
 
struct  _wpi_proto_ProtobufDifferentialDriveFeedforward
 
struct  _wpi_proto_ProtobufElevatorFeedforward
 
struct  _wpi_proto_ProtobufSimpleMotorFeedforward
 
struct  _wpi_proto_ProtobufDifferentialDriveWheelVoltages
 

Macros

#define wpi_proto_ProtobufArmFeedforward_init_default   {0, 0, 0, 0, 0}
 
#define wpi_proto_ProtobufDifferentialDriveFeedforward_init_default   {0, 0, 0, 0}
 
#define wpi_proto_ProtobufElevatorFeedforward_init_default   {0, 0, 0, 0, 0}
 
#define wpi_proto_ProtobufSimpleMotorFeedforward_init_default   {0, 0, 0, 0}
 
#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_init_default   {0, 0}
 
#define wpi_proto_ProtobufArmFeedforward_init_zero   {0, 0, 0, 0, 0}
 
#define wpi_proto_ProtobufDifferentialDriveFeedforward_init_zero   {0, 0, 0, 0}
 
#define wpi_proto_ProtobufElevatorFeedforward_init_zero   {0, 0, 0, 0, 0}
 
#define wpi_proto_ProtobufSimpleMotorFeedforward_init_zero   {0, 0, 0, 0}
 
#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_init_zero   {0, 0}
 
#define wpi_proto_ProtobufArmFeedforward_ks_tag   1
 
#define wpi_proto_ProtobufArmFeedforward_kg_tag   2
 
#define wpi_proto_ProtobufArmFeedforward_kv_tag   3
 
#define wpi_proto_ProtobufArmFeedforward_ka_tag   4
 
#define wpi_proto_ProtobufArmFeedforward_dt_tag   5
 
#define wpi_proto_ProtobufDifferentialDriveFeedforward_kv_linear_tag   1
 
#define wpi_proto_ProtobufDifferentialDriveFeedforward_ka_linear_tag   2
 
#define wpi_proto_ProtobufDifferentialDriveFeedforward_kv_angular_tag   3
 
#define wpi_proto_ProtobufDifferentialDriveFeedforward_ka_angular_tag   4
 
#define wpi_proto_ProtobufElevatorFeedforward_ks_tag   1
 
#define wpi_proto_ProtobufElevatorFeedforward_kg_tag   2
 
#define wpi_proto_ProtobufElevatorFeedforward_kv_tag   3
 
#define wpi_proto_ProtobufElevatorFeedforward_ka_tag   4
 
#define wpi_proto_ProtobufElevatorFeedforward_dt_tag   5
 
#define wpi_proto_ProtobufSimpleMotorFeedforward_ks_tag   1
 
#define wpi_proto_ProtobufSimpleMotorFeedforward_kv_tag   2
 
#define wpi_proto_ProtobufSimpleMotorFeedforward_ka_tag   3
 
#define wpi_proto_ProtobufSimpleMotorFeedforward_dt_tag   4
 
#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_left_tag   1
 
#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_right_tag   2
 
#define wpi_proto_ProtobufArmFeedforward_FIELDLIST(X, a)
 
#define wpi_proto_ProtobufArmFeedforward_CALLBACK   NULL
 
#define wpi_proto_ProtobufArmFeedforward_DEFAULT   NULL
 
#define wpi_proto_ProtobufDifferentialDriveFeedforward_FIELDLIST(X, a)
 
#define wpi_proto_ProtobufDifferentialDriveFeedforward_CALLBACK   NULL
 
#define wpi_proto_ProtobufDifferentialDriveFeedforward_DEFAULT   NULL
 
#define wpi_proto_ProtobufElevatorFeedforward_FIELDLIST(X, a)
 
#define wpi_proto_ProtobufElevatorFeedforward_CALLBACK   NULL
 
#define wpi_proto_ProtobufElevatorFeedforward_DEFAULT   NULL
 
#define wpi_proto_ProtobufSimpleMotorFeedforward_FIELDLIST(X, a)
 
#define wpi_proto_ProtobufSimpleMotorFeedforward_CALLBACK   NULL
 
#define wpi_proto_ProtobufSimpleMotorFeedforward_DEFAULT   NULL
 
#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_FIELDLIST(X, a)
 
#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_CALLBACK   NULL
 
#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_DEFAULT   NULL
 
#define WPI_PROTO_CONTROLLER_NPB_H_MAX_SIZE   wpi_proto_ProtobufArmFeedforward_size
 
#define wpi_proto_ProtobufArmFeedforward_size   45
 
#define wpi_proto_ProtobufDifferentialDriveFeedforward_size   36
 
#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_size   18
 
#define wpi_proto_ProtobufElevatorFeedforward_size   45
 
#define wpi_proto_ProtobufSimpleMotorFeedforward_size   36
 

Typedefs

typedef struct _wpi_proto_ProtobufArmFeedforward wpi_proto_ProtobufArmFeedforward
 
typedef struct _wpi_proto_ProtobufDifferentialDriveFeedforward wpi_proto_ProtobufDifferentialDriveFeedforward
 
typedef struct _wpi_proto_ProtobufElevatorFeedforward wpi_proto_ProtobufElevatorFeedforward
 
typedef struct _wpi_proto_ProtobufSimpleMotorFeedforward wpi_proto_ProtobufSimpleMotorFeedforward
 
typedef struct _wpi_proto_ProtobufDifferentialDriveWheelVoltages wpi_proto_ProtobufDifferentialDriveWheelVoltages
 

Macro Definition Documentation

◆ WPI_PROTO_CONTROLLER_NPB_H_MAX_SIZE

#define WPI_PROTO_CONTROLLER_NPB_H_MAX_SIZE   wpi_proto_ProtobufArmFeedforward_size

◆ wpi_proto_ProtobufArmFeedforward_CALLBACK

#define wpi_proto_ProtobufArmFeedforward_CALLBACK   NULL

◆ wpi_proto_ProtobufArmFeedforward_DEFAULT

#define wpi_proto_ProtobufArmFeedforward_DEFAULT   NULL

◆ wpi_proto_ProtobufArmFeedforward_dt_tag

#define wpi_proto_ProtobufArmFeedforward_dt_tag   5

◆ wpi_proto_ProtobufArmFeedforward_FIELDLIST

#define wpi_proto_ProtobufArmFeedforward_FIELDLIST ( X,
a )
Value:
X(a, STATIC, SINGULAR, DOUBLE, ks, 1) \
X(a, STATIC, SINGULAR, DOUBLE, kg, 2) \
X(a, STATIC, SINGULAR, DOUBLE, kv, 3) \
X(a, STATIC, SINGULAR, DOUBLE, ka, 4) \
X(a, STATIC, SINGULAR, DOUBLE, dt, 5)

◆ wpi_proto_ProtobufArmFeedforward_init_default

#define wpi_proto_ProtobufArmFeedforward_init_default   {0, 0, 0, 0, 0}

◆ wpi_proto_ProtobufArmFeedforward_init_zero

#define wpi_proto_ProtobufArmFeedforward_init_zero   {0, 0, 0, 0, 0}

◆ wpi_proto_ProtobufArmFeedforward_ka_tag

#define wpi_proto_ProtobufArmFeedforward_ka_tag   4

◆ wpi_proto_ProtobufArmFeedforward_kg_tag

#define wpi_proto_ProtobufArmFeedforward_kg_tag   2

◆ wpi_proto_ProtobufArmFeedforward_ks_tag

#define wpi_proto_ProtobufArmFeedforward_ks_tag   1

◆ wpi_proto_ProtobufArmFeedforward_kv_tag

#define wpi_proto_ProtobufArmFeedforward_kv_tag   3

◆ wpi_proto_ProtobufArmFeedforward_size

#define wpi_proto_ProtobufArmFeedforward_size   45

◆ wpi_proto_ProtobufDifferentialDriveFeedforward_CALLBACK

#define wpi_proto_ProtobufDifferentialDriveFeedforward_CALLBACK   NULL

◆ wpi_proto_ProtobufDifferentialDriveFeedforward_DEFAULT

#define wpi_proto_ProtobufDifferentialDriveFeedforward_DEFAULT   NULL

◆ wpi_proto_ProtobufDifferentialDriveFeedforward_FIELDLIST

#define wpi_proto_ProtobufDifferentialDriveFeedforward_FIELDLIST ( X,
a )
Value:
X(a, STATIC, SINGULAR, DOUBLE, kv_linear, 1) \
X(a, STATIC, SINGULAR, DOUBLE, ka_linear, 2) \
X(a, STATIC, SINGULAR, DOUBLE, kv_angular, 3) \
X(a, STATIC, SINGULAR, DOUBLE, ka_angular, 4)

◆ wpi_proto_ProtobufDifferentialDriveFeedforward_init_default

#define wpi_proto_ProtobufDifferentialDriveFeedforward_init_default   {0, 0, 0, 0}

◆ wpi_proto_ProtobufDifferentialDriveFeedforward_init_zero

#define wpi_proto_ProtobufDifferentialDriveFeedforward_init_zero   {0, 0, 0, 0}

◆ wpi_proto_ProtobufDifferentialDriveFeedforward_ka_angular_tag

#define wpi_proto_ProtobufDifferentialDriveFeedforward_ka_angular_tag   4

◆ wpi_proto_ProtobufDifferentialDriveFeedforward_ka_linear_tag

#define wpi_proto_ProtobufDifferentialDriveFeedforward_ka_linear_tag   2

◆ wpi_proto_ProtobufDifferentialDriveFeedforward_kv_angular_tag

#define wpi_proto_ProtobufDifferentialDriveFeedforward_kv_angular_tag   3

◆ wpi_proto_ProtobufDifferentialDriveFeedforward_kv_linear_tag

#define wpi_proto_ProtobufDifferentialDriveFeedforward_kv_linear_tag   1

◆ wpi_proto_ProtobufDifferentialDriveFeedforward_size

#define wpi_proto_ProtobufDifferentialDriveFeedforward_size   36

◆ wpi_proto_ProtobufDifferentialDriveWheelVoltages_CALLBACK

#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_CALLBACK   NULL

◆ wpi_proto_ProtobufDifferentialDriveWheelVoltages_DEFAULT

#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_DEFAULT   NULL

◆ wpi_proto_ProtobufDifferentialDriveWheelVoltages_FIELDLIST

#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_FIELDLIST ( X,
a )
Value:
X(a, STATIC, SINGULAR, DOUBLE, left, 1) \
X(a, STATIC, SINGULAR, DOUBLE, right, 2)

◆ wpi_proto_ProtobufDifferentialDriveWheelVoltages_init_default

#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_init_default   {0, 0}

◆ wpi_proto_ProtobufDifferentialDriveWheelVoltages_init_zero

#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_init_zero   {0, 0}

◆ wpi_proto_ProtobufDifferentialDriveWheelVoltages_left_tag

#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_left_tag   1

◆ wpi_proto_ProtobufDifferentialDriveWheelVoltages_right_tag

#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_right_tag   2

◆ wpi_proto_ProtobufDifferentialDriveWheelVoltages_size

#define wpi_proto_ProtobufDifferentialDriveWheelVoltages_size   18

◆ wpi_proto_ProtobufElevatorFeedforward_CALLBACK

#define wpi_proto_ProtobufElevatorFeedforward_CALLBACK   NULL

◆ wpi_proto_ProtobufElevatorFeedforward_DEFAULT

#define wpi_proto_ProtobufElevatorFeedforward_DEFAULT   NULL

◆ wpi_proto_ProtobufElevatorFeedforward_dt_tag

#define wpi_proto_ProtobufElevatorFeedforward_dt_tag   5

◆ wpi_proto_ProtobufElevatorFeedforward_FIELDLIST

#define wpi_proto_ProtobufElevatorFeedforward_FIELDLIST ( X,
a )
Value:
X(a, STATIC, SINGULAR, DOUBLE, ks, 1) \
X(a, STATIC, SINGULAR, DOUBLE, kg, 2) \
X(a, STATIC, SINGULAR, DOUBLE, kv, 3) \
X(a, STATIC, SINGULAR, DOUBLE, ka, 4) \
X(a, STATIC, SINGULAR, DOUBLE, dt, 5)

◆ wpi_proto_ProtobufElevatorFeedforward_init_default

#define wpi_proto_ProtobufElevatorFeedforward_init_default   {0, 0, 0, 0, 0}

◆ wpi_proto_ProtobufElevatorFeedforward_init_zero

#define wpi_proto_ProtobufElevatorFeedforward_init_zero   {0, 0, 0, 0, 0}

◆ wpi_proto_ProtobufElevatorFeedforward_ka_tag

#define wpi_proto_ProtobufElevatorFeedforward_ka_tag   4

◆ wpi_proto_ProtobufElevatorFeedforward_kg_tag

#define wpi_proto_ProtobufElevatorFeedforward_kg_tag   2

◆ wpi_proto_ProtobufElevatorFeedforward_ks_tag

#define wpi_proto_ProtobufElevatorFeedforward_ks_tag   1

◆ wpi_proto_ProtobufElevatorFeedforward_kv_tag

#define wpi_proto_ProtobufElevatorFeedforward_kv_tag   3

◆ wpi_proto_ProtobufElevatorFeedforward_size

#define wpi_proto_ProtobufElevatorFeedforward_size   45

◆ wpi_proto_ProtobufSimpleMotorFeedforward_CALLBACK

#define wpi_proto_ProtobufSimpleMotorFeedforward_CALLBACK   NULL

◆ wpi_proto_ProtobufSimpleMotorFeedforward_DEFAULT

#define wpi_proto_ProtobufSimpleMotorFeedforward_DEFAULT   NULL

◆ wpi_proto_ProtobufSimpleMotorFeedforward_dt_tag

#define wpi_proto_ProtobufSimpleMotorFeedforward_dt_tag   4

◆ wpi_proto_ProtobufSimpleMotorFeedforward_FIELDLIST

#define wpi_proto_ProtobufSimpleMotorFeedforward_FIELDLIST ( X,
a )
Value:
X(a, STATIC, SINGULAR, DOUBLE, ks, 1) \
X(a, STATIC, SINGULAR, DOUBLE, kv, 2) \
X(a, STATIC, SINGULAR, DOUBLE, ka, 3) \
X(a, STATIC, SINGULAR, DOUBLE, dt, 4)

◆ wpi_proto_ProtobufSimpleMotorFeedforward_init_default

#define wpi_proto_ProtobufSimpleMotorFeedforward_init_default   {0, 0, 0, 0}

◆ wpi_proto_ProtobufSimpleMotorFeedforward_init_zero

#define wpi_proto_ProtobufSimpleMotorFeedforward_init_zero   {0, 0, 0, 0}

◆ wpi_proto_ProtobufSimpleMotorFeedforward_ka_tag

#define wpi_proto_ProtobufSimpleMotorFeedforward_ka_tag   3

◆ wpi_proto_ProtobufSimpleMotorFeedforward_ks_tag

#define wpi_proto_ProtobufSimpleMotorFeedforward_ks_tag   1

◆ wpi_proto_ProtobufSimpleMotorFeedforward_kv_tag

#define wpi_proto_ProtobufSimpleMotorFeedforward_kv_tag   2

◆ wpi_proto_ProtobufSimpleMotorFeedforward_size

#define wpi_proto_ProtobufSimpleMotorFeedforward_size   36

Typedef Documentation

◆ wpi_proto_ProtobufArmFeedforward

◆ wpi_proto_ProtobufDifferentialDriveFeedforward

◆ wpi_proto_ProtobufDifferentialDriveWheelVoltages

◆ wpi_proto_ProtobufElevatorFeedforward

◆ wpi_proto_ProtobufSimpleMotorFeedforward