mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-05 03:21:42 +00:00
SCRIPT namespace replacements
This commit is contained in:
committed by
Peter Johnson
parent
ae6c043632
commit
9aca8e0fd6
@@ -8,15 +8,15 @@
|
||||
#include "wpi/simulation/SimDeviceSim.hpp"
|
||||
#include "wpi/units/length.hpp"
|
||||
|
||||
using namespace frc;
|
||||
using namespace frc::sim;
|
||||
using namespace wpi;
|
||||
using namespace wpi::sim;
|
||||
|
||||
PWMMotorControllerSim::PWMMotorControllerSim(
|
||||
const PWMMotorController& motorctrl)
|
||||
: PWMMotorControllerSim(motorctrl.GetChannel()) {}
|
||||
|
||||
PWMMotorControllerSim::PWMMotorControllerSim(int channel) {
|
||||
frc::sim::SimDeviceSim deviceSim{"PWMMotorController", channel};
|
||||
wpi::sim::SimDeviceSim deviceSim{"PWMMotorController", channel};
|
||||
m_simSpeed = deviceSim.GetDouble("Speed");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user