mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
SCRIPT namespace replacements
This commit is contained in:
committed by
Peter Johnson
parent
ae6c043632
commit
9aca8e0fd6
@@ -5,16 +5,16 @@
|
||||
#include "../PortsInternal.h"
|
||||
#include "DigitalPWMDataInternal.h"
|
||||
|
||||
using namespace hal;
|
||||
using namespace wpi::hal;
|
||||
|
||||
namespace hal::init {
|
||||
namespace wpi::hal::init {
|
||||
void InitializeDigitalPWMData() {
|
||||
static DigitalPWMData sdpd[kNumDigitalPWMOutputs];
|
||||
::hal::SimDigitalPWMData = sdpd;
|
||||
::wpi::hal::SimDigitalPWMData = sdpd;
|
||||
}
|
||||
} // namespace hal::init
|
||||
} // namespace wpi::hal::init
|
||||
|
||||
DigitalPWMData* hal::SimDigitalPWMData;
|
||||
DigitalPWMData* wpi::hal::SimDigitalPWMData;
|
||||
void DigitalPWMData::ResetData() {
|
||||
initialized.Reset(false);
|
||||
dutyCycle.Reset(0.0);
|
||||
|
||||
Reference in New Issue
Block a user