Making a Vertical Orbit
I am trying to modify the open source horizontal orbit function so that it will fly the orbit vertically instead of horizontally. I have changed all instances of 'horizontal' to 'vertical' in the code in both the Executable.js and the Dynamicinputs.js but the mission still flies a horizontal orbit. Is that because the original reference to the OrbitComponent is programmed to fly in a horizontal orbit? Is there a way to change this?
The reason I want to change the orbit to vertical is to do vertical circles for light painting purposes.
Chris
Comments
11 comments
The Orbit component cannot be modified in this way. If you really want to accomplish this behavior you would have to create your own mode (not a function). If this is something you are interested in, we could talk about getting you access to the source for the current Orbit mode (not to be confused with the Orbit component) as a starting point.
I would be interested in this. Not sure if it will be beyond what I am capable of but I would be willing to take a look at creating a mode or modifying the current Orbit mode.
Thanks,
Chris
Please send the request to support@dronelink.com.
Hi Chris Laframboise, Were you able to create this mode?
Jim McAndrew, Why wouldn't be this possible with a function? Wouldn't setting the correct circle angle and speed (with some tweaks) work? Something similar I found: https://github.com/ArduPilot/ardupilot/blob/master/libraries/AP_Scripting/examples/copter-fly-vertical-circle.lua
I have not had much time to work on it as my wife's parents passed away in November so that has taken priority. I do plan on working on the vertical orbit once Christmas and New Years is over or if I get some time during the school break.
Functions are only able to create and configure existing component types. There is not an existing component type that can do this, so either we (Dronelink) would have to create this, or you can write it as a mode.
Thanks, Jim. Is there documentation for custom modes?
I was set to ask for the same but just saw this thread.
Any update on that ?
I haven't had much time to work on this but plan on getting back to it. I need to learn more about GitHub and JavaScript before I can work on modifying the orbit mode so that it is vertical.
Chris
Is this for light painting or something else?
Yes, my original intention for making a vertical orbit is for light painting purposes.
Please sign in to leave a comment.