Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Measuring Time of flight with panstamp NRG2
07-10-2017, 11:53 PM
Post: #1
Measuring Time of flight with panstamp NRG2
Hello everyone;
I want to use panstamp to measure time of flight between two nodes:
but i have some difficulties could you please help me:
- I tried to use millis() but it gives strange values.
- I tried also to use the timer1a0 but I dont get any value.
is there any other ideas ?
thank you in advance
Find all posts by this user
Quote this message in a reply
07-11-2017, 07:21 PM
Post: #2
RE: Measuring Time of flight with panstamp NRG2
Welcome Sinan,

What kind of strange values? millis provides millisecond count from a fixed time reference so you only have to calculate the difference between your first call to millis (start of flight) and second call (end of flight).

Daniel Berenguer
http://www.panstamp.com
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)