I am writing a LUA script that is invoked via NAV_SCRIPT_TIME to do a custom maneuver for my rover.
Right now it seems that our calls to vehicle:set_desired_turn_rate_and_speed aren’t quite working correctly. So my question is, do I need to put the vehicle into GUIDED mode in order for that call to work?
@rmackay9, I don’t think that’s quite true. I just tested the attached script with the mission depicted below, and it works fine without explicitly commanding GUIDED mode as you suggest. As I understand, NAV_SCRIPT_TIME was designed to accept targets just as GUIDED mode would.
@Christopher_Milner your issue may have been failing to send target rate/speed updates at a high enough rate. The vehicle needs to see updated (or repeated) targets fairly often, or it will appear to be unresponsive.