Skip to content

Commit

Permalink
Disabling MotionDetection to fit marauder 1.0.0
Browse files Browse the repository at this point in the history
In the future, I need to explore how to implement this in a more lightweight way. Should be simple.
  • Loading branch information
eried committed Sep 18, 2024
1 parent 693844f commit ff134a9
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions esp32cam_marauder/MotionDetection.ino
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// Using EloquentEsp32cam library
#include <eloquent_esp32cam.h>
#include <eloquent_esp32cam/motion/detection.h>
//#include <eloquent_esp32cam.h>
//#include <eloquent_esp32cam/motion/detection.h>

using eloq::camera;
using eloq::motion::detection;
/*using eloq::camera;
using eloq::motion::detection;*/

void motion_detection_setup() {
camera.pinout.aithinker();
/*camera.pinout.aithinker();
camera.brownout.disable();
camera.resolution.vga();
camera.quality.high();
Expand All @@ -30,14 +30,15 @@ void motion_detection_setup() {
Serial.println(camera.exception.toString());
Serial.println("Camera OK");
Serial.println("Awaiting for motion...");
Serial.println("Awaiting for motion...");*/
Serial.println("Motion detection not available.");
}

unsigned long nextMotionAlert = 0;
//unsigned long nextMotionAlert = 0;

void motion_detection_loop() {
// capture picture
if (!camera.capture().isOk()) {
/*if (!camera.capture().isOk()) {
Serial.println(camera.exception.toString());
return;
}
Expand All @@ -53,5 +54,5 @@ void motion_detection_loop() {
Serial.println("Motion!");
nextMotionAlert = millis()+1000;
}
}*/
}

0 comments on commit ff134a9

Please # to comment.