mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
[wpilib] Fix docs for Sharp IR simulation (NFC) (#6653)
This commit is contained in:
@@ -11,11 +11,28 @@
|
||||
|
||||
namespace frc {
|
||||
|
||||
/** Simulation class for Sharp IR sensors. */
|
||||
class SharpIRSim {
|
||||
public:
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param sharpIR The real sensor to simulate
|
||||
*/
|
||||
explicit SharpIRSim(const SharpIR& sharpIR);
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param channel Analog channel for this sensor
|
||||
*/
|
||||
explicit SharpIRSim(int channel);
|
||||
|
||||
/**
|
||||
* Set the range returned by the distance sensor.
|
||||
*
|
||||
* @param rng range of the target returned by the sensor
|
||||
*/
|
||||
void SetRange(units::centimeter_t rng);
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user