diff --git a/ground/openpilotgcs/src/plugins/gcscontrol/gcscontrolgadget.cpp b/ground/openpilotgcs/src/plugins/gcscontrol/gcscontrolgadget.cpp index 7e50e38dc..ed095e5a4 100644 --- a/ground/openpilotgcs/src/plugins/gcscontrol/gcscontrolgadget.cpp +++ b/ground/openpilotgcs/src/plugins/gcscontrol/gcscontrolgadget.cpp @@ -246,7 +246,10 @@ void GCSControlGadget::gamepads(quint8 count) void GCSControlGadget::readUDPCommand() { - double pitch, yaw, roll, throttle; + double pitch = 0.0; + double yaw = 0.0; + double roll = 0.0; + double throttle = 0.0; while (control_sock->hasPendingDatagrams()) { QByteArray datagram;