Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh Rate Issue #319

Open
lyon470 opened this issue Dec 16, 2020 · 0 comments
Open

Refresh Rate Issue #319

lyon470 opened this issue Dec 16, 2020 · 0 comments

Comments

@lyon470
Copy link

lyon470 commented Dec 16, 2020

Step 1: What do you want?

  • Report an issue.
  • Improve code (and need help).

Step 2: Describe your environment

  • Arduino IDE version or Toolchain: Arduino IDE 1.8.13
  • dw1000 Library version: 2017 modified for radino32
  • Arduino device: radino32 dw1000

Step 3: Describe the problem

Refresh Rate Maximum is only at 2 Hertz.
Only every 0,5s is a measurement.

Relevant Code:

#include "IC_DW1000_Ranging_local.h"
#include <SPI.h>

#define def_short_address 0x2020
#define PIN_LED 13
#define usedAntennaDelay 32850UL

void setup() {
if (PIN_LED != 0xFF) pinLow(PIN_LED, OUTPUT);

startWatchdog();
DW1000Ranging.initCommunication();
DW1000Ranging.attachNewRange(newRange_anchor);
DW1000Ranging.attachMeasureComplete(measureComplete);
DW1000Ranging.startAsTag("7D:00:22:EA:82:60:3B:9C", DW1000.MODE_IN_CIRCUIT_1, def_short_address, IC_DW_USB_STICK_ANC);
DW1000.setManualTxPower(400);
DW1000.setAntennaDelay(usedAntennaDelay);
DW1000Ranging.lastInterruptTime = millis();
}

void loop() {
reloadWatchdog();
DW1000Ranging.dwloop();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant