mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
33 lines
980 B
C++
33 lines
980 B
C++
/*----------------------------------------------------------------------------*/
|
|
/* Copyright (c) 2014-2018 FIRST. All Rights Reserved. */
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
/* the project. */
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
#pragma once
|
|
|
|
#include <vector>
|
|
|
|
#include "GazeboNode.h"
|
|
|
|
class GazeboPWM;
|
|
class GazeboPCM;
|
|
class GazeboEncoder;
|
|
class GazeboAnalogIn;
|
|
class GazeboDIO;
|
|
|
|
class HALSimGazebo {
|
|
public:
|
|
static const int kPWMCount = 20;
|
|
static const int kPCMCount = 8;
|
|
static const int kEncoderCount = 8;
|
|
|
|
GazeboNode node;
|
|
GazeboPWM* pwms[kPWMCount];
|
|
GazeboPCM* pcms[kPCMCount];
|
|
GazeboEncoder* encoders[kEncoderCount];
|
|
std::vector<GazeboAnalogIn*> analog_inputs;
|
|
std::vector<GazeboDIO*> dios;
|
|
};
|