mirror of
https://github.com/MrUnknownDE/OpenIris-ESPIDF.git
synced 2026-04-18 14:03:45 +02:00
Remove reset camera
This commit is contained in:
@@ -255,28 +255,4 @@ int CameraManager::setVieWindow(int offsetX,
|
||||
|
||||
// todo safariMonkey made a PoC, implement it here
|
||||
return 0;
|
||||
}
|
||||
|
||||
//! either hardware(1) or software(0)
|
||||
void CameraManager::resetCamera(bool type)
|
||||
{
|
||||
// TODO add camera reset
|
||||
|
||||
// if (type)
|
||||
// {
|
||||
// // power cycle the camera module (handy if camera stops responding)
|
||||
// digitalWrite(PWDN_GPIO_NUM, HIGH); // turn power off to camera module
|
||||
// Network_Utilities::my_delay(0.3); // a for loop with a delay of 300ms
|
||||
// digitalWrite(PWDN_GPIO_NUM, LOW);
|
||||
// Network_Utilities::my_delay(0.3);
|
||||
// setupCamera();
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// // reset via software (handy if you wish to change resolution or image type
|
||||
// // etc. - see test procedure)
|
||||
// esp_camera_deinit();
|
||||
// Network_Utilities::my_delay(0.05);
|
||||
// setupCamera();
|
||||
// }
|
||||
}
|
||||
}
|
||||
@@ -31,7 +31,6 @@ public:
|
||||
int setVFlip(int direction);
|
||||
int setHFlip(int direction);
|
||||
int setVieWindow(int offsetX, int offsetY, int outputX, int outputY);
|
||||
void resetCamera(bool type);
|
||||
|
||||
private:
|
||||
void loadConfigData();
|
||||
|
||||
@@ -65,7 +65,6 @@ static esp_err_t UVCStreamHelpers::camera_start_cb(uvc_format_t format, int widt
|
||||
}
|
||||
|
||||
cameraHandler->setCameraResolution(frame_size);
|
||||
cameraHandler->resetCamera(false);
|
||||
|
||||
constexpr SystemEvent event = {EventSource::STREAM, StreamState_e::Stream_ON};
|
||||
xQueueSend(eventQueue, &event, 10);
|
||||
|
||||
Reference in New Issue
Block a user