mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
Default to requiring frc namespace for wpilibc. (#972)
Instead of defining NAMESPACED_WPILIB to remove the "using namespace frc" shim in Base.h, instead require NO_NAMESPACED_WPILIB be defined to add it. Fix up various examples to use correct namespacing.
This commit is contained in:
@@ -77,7 +77,7 @@ class Robot : public frc::IterativeRobot {
|
||||
* and defaults to k4X. Faster (k4X) encoding gives greater positional
|
||||
* precision but more noise in the rate.
|
||||
*/
|
||||
frc::Encoder m_encoder{1, 2, false, Encoder::k4X};
|
||||
frc::Encoder m_encoder{1, 2, false, frc::Encoder::k4X};
|
||||
};
|
||||
|
||||
int main() { return frc::StartRobot<Robot>(); }
|
||||
|
||||
Reference in New Issue
Block a user