diff --git a/deploy/qgroundcontrol_installer.nsi b/deploy/qgroundcontrol_installer.nsi index dca29cb1b430bc963ef31544818ff2bf02a062e5..d2c351a6f692f5b95fe80dd9467bc4edb9d17b33 100644 --- a/deploy/qgroundcontrol_installer.nsi +++ b/deploy/qgroundcontrol_installer.nsi @@ -16,20 +16,20 @@ LicenseData ..\license.txt Section "" SetOutPath $INSTDIR - File qgroundcontrol\*.* - WriteUninstaller $INSTDIR\QGroundcontrol_uninstall.exe + File ..\release\*.* + WriteUninstaller $INSTDIR\QGroundControl_uninstall.exe SectionEnd Section "Uninstall" - Delete $INSTDIR\QGroundcontrol_uninstall.exe + Delete $INSTDIR\QGroundControl_uninstall.exe Delete $INSTDIR\*.* RMDir $INSTDIR - Delete "$SMPROGRAMS\QGroundcontrol\*.*" - RMDir "$SMPROGRAMS\QGroundcontrol\" + Delete "$SMPROGRAMS\QGroundControl\*.*" + RMDir "$SMPROGRAMS\QGroundControl\" SectionEnd Section "create Start Menu Shortcuts" - CreateDirectory "$SMPROGRAMS\QGroundcontrol" - CreateShortCut "$SMPROGRAMS\QGroundcontrol\uninstall.lnk" "$INSTDIR\QGroundcontrol_uninstall.exe" "" "$INSTDIR\QGroundcontrol_uninstall.exe" 0 - CreateShortCut "$SMPROGRAMS\QGroundcontrol\QGroundcontrol.lnk" "$INSTDIR\qgroundcontrol.exe" "" "$INSTDIR\qgroundcontrol.exe" 0 + CreateDirectory "$SMPROGRAMS\QGroundControl" + CreateShortCut "$SMPROGRAMS\QGroundControl\uninstall.lnk" "$INSTDIR\QGroundControl_uninstall.exe" "" "$INSTDIR\QGroundControl_uninstall.exe" 0 + CreateShortCut "$SMPROGRAMS\QGroundControl\QGroundControl.lnk" "$INSTDIR\qgroundcontrol.exe" "" "$INSTDIR\qgroundcontrol.exe" 0 SectionEnd \ No newline at end of file diff --git a/src/lib/qextserialport/win_qextserialport.h b/src/lib/qextserialport/win_qextserialport.h index 1de6138c4f3bdda56b203510a57dde7e2c095a10..d3358f2d5b67648674db1513662a6b899005f2c4 100644 --- a/src/lib/qextserialport/win_qextserialport.h +++ b/src/lib/qextserialport/win_qextserialport.h @@ -5,6 +5,16 @@ #include #include +/* These baudrates work on windows, but are not part of the windows headers */ +#ifndef CBR_230400 +#define CBR_230400 230400 +#endif +#ifndef CBR_460800 +#define CBR_460800 460800 +#endif +#ifndef CBR_921600 +#define CBR_921600 921600 +#endif /*if all warning messages are turned off, flag portability warnings to be turned off as well*/ #ifdef _TTY_NOWARN_ diff --git a/src/uas/UAS.cc b/src/uas/UAS.cc index 3a3b61782e9ed059ee01cc6507381fbe6594fd7b..7fc1a66aebdf09878ee138b03d2015baf272b3d9 100644 --- a/src/uas/UAS.cc +++ b/src/uas/UAS.cc @@ -26,6 +26,19 @@ #include "LinkManager.h" #include "SerialLink.h" +#ifndef M_PI +#define M_PI 3.14159265358979323846 /* pi */ +#endif + +#ifndef M_PI_2 +#define M_PI_2 1.57079632679489661923 /* pi/2 */ +#endif + +#ifndef M_PI_4 +#define M_PI_4 0.78539816339744830962 /* pi/4 */ +#endif + + UAS::UAS(MAVLinkProtocol* protocol, int id) : UASInterface(), uasId(id),