2020-12-26 14:12:05 -08:00
|
|
|
// 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
|
|
|
|
|
|
2020-04-03 08:39:57 -07:00
|
|
|
#include <functional>
|
|
|
|
|
#include <vector>
|
2019-09-14 15:22:54 -05:00
|
|
|
|
2017-10-16 22:54:36 -04:00
|
|
|
namespace frc {
|
|
|
|
|
|
|
|
|
|
template <class... SpeedControllers>
|
|
|
|
|
SpeedControllerGroup::SpeedControllerGroup(
|
|
|
|
|
SpeedController& speedController, SpeedControllers&... speedControllers)
|
2020-04-03 08:39:57 -07:00
|
|
|
: m_speedControllers(std::vector<std::reference_wrapper<SpeedController>>{
|
|
|
|
|
speedController, speedControllers...}) {
|
|
|
|
|
Initialize();
|
2017-12-04 23:28:33 -08:00
|
|
|
}
|
2017-10-16 22:54:36 -04:00
|
|
|
|
|
|
|
|
} // namespace frc
|