mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +00:00
Get halsim_gazebo building again (#1201)
This commit is contained in:
committed by
Peter Johnson
parent
fe5d7dd6ba
commit
74efe5aafe
@@ -0,0 +1,32 @@
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* 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;
|
||||
};
|
||||
Reference in New Issue
Block a user