change radio parameters (Command Line option)

Firmware/software/electronics
Post Reply
ellesse
Beginner
Posts: 11
Joined: Thu Mar 26, 2015 10:35 am

change radio parameters (Command Line option)

Post by ellesse »

How do I change the radio parameters (channel and data rate) from my own python program (i.e. without using the GUI cfclient program)?
ellesse
Beginner
Posts: 11
Joined: Thu Mar 26, 2015 10:35 am

Re: change radio parameters (Command Line option)

Post by ellesse »

I have solved this issue by (badly) hacking the cfclient program. Is there any other method?
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: change radio parameters (Command Line option)

Post by arnaud »

Do you want to change the Crazyflie or Crazyradio parameters?
ellesse
Beginner
Posts: 11
Joined: Thu Mar 26, 2015 10:35 am

Re: change radio parameters (Command Line option)

Post by ellesse »

Crazyflie parameters
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: change radio parameters (Command Line option)

Post by marcus »

If I understand correctly you would like to set the radio parameters (like speed, channel and address) for the Crazyflie 2.0 from your own custom program using our library.

The settings are mapped up through the memory module, since they are stored in the EEPROM on the Crazyflie 2.0. To get access to them have a look at this code. This function takes the radio parameters (from the UI) and uses the memory API to save them. If you duplicate the rows in this function in your own program you will be able to set these once you have successfully connected to the Crazyflie 2.0. Note that changes in radio configuration doesn't take effect on the Crazyfllie 2.0 until you restart the Crazyflie.
ellesse
Beginner
Posts: 11
Joined: Thu Mar 26, 2015 10:35 am

Re: change radio parameters (Command Line option)

Post by ellesse »

Thanks.
Post Reply