Conditional Land Start in mission for solar PV UAV

Dear Guys, we are experimenting with a solar PV Tail sitter with belly landing feature. Now the issue is that we can make a waypoint mission, but when the battery goes low, at sunset, we want it to land. (this is no problem (if we set the land fail safe), but next we want it too start again when the battery has been charged again next morning by the PV system on its wings. So we need to have a sequence like this that can happen even between waypoints: battery monitoring: low land and next when battery voltage is OK again, start and resume mission to next way point. Should we have a accompanying computer like RP, or is there another solution? We use a Cube Orange . Hope to hear, Winfried

You could use a lua scrpt to tell it to RTL when the voltage gets under a set level.

1 Like

Thanks for the swift reply. Yes, but in this case the issue is that during the mission, the drone batt will get low. it should then land, where that happens, then it will be solar charged by the PV system on its wings in the next morning, so when the batt is charged again it should resume automatically the mission. So is that doable with lua script in a RP computer, that feeds into mavlink commands?

you dont need the extra computer it will run on the flight controller.

1 Like

OK sounds good, but would not even know how to write a script via mission planner? Can you upload it in MP under the script tab in the data screen?

https://ardupilot.org/copter/docs/common-lua-scripts.html

1 Like

Sounds good, will have to learn this lua! Would a start be to: get batt voltage; compare with min value; if below to to land, check every eg 30 min and if above certain min threshold execute resume mission?

2 Likes

I have a solar rover, Iā€™m planning on doing something similar this summer.

Great to hear! Will keep in contact, Cheers Winfried