Page 1 of 1
How to debug the programme on eclips
Posted: Wed Jun 24, 2015 10:16 am
by Droneman
Hello, i want to know how to debug the source code on eclipse, i tried to debug but there is error
thanks
Re: How to debug the programme on eclips
Posted: Thu Jun 25, 2015 3:28 pm
by chad
Hi Droneman. I think it would help a lot if provided more information about your problem.
What is the error?
Where are you running eclipse (Bitcraze 0.6 VM)?
How are you stepping through the debugger?
How are you connecting to the Crazyflie?
To debug Crazyflie firmware software, you need a device to connect to the Crazyflie. You will not be able to Crazyflie firmware on your PC without a connection to the Crazyflie itself since you cannot run the firmware code on a PC (it needs the STM32 MCU to run on).
Re: How to debug the programme on eclips
Posted: Fri Jun 26, 2015 12:07 pm
by Droneman
Hello chad, yes i'm using eclipse (Bitcraze 0.6 VM)?
i write some new code in the file stabilzer.c, and i want to debug the program without flashing the crazyflie everytime.
and i have a second question, could you tell me how to put a value for the roll manually without the joystick ?
i want to do an automatic flye without pc-client
i tried to set the power of the motor manually, and it works, now i want to set the value of the roll, could you tell me wich function can affect the value to the roll ?
thanks
Re: How to debug the programme on eclips
Posted: Thu Jul 09, 2015 2:36 pm
by marcus
Hi,
Currently there's no way to simulate the firmware running in the Crazyflie, you will have to flash the firmware to test it. To set the attitude in the Crazyflie have a look at the
stabilizer.c file.
Re: How to debug the programme on eclips
Posted: Fri Jul 10, 2015 8:43 am
by Droneman
Hello marcus
thanks i tried to play with altitude, but the barometrer is not well configured , the value of barometere change with a large interfvale that you can't doing a good stability, i did i control command to hold the stability but the barometer sensor is bad configured.
Is there other solution ?
or have you idea to filter the noise ?