diff --git a/src/uas/UAS.cc b/src/uas/UAS.cc index eb23c566a0560a63c31742954f6b819423c00e9c..eb9f540b23dfaa8b68a7ceddf9cc41b2e1aa9269 100644 --- a/src/uas/UAS.cc +++ b/src/uas/UAS.cc @@ -1222,40 +1222,6 @@ void UAS::pairRX(int rxType, int rxSubType) } } -/** -* Order the robot to take a picture (Testing -- Incomplete API) -*/ -void UAS::takePhoto() -{ - if (_vehicle) { - _vehicle->sendMavCommand(_vehicle->defaultComponentId(), // target component - MAV_CMD_IMAGE_START_CAPTURE, // command id - true, // showError - 0, // Duration between two consecutive pictures (in seconds) - 1, // Number of images to capture total - 0 for unlimited capture - 0, // Resolution in megapixels (0.3 for 640x480, 1.3 for 1280x720, etc), set to 0 if param 4/5 are used - 1920, // Resolution horizontal in pixels - 1080); // Resolution horizontal in pixels - } -} - -/** -* Order the robot to toggle video recording (Testing -- Incomplete API) -*/ -void UAS::toggleVideo() -{ - if (_vehicle) { - _vehicle->sendMavCommand(_vehicle->defaultComponentId(), // target component - MAV_CMD_VIDEO_START_CAPTURE, // command id - true, // showError - 0, // Camera ID (0 for all cameras), 1 for first, 2 for second, etc. - 60, // Frames per second - 0, // Resolution in megapixels (0.3 for 640x480, 1.3 for 1280x720, etc), set to 0 if param 4/5 are used - 1920, // Resolution horizontal in pixels - 1080); // Resolution horizontal in pixels - } -} - /** * If enabled, connect the flight gear link. */ diff --git a/src/uas/UAS.h b/src/uas/UAS.h index 4820fb41adc4a7c1f1f4c173d1bc93073fab61cb..4dad4d5fda8c5c9052b553db57801099c0955e16 100644 --- a/src/uas/UAS.h +++ b/src/uas/UAS.h @@ -262,10 +262,6 @@ public: public slots: /** @brief Order the robot to pair its receiver **/ void pairRX(int rxType, int rxSubType); - /** @brief Order the robot to take a picture **/ - void takePhoto(); - /** @brief Order the robot to toggle video recording **/ - void toggleVideo(); /** @brief Enable / disable HIL */ #ifndef __mobile__ diff --git a/src/uas/UASInterface.h b/src/uas/UASInterface.h index 5f35f1408a7ebb2bfc73f69361edb4206a73ebea..a9dfb79f0060292ee58ca0d0a3ec7a76c18af54b 100644 --- a/src/uas/UASInterface.h +++ b/src/uas/UASInterface.h @@ -138,10 +138,6 @@ public: public slots: /** @brief Order the robot to pair its receiver **/ virtual void pairRX(int rxType, int rxSubType) = 0; - /** @brief Order the robot to take a picture **/ - virtual void takePhoto() {} - /** @brief Order the robot to toggle video recording **/ - virtual void toggleVideo() {} /** @brief Send the full HIL state to the MAV */ #ifndef __mobile__