Comments (12)
I'd like to second this request. For some reason it won't even compile for Teensy 3.1.
Here's the error it's spitting out:
In file included from C:\Users\Documents\Arduino\libraries\arduino-dw1000-master\src/DW1000.h:248:0,
from BasicReceiver.ino:23:
C:\Users\Documents\Arduino\libraries\arduino-dw1000-master\src/DW1000Time.h:27:0: warning: "TIME_RES" redefined [enabled by default]
#define TIME_RES 0.000015650040064103f
^
In file included from BasicReceiver.ino:23:0:
C:\Users\Documents\Arduino\libraries\arduino-dw1000-master\src/DW1000.h:26:0: note: this is the location of the previous definition
#define TIME_RES 0.000015650040064103
^
In file included from C:\Users\Documents\Arduino\libraries\arduino-dw1000-master\src/DW1000.h:248:0,
from BasicReceiver.ino:23:
C:\Users\Documents\Arduino\libraries\arduino-dw1000-master\src/DW1000Time.h:28:0: warning: "TIME_RES_INV" redefined [enabled by default]
#define TIME_RES_INV 63897.6f
^
In file included from BasicReceiver.ino:23:0:
C:\Users\Documents\Arduino\libraries\arduino-dw1000-master\src/DW1000.h:27:0: note: this is the location of the previous definition
#define TIME_RES_INV 63897.6
^
In file included from C:\Users\Documents\Arduino\libraries\arduino-dw1000-master\src/DW1000.h:248:0,
from BasicReceiver.ino:23:
C:\Users\Documents\Arduino\libraries\arduino-dw1000-master\src/DW1000Time.h:77:31: error: 'constexpr' needed for in-class initialization of static data member 'const float DW1000Time::SECONDS' of non-integral type [-fpermissive]
static const float SECONDS = 1e6;
^
C:\Users\Documents\Arduino\libraries\arduino-dw1000-master\src/DW1000Time.h:78:36: error: 'constexpr' needed for in-class initialization of static data member 'const float DW1000Time::MILLISECONDS' of non-integral type [-fpermissive]
static const float MILLISECONDS = 1e3;
^
C:\Users\Documents\Arduino\libraries\arduino-dw1000-master\src/DW1000Time.h:79:36: error: 'constexpr' needed for in-class initialization of static data member 'const float DW1000Time::MICROSECONDS' of non-integral type [-fpermissive]
static const float MICROSECONDS = 1;
^
C:\Users\Documents\Arduino\libraries\arduino-dw1000-master\src/DW1000Time.h:80:35: error: 'constexpr' needed for in-class initialization of static data member 'const float DW1000Time::NANOSECONDS' of non-integral type [-fpermissive]
static const float NANOSECONDS = 1e-3;
^
Error compiling.
from arduino-dw1000.
I have been working on this. As suggested by @leosayous21, removing references to arduino specific "digitalWriteFast" gets the examples compiling. My fork can be found here: https://github.com/sondree/arduino-dw1000
Do note that it is not currently working, I seem to get information back from the transceiver however I am unable to successfully transmit between two modules. With changes found in my fork you should be able to compile and use the "Connectivity example"
from arduino-dw1000.
@fornzix Your issue seems to be that you have to guarantee that the expression in DW1000Time.h are possible to evaluate compile time. Fixing said issue is as easy as adding "constexpr" to all the offending declarations. I remember having this issue when I first started, but my local library no longer has the offending lines. You should probably pull the latest changes.
from arduino-dw1000.
The way I fixed this issue is by adding the "f" after the floating number on the DWM1000.h file.
Everything uploads and work after removing the reference to the digitalWriteFast file except the interrupt. Anyone had the same problem? The program never goes to the interrupt. I can fork my version if someone is interested!
from arduino-dw1000.
@paulerolland This seems very very similar to the issues I had. Sadly I do not have a fix. As stated, I could run the module connection test examples, but any transmit/receive examples would not work (as they require interrupts)
from arduino-dw1000.
@Sondree Thank you for your answer. I will try to find a way to make it work. I will update this thread if I find something!
from arduino-dw1000.
Just made it work! I chose the right mode for the interrupt pin using pinMode. Here is my fork if you want to take a look at it. I also added the option to choose the IRQ, RESET and CS pin for the Basic Receiver and Sender, the ACHOR and the TAG ino files.
I hope that can help you!
https://github.com/paulerolland/arduino-dw1000
from arduino-dw1000.
@paulerolland I will test your fork tomorrow and see if I can replicate it. I really hope so, will report back.
from arduino-dw1000.
@paulerolland It works, well done :) My test setup sometimes times out, does yours do this?
from arduino-dw1000.
@Sondree It does the same with me. I will work on this and the simple send and receive to check if I can fix it.
from arduino-dw1000.
@paulerolland could you please elaborate on your setup? I'm running your fork on 2 Teensy 3.1's and trying the tag and anchor sketch and not getting any communication between the two. On the com port for the tag I'm seeing ###tag### and on the comp port for the anchor I'm seeing ###anchor###, but nothing else.
from arduino-dw1000.
outdated
from arduino-dw1000.
Related Issues (20)
- chage ANCHOR number
- DW1000 shield for Arduino Nano (Nucleo-32)
- Would it be possible to let the DW1000 module be TAG and ANCHOR at the same time?
- DWM1000 NodeMCU Esp8266 3 anchors and 1 Tag HOT 3
- Problems with BasicReceiver and BasicSender
- No connection: Compatible with Board DWS1000 (Arduino Uno)?
- Hello Sir : Could you support DWM3000 library?? Thank you.
- multi anchor or tag on 1 arduino ? can be done if os how ?
- Missing return
- Why is the "checkForReset" method so necessary for Anchor?
- Why choosing DEFAULT_REPLY_DELAY_TIME: 7000us?. Can/how i change it?
- Can you halp me? How to connect and program Adapter board max2001/dwm1000? (Arduino nano)
- Arduino Pro mini & DWM1000 HOT 3
- DW1000 Soft-Reset Issue
- Connecting time between tag and anchor HOT 1
- Possible error within the tune function regarding transmit power.
- TDoA implementation for DWM1000 HOT 1
- Apparent internal limitation of four anchors?
- Schematic Review: Custom PCB for DW1000.
- Adding more tags to the system HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino-dw1000.