WPILibC++
2025.2.1
Loading...
Searching...
No Matches
DifferentialDriveWheelVoltages.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
5
#pragma once
6
7
#include "
units/voltage.h
"
8
9
namespace
frc
{
10
11
/**
12
* Motor voltages for a differential drive.
13
*/
14
struct
DifferentialDriveWheelVoltages
{
15
/// Left wheel voltage.
16
units::volt_t
left
= 0_V;
17
18
/// Right wheel voltage.
19
units::volt_t
right
= 0_V;
20
};
21
22
}
// namespace frc
23
24
#include "
frc/controller/proto/DifferentialDriveWheelVoltagesProto.h
"
25
#include "
frc/controller/struct/DifferentialDriveWheelVoltagesStruct.h
"
DifferentialDriveWheelVoltagesProto.h
DifferentialDriveWheelVoltagesStruct.h
frc
Definition
CAN.h:11
frc::DifferentialDriveWheelVoltages
Motor voltages for a differential drive.
Definition
DifferentialDriveWheelVoltages.h:14
frc::DifferentialDriveWheelVoltages::right
units::volt_t right
Right wheel voltage.
Definition
DifferentialDriveWheelVoltages.h:19
frc::DifferentialDriveWheelVoltages::left
units::volt_t left
Left wheel voltage.
Definition
DifferentialDriveWheelVoltages.h:16
voltage.h
frc
controller
DifferentialDriveWheelVoltages.h
Generated on Fri Jan 10 2025 07:37:19 for WPILibC++ by
1.12.0