mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Add all of the most recent headers and .SOs Also make DriverStation work with the new FRC comm protocol, using the new functions for getting status data Change-Id: I1c7fc5f90e72c5fbebf87d9923ce0967ed0ef3bc Initial HAL support for v13 ds Change-Id: I9a7f37ef8e24241598fa3981cb3df30c07c52e0f New ds stuff in the HAL Change-Id: I025910625453baf63f79f49bbc70ba8b2f093f50 New ds stuff in C++ Joysticks are still todo Driver station IO is pulled out Change-Id: I1bb59037c097713bd943e7bef00e12f67f13c3ac New ds works in C++ and Java. Joysticks still todo Change-Id: Ic93f8686856761badc592eceaf05964f52355578 Make joysticks work again with the v13 image protocol Change-Id: Ief7ee95d3398c2262ca07ab7d60499af3c8f60f7
59 lines
1.6 KiB
C++
59 lines
1.6 KiB
C++
|
|
#ifndef __LoadOut_h__
|
|
#define __LoadOut_h__
|
|
|
|
#ifdef SIMULATION
|
|
#include <vxWorks_compat.h>
|
|
#define EXPORT_FUNC __declspec(dllexport) __cdecl
|
|
#elif defined (__vxworks)
|
|
#include <vxWorks.h>
|
|
#define EXPORT_FUNC
|
|
#else
|
|
#include <stdint.h>
|
|
#define EXPORT_FUNC
|
|
#endif
|
|
|
|
#define kMaxModuleNumber 2
|
|
namespace nLoadOut
|
|
{
|
|
#if defined(__vxworks) || defined(SIMULATION)
|
|
typedef enum {
|
|
kModuleType_Unknown = 0x00,
|
|
kModuleType_Analog = 0x01,
|
|
kModuleType_Digital = 0x02,
|
|
kModuleType_Solenoid = 0x03,
|
|
} tModuleType;
|
|
bool EXPORT_FUNC getModulePresence(tModuleType moduleType, uint8_t moduleNumber);
|
|
#endif
|
|
typedef enum {
|
|
kTargetClass_Unknown = 0x00,
|
|
kTargetClass_FRC1 = 0x10,
|
|
kTargetClass_FRC2 = 0x20,
|
|
kTargetClass_FRC3 = 0x30,
|
|
kTargetClass_RoboRIO = 0x40,
|
|
#if defined(__vxworks) || defined(SIMULATION)
|
|
kTargetClass_FRC2_Analog = kTargetClass_FRC2 | kModuleType_Analog,
|
|
kTargetClass_FRC2_Digital = kTargetClass_FRC2 | kModuleType_Digital,
|
|
kTargetClass_FRC2_Solenoid = kTargetClass_FRC2 | kModuleType_Solenoid,
|
|
#endif
|
|
kTargetClass_FamilyMask = 0xF0,
|
|
kTargetClass_ModuleMask = 0x0F,
|
|
} tTargetClass;
|
|
tTargetClass EXPORT_FUNC getTargetClass();
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#if defined(__vxworks) || defined(SIMULATION)
|
|
uint32_t EXPORT_FUNC FRC_NetworkCommunication_nLoadOut_getModulePresence(uint32_t moduleType, uint8_t moduleNumber);
|
|
#endif
|
|
uint32_t EXPORT_FUNC FRC_NetworkCommunication_nLoadOut_getTargetClass();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // __LoadOut_h__
|