mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
halsim_ds_socket: Update tag parsing, and add rumble support (#1214)
Outputs are now sent. Ensure only the proper number of outputs are actually sent though. Also adds match time, and proper enable tags.
This commit is contained in:
committed by
Peter Johnson
parent
d54c2665dc
commit
63c1f80d60
@@ -61,6 +61,7 @@ HAL_ENUM(HAL_MatchType) {
|
||||
*/
|
||||
#define HAL_kMaxJoystickAxes 12
|
||||
#define HAL_kMaxJoystickPOVs 12
|
||||
#define HAL_kMaxJoysticks 6
|
||||
|
||||
struct HAL_JoystickAxes {
|
||||
int16_t count;
|
||||
|
||||
@@ -9,9 +9,12 @@
|
||||
|
||||
#ifndef __FRC_ROBORIO__
|
||||
|
||||
#include "hal/Types.h"
|
||||
|
||||
extern "C" {
|
||||
void HALSIM_WaitForProgramStart(void);
|
||||
void HALSIM_SetProgramStarted(void);
|
||||
HAL_Bool HALSIM_GetProgramStarted(void);
|
||||
void HALSIM_RestartTiming(void);
|
||||
} // extern "C"
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace frc {
|
||||
namespace sim {
|
||||
void WaitForProgramStart() { HALSIM_WaitForProgramStart(); }
|
||||
void SetProgramStarted() { HALSIM_SetProgramStarted(); }
|
||||
bool GetProgramStarted() { return HALSIM_GetProgramStarted(); }
|
||||
void RestartTiming() { HALSIM_RestartTiming(); }
|
||||
} // namespace sim
|
||||
} // namespace frc
|
||||
|
||||
Reference in New Issue
Block a user