Skip to content

armgit / flix

Public Imported from GitHub
0

Making an ESP32-based quadcopter from scratch

Fix rc in simulator Virtual rc is disabled if rxRxPin < 0

Oleg Kalachev1cdc7a864181
diff --git a/gazebo/simulator.cpp b/gazebo/simulator.cpp
index ca2776c..60bf190 100644
--- a/gazebo/simulator.cpp
+++ b/gazebo/simulator.cpp
@@ -55,6 +55,7 @@ public:
initNode();
Serial.begin(0);
setupParameters();
+ rcRxPin = 1; // set rc pin to enable rc reading
gzmsg << "Flix plugin loaded" << endl;
}