mirror of
https://github.com/mudabbir-ahmad/MAD-Treasure-Hunt.git
synced 2026-10-07 19:00:20 +00:00
Update FOV configuration to increase distance and angle for improved visibility
This commit is contained in:
1 parent
1e405bb87f
commit
ecb61c4858
1 file changed
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
import * as geolib from 'geolib';
|
import * as geolib from 'geolib';
|
||||||
|
|
||||||
// --- FOV Configuration ---
|
// --- FOV Configuration ---
|
||||||
const FOV_DISTANCE = 20; // metres — radius of arc + length of straight edges
|
const FOV_DISTANCE = 30; // metres — radius of arc + length of straight edges
|
||||||
const FOV_ANGLE = 45; // degrees — total field of view (halved for each side)
|
const FOV_ANGLE = 60; // degrees — total field of view (halved for each side)
|
||||||
|
|
||||||
// Convert raw Magnetometer {x, y} reading to a 0-360° heading (0° = north)
|
// Convert raw Magnetometer {x, y} reading to a 0-360° heading (0° = north)
|
||||||
const toHeading = ({x, y}) => {
|
const toHeading = ({x, y}) => {
|
||||||
|
|||||||
Reference in new issue
Block a user