From ca35a59eb6b8a14e218cbf5d1708d01447f5b7ec Mon Sep 17 00:00:00 2001
From: Pascal Serrarens <pascal@passervr.com>
Date: Tue, 4 Mar 2025 17:09:45 +0100
Subject: [PATCH] Updated namespace

---
 Arduino/Things/DRV8833.cpp | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/Arduino/Things/DRV8833.cpp b/Arduino/Things/DRV8833.cpp
index 26cc8c1..d90492e 100644
--- a/Arduino/Things/DRV8833.cpp
+++ b/Arduino/Things/DRV8833.cpp
@@ -3,11 +3,9 @@
 #include <Arduino.h>
 
 namespace RoboidControl {
+namespace Arduino {
 
-DRV8833Motor::DRV8833Motor(Participant* participant,
-                           unsigned char pinIn1,
-                           unsigned char pinIn2,
-                           bool reverse)
+DRV8833Motor::DRV8833Motor(Participant* participant, unsigned char pinIn1, unsigned char pinIn2, bool reverse)
     : Thing(participant) {
   this->pinIn1 = pinIn1;
   this->pinIn2 = pinIn2;
@@ -47,7 +45,7 @@ void DRV8833Motor::SetAngularVelocity(Spherical velocity) {
   if (velocity.direction.horizontal.InDegrees() < 0)
     motorSpeed = -motorSpeed;
   if (this->reverse)
-    motorSpeed =-motorSpeed;
+    motorSpeed = -motorSpeed;
 
   // std::cout << "ang speed " << this->name << " = " << angularSpeed << "   rpm " << rpm
   //           << ", motor signal = " << (int)motorSignal << "\n";
@@ -118,4 +116,5 @@ DRV8833::DRV8833(Participant* participant,
   this->motorB->name = "Motor B";
 }
 
+}  // namespace Arduino
 }  // namespace RoboidControl
\ No newline at end of file