WPILibC++ 2023.4.3
MecanumDriveWheelPositions.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 <wpi/SymbolExports.h>
8
9#include "units/length.h"
10
11namespace frc {
12/**
13 * Represents the wheel speeds for a mecanum drive drivetrain.
14 */
16 /**
17 * Distance driven by the front-left wheel.
18 */
19 units::meter_t frontLeft = 0_m;
20
21 /**
22 * Distance driven by the front-right wheel.
23 */
24 units::meter_t frontRight = 0_m;
25
26 /**
27 * Distance driven by the rear-left wheel.
28 */
29 units::meter_t rearLeft = 0_m;
30
31 /**
32 * Distance driven by the rear-right wheel.
33 */
34 units::meter_t rearRight = 0_m;
35
36 /**
37 * Checks equality between this MecanumDriveWheelPositions and another object.
38 *
39 * @param other The other object.
40 * @return Whether the two objects are equal.
41 */
42 bool operator==(const MecanumDriveWheelPositions& other) const = default;
43
44 /**
45 * Checks inequality between this MecanumDriveWheelPositions and another
46 * object.
47 *
48 * @param other The other object.
49 * @return Whether the two objects are not equal.
50 */
51 bool operator!=(const MecanumDriveWheelPositions& other) const = default;
52};
53} // namespace frc
#define WPILIB_DLLEXPORT
Definition: SymbolExports.h:36
Definition: AprilTagFieldLayout.h:22
Represents the wheel speeds for a mecanum drive drivetrain.
Definition: MecanumDriveWheelPositions.h:15
bool operator==(const MecanumDriveWheelPositions &other) const =default
Checks equality between this MecanumDriveWheelPositions and another object.
bool operator!=(const MecanumDriveWheelPositions &other) const =default
Checks inequality between this MecanumDriveWheelPositions and another object.