mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
Merge branch 'main' into 2027
This commit is contained in:
@@ -102,7 +102,7 @@ class SimCallbackRegistry : public impl::SimCallbackRegistryBase {
|
||||
*/
|
||||
#define HAL_SIMCALLBACKREGISTRY_DEFINE_NAME(NAME) \
|
||||
static LLVM_ATTRIBUTE_ALWAYS_INLINE constexpr const char* \
|
||||
Get##NAME##Name() { \
|
||||
Get##NAME##Name() { \
|
||||
return #NAME; \
|
||||
}
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@ class SimDataValue final : public impl::SimDataValueBase<T, MakeValue> {
|
||||
*/
|
||||
#define HAL_SIMDATAVALUE_DEFINE_NAME(NAME) \
|
||||
static LLVM_ATTRIBUTE_ALWAYS_INLINE constexpr const char* \
|
||||
Get##NAME##Name() { \
|
||||
Get##NAME##Name() { \
|
||||
return #NAME; \
|
||||
}
|
||||
|
||||
|
||||
@@ -409,8 +409,9 @@ void HAL_SetCTREPCMOneShotDuration(HAL_CTREPCMHandle handle, int32_t index,
|
||||
message.dataSize = 8;
|
||||
|
||||
std::scoped_lock lock{pcm->lock};
|
||||
pcm->oneShot.sol10MsPerUnit[index] = (std::min)(
|
||||
static_cast<uint32_t>(durMs) / 10, static_cast<uint32_t>(0xFF));
|
||||
pcm->oneShot.sol10MsPerUnit[index] =
|
||||
(std::min)(static_cast<uint32_t>(durMs) / 10,
|
||||
static_cast<uint32_t>(0xFF));
|
||||
std::memcpy(message.data, pcm->oneShot.sol10MsPerUnit, 8);
|
||||
HAL_WriteCANPacketRepeating(pcm->canHandle, Control3, &message, SendPeriod,
|
||||
status);
|
||||
|
||||
Reference in New Issue
Block a user