Modifying the loco positioning firmware

All discussions related to the Loco Positioning system
Post Reply
Posts: 18
Joined: Sun Sep 08, 2019 12:44 pm

Modifying the loco positioning firmware

Post by nicuvlad94 » Sun Sep 08, 2019 12:53 pm


My name is Vlad, I am an ETH Zurich master student and for the last task of my master thesis I have to use crazyflie (never used it before). I would need to modify the DW1000 driver to work with my custom anchors. The only thing that I need is to perform ranging with my anchors. I tried to make a new task - in a new file, where I also copied the necessary functions from "lpsTwrTag.c". So created a loop in my task which executes every 3 seconds, where I blink an led and I execute this:

However, it seems that after one cyce, the task halts because the led does not blink anymore. Do you have any idea why this happens? I mention that when I initialize the dw1000 with dwConfigure(dwm) it works.

Do you have any clue why this happens?

Thank you,

Posts: 1995
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: Modifying the loco positioning firmware

Post by tobias » Tue Sep 10, 2019 7:17 am

Sounds interesting, please share more about you work :-). I'm guessing it gets stuck waiting for something, possibly a response from the dw1000?

Posts: 13
Joined: Mon Feb 25, 2019 2:03 pm

Re: Modifying the loco positioning firmware

Post by jdiep » Thu Sep 12, 2019 3:22 pm

I am an ETH student as well and also modified the firmware for my master thesis. I had a similiar issue, but I solved it by changing the return value from MAX_TIMEOUT to an arbitrary integer. Maybe this helps?

Post Reply