Commit cae1a59f authored by pixhawk's avatar pixhawk

Minor adjustments

parent 97c7f726
......@@ -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;
}
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment