LibrePilot Forum

Users => Vehicles - MultiRotors => Topic started by: sallyc on December 11, 2017, 05:43:38 pm

Title: After communication with Pi. cc3d always got stack overflow alarm
Post by: sallyc on December 11, 2017, 05:43:38 pm
My cc3d board is connecting to pi, and after the communication, like pi gives command to cc3d, next time i cannot arm my drones because of stack alarm.
so usually i have to resetup my board.
is there a better solution so that i don't have to reset it everytime?
Title: Re: After communication with Pi. cc3d always got stack overflow alarm
Post by: f5soh on December 11, 2017, 06:00:23 pm
Can you post the python script you are using ?
Title: Re: After communication with Pi. cc3d always got stack overflow alarm
Post by: sallyc on December 14, 2017, 12:22:09 pm
Can you post the python script you are using ?
Yes, I am using the next branch python script, and i only used this function so i only posted driveServo. inside I add some function myself.
Title: Re: After communication with Pi. cc3d always got stack overflow alarm
Post by: sallyc on December 14, 2017, 04:08:49 pm
Can you post the python script you are using ?
and after half a minutes or one minutes the script is not response anymore, not printing, not response to the mode change. But in the beginning of the script running time everything works fine..
Title: Re: After communication with Pi. cc3d always got stack overflow alarm
Post by: f5soh on December 14, 2017, 09:01:48 pm
Try a better handle of telemetry rate settings removing this from the main loop, same for metadata: no need to set this at all times.
Especially without changes requested.