Skip to content

Commit

Permalink
hide trigger trap if not ir camera
Browse files Browse the repository at this point in the history
  • Loading branch information
gferraro committed Feb 1, 2023
1 parent f9dfa64 commit 3eb6c8d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions static/js/camera.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,13 @@ async function processFrame(frame: Frame) {
frame.frameInfo.Camera.ResX,
frame.frameInfo.Camera.ResY
);
// gp hack to see if ir camera
let irCamera = frame.frameInfo.Camera.ResX == 640;
// gp hack to see if ir camera, dbus from python makes dictionary have to be all int type
let irCamera = frame.frameInfo.Camera.Model=="2";
if(irCamera){
document.getElementById("trigger-trap")!.style.display = "";
}else{
document.getElementById("trigger-trap")!.style.display = "none";
}
let max=0;
let min=0;
let range=0;
Expand Down

0 comments on commit 3eb6c8d

Please sign in to comment.