Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Gyroscope on Ionic?

Hello,

 

I just bought an Ionic to start playing with the SDK but I've run into a difficulty from the very beginning, the gyroscope doesn't seam to work.

I read:

https://dev.fitbit.com/reference/device-api/gyroscope/

https://dev.fitbit.com/guides/sensors/gyroscope/#overview

 

I've tried both samples from the overview but they don't work even if I remove everything else from my code. The similar sample with the accelerator works fine. I'm I missing something? Do I need to enable access to it for my app or something like that?

 

Thank you for your help.

 

Nicolas.

Best Answer
0 Votes
3 REPLIES 3
The template project in Fibit Studio uses the gyroscope and that worked fine.

I based my project on it and removed all the gyroscope code, there didn't seem to be any permissions or anything.
Best Answer
0 Votes

Which template are you referring to?

I tried the "sensor" template but I only these 3 with no Gyroscope. I have no issues with the accelerometer.

This is what the template has for me:

let accel = new Accelerometer();
let bar = new Barometer();
let hrm = new HeartRateSensor();

Thank you for your help 🙂

Best Answer
0 Votes
Sorry, I thought you meant accelerometer!
Best Answer
0 Votes