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

Implementation of the APS014 - DW1000 Antenna Delay Calibration #244

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

albertkasdorf
Copy link

Hi,

I am currently trying to calibrate the antenna delay of my DW1000 Controller Boards. But I have some trouble with the formula in "Figure 5: Evaluate the quality of the candidates - flowchart". Maybe I have done everything correct and you can integrate my changes or maybe someone can help me with that point.

DW1000.h/DW1000.cpp:

  • I have inserted two static function so that you can set/get the antenna delay from the ino files.

Calibration_ANCHOR.ino:

  • Note: My board uses another PIN_IRQ!
  • The same like DW1000Ranging_ANCHOR.ino but with the call to setAntennaDelay.

Calibration_TAG.ino:

  • Note: My board uses another PIN_IRQ!
  • The same like DW1000Ranging_TAG.ino but with the call to setAntennaDelay and transfer of the relevant calibration data in json format to the host computer.

serial_to_json_to_csv.py:

  • Runs on the host computer, catches the json data and write it to a csv file on the host computer.
  • You have to run the script for each DW1000-based device, see also "Figure 2: TWR reference device generation setup".
  • Change once the parameter SERIAL_PORT and GROUND_TRUTH.
  • Change for each DW1000-based device the output file (CSV_FILE_NAME) in the script.
  • Use a spreadsheet program to compute the average of several range estimates, you need these values in the next script. (Here is the spreadsheet file with my measurements: measurement_two_meter.xlsx)

antenna_delay_calibration.py:

  • Implementation of the APS014 - DW1000 Antenna Delay Calibration
  • Populate EDM_ACTUAL and EDM_MEASUREMENT, run it and you get the antenna delay values for each DW1000-based device.
  • Note: I have no idea if the create_chip_delay function is correct, the "Figure 5: Evaluate the quality of the candidates - flowchart" is in this point not precise enough.

With friendly greetings from Germany.

@Rotzbua Rotzbua added the review required someone has to review and confirm the code label Nov 25, 2017
@Anacron-sec
Copy link
Contributor

I think there's one problem with the code, there's no default delay in case it is not explicitly set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review required someone has to review and confirm the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants