Print state in the arri-s firmware

This commit is contained in:
Matt McWilliams 2023-04-17 16:44:04 -04:00
parent d2390dca30
commit 144b408092
1 changed files with 7 additions and 1 deletions

View File

@ -48,6 +48,8 @@ void cmd (char val) {
setDir(false);
} else if (val == mc.CAMERA) {
cam();
} else if (val == mc.STATE) {
state();
}
}
@ -72,12 +74,16 @@ void cam () {
mc.log("cam() -> backward");
}
mc.confirm(mc.CAMERA);
timeFrame(startTime);
mc.log(String(cameraFrame));
}
void timeFrame (long startTime) {
if (cameraFrame == -1) {
cameraFrame = millis() - startTime;
} else {
cameraFrame = round((cameraFrame + (millis() - startTime)) / 2);
}
mc.log(String(cameraFrame));
}
void state () {