ArduPilot / ardupilot

ArduPlane, ArduCopter, ArduRover, ArduSub source
http://ardupilot.org/
GNU General Public License v3.0
11.02k stars 17.57k forks source link

Problem at register_periodic_callback #18791

Closed hathach23 closed 3 years ago

hathach23 commented 3 years ago

Bug report

Issue details

Please describe the problem I would like to report the problem. The function register_periodic_callback . As i tried to call it in my init()-function, the device could not be connected to the mission planer (wire connect) and if i removed it, the CubeOrange could be connected as usual

Version What version was the issue encountered with 4.0.7

Platform [ ] All [ ] AntennaTracker [ x ] Copter [ ] Plane [ ] Rover [ ] Submarine

Airframe type What type of airframe (flying wing, glider, hex, Y6, octa etc) hex

Hardware type What autopilot hardware was used? (Pixhawk, Cube, Pixracer, Navio2, etc) CubeOrange

Logs Please provide a link to any relevant logs that show the issue

rmackay9 commented 3 years ago

This is probably not the place to ask questions, maybe try on discuss or discord.

I don't fully understand the report but perhaps the issue is that you can only read and write to serial ports using the same thread that executed the "begin" on the serial port.