mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Merge branch 'main' into 2027
This commit is contained in:
@@ -4,14 +4,16 @@
|
||||
|
||||
#include "commands/TeleopArcadeDrive.h"
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include "subsystems/Drivetrain.h"
|
||||
|
||||
TeleopArcadeDrive::TeleopArcadeDrive(
|
||||
Drivetrain* subsystem, std::function<double()> xaxisSpeedSupplier,
|
||||
std::function<double()> zaxisRotateSuppplier)
|
||||
: m_drive{subsystem},
|
||||
m_xaxisSpeedSupplier{xaxisSpeedSupplier},
|
||||
m_zaxisRotateSupplier{zaxisRotateSuppplier} {
|
||||
m_xaxisSpeedSupplier{std::move(xaxisSpeedSupplier)},
|
||||
m_zaxisRotateSupplier{std::move(zaxisRotateSuppplier)} {
|
||||
AddRequirements(subsystem);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user