Re: Controlling CC3D with Arduino
« Reply #15 on: October 06, 2018, 05:16:38 pm »
ManualCommandReadOnly() do not set something, this is a check function returning the uavo status

Yes.  My point was that he needs to look at this code.

Re: Controlling CC3D with Arduino
« Reply #16 on: October 06, 2018, 05:31:47 pm »
That could be a possibillity, but why do I receive a changed value when I send and receive the package again, if the other source overrides it?

I am making a guess, but normal input runs maybe 50 times a second.  You set, then 0.1ms later you get, and the value is what you set.  10ms later the normal input runs and overwrites your set.  You could wait 50ms (really only 20ms is probably needed) or so between set and get to see if it has changed back.

Quote
Is there no other way?
You don't have to use the LP framework, but you do need to do the things that it does.  In particular, you need to set that "readonly" property to turn off the normal input processing.  I suggest you look at the C code referred to look at what is exectuted when the readonly property is set.  :)
« Last Edit: October 06, 2018, 05:46:24 pm by TheOtherCliff »

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Controlling CC3D with Arduino
« Reply #17 on: October 06, 2018, 06:26:29 pm »
Quote
I suggest you look at the C code referred to look at what is exectuted when the readonly property is set.  :)
Not sure you are able to play with metadata from arduino, without additional code. :)

Quote
Is there no other way?
As a test, you can flash the firmware attached (16.09) without receiver module.
You should also consider using Next with matching arduino templates if you plan to use others UAVOs.
Arduino target was added after the 16.09 release, not sure all the UAVO Object IDs defined in firmware are the same as the ones used in arduino templates you are using.

Re: Controlling CC3D with Arduino
« Reply #18 on: October 08, 2018, 03:04:28 pm »
Quote
You should also consider using Next with matching arduino templates if you plan to use others UAVOs.

I've tried to build the GCS from the "next" branch, but I there is an error with the coptercontrol.elf. Enclosed you can find a screenshot of the error.

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Controlling CC3D with Arduino
« Reply #19 on: October 08, 2018, 05:45:04 pm »
Seems a missing python2 package