SensorTag speed up

Discuss mobile apps for Texas Instruments products.
Barrett
Posts: 8
Joined: 19:28, 23 Sep 2015

SensorTag speed up

Postby Barrett » 03:34, 09 Sep 2016

I made a bicycle speedometer, but the magnet passes the SensorTag too quickly. Some of the samplings are missed at 1/10 of a second sensor reads.
How can I change the samplings to 1/100 of a second?

The frequency of sampling Sensortag is in tisensortag-ble.js, line 767. It originally was 1 second:
new Uint8Array([periodValue / 10]),

I made it 1/10 of a second:
new Uint8Array([10]),

Where is the periodValue defined, anyway?

Return to “Texas Instruments”

Who is online

Users browsing this forum: No registered users and 3 guests