Hi everyone!
I’m currently trying to upload missions using the MAVLink protocol to a PX4 Gazebo simulator and I’ve been getting the error “ERROR: wp index out of bounds”.
I’ve uploaded mission items to the autopilot, and the autopilot seems to accept the entire mission. I’ve tested that the mission does run correctly, but the autopilot seems to spam the wp index out of bounds message. This spamming seems to occur on start up (when I run the simulator) and stops when I connect the autopilot to my ground station.
The index that is “out of bounds” is -1. I’m not entirely sure how that index is getting to -1 on start-up, and it looks like it corrects itself (to 0), after connecting to my ground station. Do you guys have any tips/ideas as to why this may occur?
Thanks!