Jump to content


Confusion on difference about UAVObject and Instances

UAVObject and Instances

  • Please log in to reply
2 replies to this topic

#1 shaopengyuan

shaopengyuan

    New Member

  • Members
  • Pip
  • 9 posts
  • LocationShaan'Xi Xi'an
  • Country: flag of China China

Posted 15 January 2012 - 12:24 PM

I'm a beginner to OpenPilot GCS Development. These days, I'm learning the code about communications bettwen GCS and flight control computer. But there are some confusions on the code:
When I refered to classes about UAVObject, I found there was a ObjectID and InstID for the UAVObject, I can't make out the differece bettwen Object and Instance clearly. If someone knows about it and tell it to me, it will be very appriciated!

#2 shaopengyuan

shaopengyuan

    New Member

  • Members
  • Pip
  • 9 posts
  • LocationShaan'Xi Xi'an
  • Country: flag of China China

Posted 15 January 2012 - 02:09 PM

I'm sorry that there may be some mistakes in English expression for my inexperience about English, it's welcome to point out the error usage in expressions of English, English users don't laugh,haha :P

#3 peabody124

peabody124

    Crash Dummy

  • Administrators
  • 4112 posts
  • LocationHouston, TX
  • Country: flag of United States United States


Posted 15 January 2012 - 09:41 PM

I didn't see any mistakes in your english :)

As for the difference for most objects instance ID is 0.  However, that system is available for some objects (e.g. AccessoryDesired) to allow multiple copies of that object to exist.