Is there a way to modify the open-source 360 Pano function?
I want to be able to modify the Open-source 360 Pano Function so it will work with my Spark gimbal. The goal is if I can get this to work then I will try to get the Open-source 360 Panos one to work which is the one I am after.
I have already been able to modify the components of a mission created by the 360 OTF function and tested it to work with my Spark.
The code in the JS makes a call to a "360 Photo".
const component = Dronelink.Serialization.clone(components["360 Photo"], true)
If I rename it to something like "360 Photo Spark" and use my modified components will it work? Obviously it would need to be someplace where the script would find it.
Not sure if this is even possible as I don't know JS but I can follow the logical steps in the code.
Chris
Comments
9 comments
Click this button to see the "referenced" components:
If you want to reference your own component, you can do it there.
Thanks Jim,
I had tried that button before and it brought up the 360 Photo component but wasn't sure. I put in my new component and ran the check syntax button and everything checked out - now I just have to do an actual field test. May try today but it snowed and it is cold so we shall see.
When I tried to move the component from my Premium account to my Starter account it wouldn't let me and I got an error saying I needed an Enterprise account. I was still able to access the referenced component in the repo in my Premium account from within my Starter account, so why can't I move the component between accounts but I can still access it between the two?
Chris
What is the exact error message?
Here is the screen shot. Was trying to copy and paste.
Chris
Can you delete the asset source in that component before you copy it? Should be in settings.
What asset source are you referring to within the component? It is basically the 360 Photo function modified to work with my Spark.
Thank you Jim, that worked. Now I need to make a repo in my Starter account to put that component in and to change the Functions I customized to look for it in the new repo rather than the one in the Premium account.
Did have a chance to test the customized 360 photos function I modified for my Spark but it didn't work but I know what my problem was - I forgot to change the gimbal orientation at frame 1 from 12º to 0º so it would work for the Spark. Will try to get out and do another test soon.
Love Dronelink!!
Chris
I have been able to modify the open source 360 photos function to work with my Spark by fixing the gimbal orientation problems at frame 1 and the last frame. Now I can have the Spark fly to different locations and mark them and it will take a 360 photo at each one. Basically, I can only get in two 360 photos due to the short battery life of my Spark but it is much more efficient than the one 360 photo I could only get with GO4.
Thanks for your help Jim!
Please sign in to leave a comment.