Files
allwpilib/wpilibc/src/main/native/include/frc/SpeedControllerGroup.inc

21 lines
599 B
PHP
Raw Normal View History

// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
2017-10-16 22:54:36 -04:00
#pragma once
#include <functional>
#include <vector>
2017-10-16 22:54:36 -04:00
namespace frc {
template <class... SpeedControllers>
SpeedControllerGroup::SpeedControllerGroup(
SpeedController& speedController, SpeedControllers&... speedControllers)
: m_speedControllers(std::vector<std::reference_wrapper<SpeedController>>{
speedController, speedControllers...}) {
Initialize();
}
2017-10-16 22:54:36 -04:00
} // namespace frc