mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-07-06 02:24:30 +02:00
updated Motiondetection in examples
This commit is contained in:
@ -13,7 +13,7 @@ void loop() {
|
||||
|
||||
int zvalue = 0;
|
||||
for(int i = 0; i<30;i++){
|
||||
zvalue += dezibot.motionDetection.getAcceleration().z;
|
||||
zvalue += dezibot.motion.detection.getAcceleration().z;
|
||||
}
|
||||
zvalue = zvalue/30;
|
||||
if(zvalue < -1700){
|
||||
|
Reference in New Issue
Block a user