sallyc

  • *
  • 47
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?

f5soh

  • *****
  • 4572
    • LibrePilot
Re: After communication with Pi. cc3d always got stack overflow alarm
« Reply #1 on: December 11, 2017, 06:00:23 pm »
Can you post the python script you are using ?

sallyc

  • *
  • 47
Re: After communication with Pi. cc3d always got stack overflow alarm
« Reply #2 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.

sallyc

  • *
  • 47
Re: After communication with Pi. cc3d always got stack overflow alarm
« Reply #3 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..

f5soh

  • *****
  • 4572
    • LibrePilot
Re: After communication with Pi. cc3d always got stack overflow alarm
« Reply #4 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.