Giter VIP home page Giter VIP logo

dw1000-positioning's Introduction

ToA based positioning with DW1000 UWB module

Overview

Components

  • tagArduino/: Arduino sketch for DW1000 tag
  • tagRPi/: Raspberry Pi C++ app controlling tagArduino
  • anchorArduino/: Arduino sketch for DW1000 anchor
  • headers/: Common header files are located here

You can ignore other files

Instructions

Navigate and find README.md in each directory of:

dw1000-positioning's People

Contributors

somidad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dw1000-positioning's Issues

is the library support the multiple tags ?

is the library support the multiple tags ?

/* Edit tagId */
// Each tag must have a unique tag ID (do not use ID 0)
// DO NOT REMOVE FLAT_TAG
const uint16_t tagId = FLAG_TAG | 1;

Changing tagId is enough to the this ?

Continues Ranging and update rate

I want to make continues ranging to make this:

ı changed

PRINTLN(F(" Ranging all anchors. Return to IDLE"));
updateState(STATE_IDLE);

to

PRINTLN(F(" Ranging all anchors. Return to IDLE"));
updateState(STATE_PONG);

and ı add some code to calculateRange function amd then received Continues Ranging like this:

123 , 158 , 182 , 93 , 96
31 , 158 , 185 , 93 , 96
31 , 158 , 185 , 85 , 96
30 , 158 , 185 , 85 , 100
123 , 153 , 185 , 85 , 100
31 , 153 , 194 , 85 , 100
31 , 153 , 194 , 88 , 100
30 , 153 , 194 , 88 , 99
121 , 150 , 194 , 88 , 99
31 , 150 , 172 , 88 , 99
31 , 150 , 172 , 93 , 99
30 , 150 , 172 , 93 , 99
123 , 151 , 172 , 93 , 99
31 , 151 , 170 , 93 , 99

the first row is delay time for every calculateRange(); others are anchors distance(cm)

as you can see sometimes there is a big delay like 120ms,

we can eliminate this delay?

whole code:

void calculateRange() {
DW1000Time round1 = (timePollAckReceived - timePollSent).wrap();
DW1000Time reply1 = (timePollAckSent - timePollReceived).wrap();
DW1000Time round2 = (timeRangeReceived - timePollAckSent).wrap();
DW1000Time reply2 = (timeRangeSent - timePollAckReceived).wrap();
DW1000Time tof = (round1 * round2 - reply1 * reply2)
/ (round1 + round2 + reply1 + reply2);
distance[idx_anchor] = tof.getAsMeters();
if(calHz == 0){
currentMillis = millis();
calHz = 1;
Serial.print( millis() - currentMillis2);
Serial.print(" , ");
}else{
calHz = 0;
currentMillis2 = millis();
Serial.print( millis() - currentMillis);
Serial.print(" , ");
}
Serial.print(round(distance[0]*100));
Serial.print(" , ");
Serial.print(round(distance[1]*100));
Serial.print(" , ");
Serial.print(round(distance[2]*100));
Serial.print(" , ");
Serial.println(round(distance[3]*100));
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.