Making a Vertical Orbit

Chris Laframboise

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

0

Comments

11 comments

  • Comment author
    Jim McAndrew Dronelink Staff

    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.

    0
  • Comment author
    Chris Laframboise

    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

    0
  • Comment author
    Jim McAndrew Dronelink Staff

    Please send the request to support@dronelink.com.

    0
  • Comment author
    akash trivedi

    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

    0
  • Comment author
    Chris Laframboise

    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.

    Chris
    0
  • Comment author
    Jim McAndrew Dronelink Staff

    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.

    0
  • Comment author
    akash trivedi

    Thanks, Jim. Is there documentation for custom modes? 

    0
  • Comment author
    stéphane GARNIER

    I was set to ask for the same but just saw this thread. 

    Any update on that ?

    0
  • Comment author
    Chris Laframboise

    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

    0
  • Comment author
    Barry Houldsworth Dronelink Expert Dronelink Expert

    Is this for light painting or something else?

    0
  • Comment author
    Chris Laframboise

    Yes, my original intention for making a vertical orbit is for light painting purposes.

    0

Please sign in to leave a comment.