File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
gui/src/components/onboarding/pages Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -45,16 +45,17 @@ export function CalibrationTutorialPage() {
4545 useEffect ( ( ) => {
4646 const accelLength = restCalibrationTrackers . every ( ( x ) => {
4747 if (
48+ x . device ?. id ?. id === undefined ||
4849 x . tracker . trackerId ?. trackerNum === undefined ||
4950 x . tracker . trackerId . deviceId ?. id === undefined ||
5051 ! x . tracker . linearAcceleration
5152 )
5253 return false ;
5354
54- const trackerId =
55- x . tracker . trackerId . trackerNum + ( x . tracker . trackerId . trackerNum << 8 ) ;
56- const lastValues = lastValueMap . current . get ( trackerId ) ?? [ ] ;
57- lastValueMap . current . set ( trackerId , lastValues ) ;
55+ const trackerId = x . device . id . id ;
56+ // x.tracker.trackerId.trackerNum + (x.tracker.trackerId.deviceId.id << 8);
57+ const lastValue = lastValueMap . current . get ( trackerId ) ?? new Vector3 ( ) ;
58+ lastValueMap . current . set ( trackerId , lastValue ) ;
5859
5960 const vec3 = Vector3FromVec3fT ( x . tracker . linearAcceleration ) ;
6061 if ( lastValues . length > 5 ) {
You can’t perform that action at this time.
0 commit comments