mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +00:00
26 lines
529 B
C
26 lines
529 B
C
|
|
// 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.
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <hal/SimDevice.h>
|
||
|
|
#include <units/length.h>
|
||
|
|
|
||
|
|
#include "frc/SharpIR.h"
|
||
|
|
|
||
|
|
namespace frc {
|
||
|
|
|
||
|
|
class SharpIRSim {
|
||
|
|
public:
|
||
|
|
explicit SharpIRSim(const SharpIR& sharpIR);
|
||
|
|
explicit SharpIRSim(int channel);
|
||
|
|
|
||
|
|
void SetRange(units::centimeter_t rng);
|
||
|
|
|
||
|
|
private:
|
||
|
|
hal::SimDouble m_simRange;
|
||
|
|
};
|
||
|
|
|
||
|
|
} // namespace frc
|