diff --git a/qgroundcontrol.pri b/qgroundcontrol.pri index 2657c46cd0501883005530386eb51391671f1c6c..d4570a155b5f18ae8603725f1f1f8823e2e63126 100644 --- a/qgroundcontrol.pri +++ b/qgroundcontrol.pri @@ -48,14 +48,14 @@ DEFINES += _TTY_NOWARN_ macx { COMPILER_VERSION = $$system(gcc -v) - message(Using compiler $$COMPILER_VERSION) + #message(Using compiler $$COMPILER_VERSION) HARDWARE_PLATFORM = $$system(uname -a) - contains( HARDWARE_PLATFORM, 9.6.0 ) || contains( HARDWARE_PLATFORM, 9.7.0 ) || contains( HARDWARE_PLATFORM, 9.8.0 ) || contains( HARDWARE_PLATFORM, 9.9.0 ) { + contains( $$HARDWARE_PLATFORM, "9.6.0" ) || contains( $$HARDWARE_PLATFORM, "9.7.0" ) || contains( $$HARDWARE_PLATFORM, "9.8.0" ) || contains( $$HARDWARE_PLATFORM, "9.9.0" ) { # x86 Mac OS X Leopard 10.5 and earlier - CONFIG += x86 cocoa phonon - CONFIG -= x86_64 - message(Building for Mac OS X 32bit/Leopard 10.5 and earlier) + CONFIG += x86 x86_64 cocoa phonon + #CONFIG -= x86_64 + #message(Building for Mac OS X 32bit/Leopard 10.5 and earlier) # Enable function-profiling with the OS X saturn tool debug { @@ -65,9 +65,9 @@ macx { } } else { # x64 Mac OS X Snow Leopard 10.6 and later - CONFIG += x86_64 cocoa - CONFIG -= x86 phonon - message(Building for Mac OS X 64bit/Snow Leopard 10.6 and later) + CONFIG += x86_64 x86 cocoa + #CONFIG -= x86 # phonon + #message(Building for Mac OS X 64bit/Snow Leopard 10.6 and later) debug { #QMAKE_CXXFLAGS += -finstrument-functions #LIBS += -lSaturn diff --git a/src/comm/MAVLinkSimulationLink.cc b/src/comm/MAVLinkSimulationLink.cc index ed7f0bc7629056cf58a55979d3406bba774520e7..82d7cf4c53db19d7d49451ad836f8986ed7a7f3c 100644 --- a/src/comm/MAVLinkSimulationLink.cc +++ b/src/comm/MAVLinkSimulationLink.cc @@ -610,18 +610,18 @@ void MAVLinkSimulationLink::mainloop() // Send controller states - #ifdef MAVLINK_ENABLED_PIXHAWK - uint8_t attControl = 1; - uint8_t posXYControl = 1; - uint8_t posZControl = 0; - uint8_t posYawControl = 1; - - uint8_t gpsLock = 2; - uint8_t visLock = 3; - uint8_t posLock = qMax(gpsLock, visLock); - uint8_t ahrsHealth = 240; +#ifdef MAVLINK_ENABLED_PIXHAWK + uint8_t attControl = 1; + uint8_t posXYControl = 1; + uint8_t posZControl = 0; + uint8_t posYawControl = 1; + + uint8_t gpsLock = 2; + uint8_t visLock = 3; + uint8_t ahrsHealth = 200; + uint8_t posLock = qMax(gpsLock, visLock); messageSize = mavlink_msg_control_status_pack(systemId, componentId, &msg, posLock, visLock, gpsLock, ahrsHealth, attControl, posXYControl, posZControl, posYawControl); - #endif +#endif bufferlength = mavlink_msg_to_send_buffer(buffer, &msg); memcpy(stream+streampointer, buffer, bufferlength); diff --git a/src/uas/UAS.cc b/src/uas/UAS.cc index 16605184d88db2d5fbf163f690f0be5f8f1336af..5866ca3293353e4ba6c8929ac82cf48ab71efffd 100644 --- a/src/uas/UAS.cc +++ b/src/uas/UAS.cc @@ -250,11 +250,12 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message) getStatusForCode((int)state.status, uasState, stateDescription); emit statusChanged(this, uasState, stateDescription); emit statusChanged(this->status); - emit loadChanged(this,state.load/10.0f); - emit valueChanged(uasId, "Load", "%", ((float)state.load)/1000.0f, MG::TIME::getGroundTimeNow()); stateAudio = " changed status to " + uasState; } + emit loadChanged(this,state.load/10.0f); + emit valueChanged(uasId, "Load", "%", ((float)state.load)/1000.0f, getUnixTime()); + if (this->mode != static_cast(state.mode)) { modechanged = true;