Skip to content

Commit

Permalink
fix: minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ckeller81 committed Aug 25, 2024
1 parent 1e85ee6 commit 0f06125
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/PathFinder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export default defineComponent({
const repeatAnnouncement = () => {
status.value = "Announcement repeated";
playAnnouncement();
}
const captureImage = async () => {
Expand All @@ -89,7 +90,6 @@ export default defineComponent({
}
isDetecting.value = true;
try {
const objects = await objectDetectionService.detectObjects(imageData);
Expand Down Expand Up @@ -159,7 +159,7 @@ export default defineComponent({
try {
const image = await imageCaptureService.extractImage();
await webSocketService.uploadTrackImage({
trackId: currentTrackId.value!,
trackId: currentTrackId.value,
pictureBase64: image.imageDataBase64,
mimeType: "image/jpeg",
imageData: undefined
Expand Down Expand Up @@ -230,7 +230,7 @@ export default defineComponent({
status.value = data ? "Position found" : "Position not found";
if (data && data.trackNodeId) {
lastNodeFound.value = data;
imageQueryIntervalMs.value = 2000;
imageQueryIntervalMs.value = 1000;
} else {
imageQueryIntervalMs.value = Math.max(500, imageQueryIntervalMs.value / 2);
}
Expand Down

0 comments on commit 0f06125

Please sign in to comment.