diff --git a/src/comm/MAVLinkXMLParser.cc b/src/comm/MAVLinkXMLParser.cc index d4b7dfef67b85408ba6bf4c9491c130a5918f17e..d3faa97bebcb307dd9a19f613aa51e560afbfb31 100644 --- a/src/comm/MAVLinkXMLParser.cc +++ b/src/comm/MAVLinkXMLParser.cc @@ -443,10 +443,10 @@ bool MAVLinkXMLParser::generate() rawHeader.write(mainHeader.toLatin1()); // Write C structs / lcm definitions - QFile lcmStructs(outputDirName + "/mavlink.lcm"); - ok = lcmStructs.open(QIODevice::WriteOnly | QIODevice::Text); - success = success && ok; - lcmStructs.write(lcmStructDefs.toLatin1()); +// QFile lcmStructs(outputDirName + "/mavlink.lcm"); +// ok = lcmStructs.open(QIODevice::WriteOnly | QIODevice::Text); +// success = success && ok; +// lcmStructs.write(lcmStructDefs.toLatin1()); return success; } diff --git a/src/ui/map3D/Q3DWidget.cc b/src/ui/map3D/Q3DWidget.cc index 906ffedd48d5bfc24ba0c8a6adb7e5d5849b128b..a6c9fe6a881e5e0372312dbd1faf9399546468cf 100755 --- a/src/ui/map3D/Q3DWidget.cc +++ b/src/ui/map3D/Q3DWidget.cc @@ -495,6 +495,7 @@ Q3DWidget::initializeGL(void) glEnable(GL_DEPTH_TEST); glShadeModel(GL_SMOOTH); + glLightfv(GL_LIGHT0, GL_AMBIENT, lightAmbient); glLightfv(GL_LIGHT0, GL_DIFFUSE, lightDiffuse); glLightfv(GL_LIGHT0, GL_SPECULAR, lightSpecular);