Jump to content


Photo

HiTL sensor readings


  • Please log in to reply
3 replies to this topic

#1 Kenn Sebesta

Kenn Sebesta

    Banned

  • Banned
  • PipPipPip
  • 2788 posts
  • Country: flag of Luxembourg Luxembourg


Posted 18 June 2012 - 10:10 AM

It seems hardware in the loop makes certain modules stop. For instance, I want HiTL to take in sensor data and have my sensor module do actions on the data and return an improved state estimate. While this works in peabody124's SiTL simulation and in real experiments, it doesn't work in HiTL. I'm supposing this is a setting turned on/off somewhere, could someone point me at it?

#2 hhrhhr

hhrhhr

    Advanced Member

  • Members
  • PipPipPip
  • 214 posts
  • LocationVeliky Novgorod
  • Country: flag of Russian Federation Russian Federation


Posted 20 June 2012 - 05:07 PM

	    UAVObject::SetFlightAccess(mdata, UAVObject::ACCESS_READONLY);
	    UAVObject::SetGcsAccess(mdata, UAVObject::ACCESS_READWRITE);
http://git.openpilot.org/browse/~br=next/OpenPilot/ground/openpilotgcs/src/plugins/hitlnew/simulator.cpp?hb=true#to250

#3 Kenn Sebesta

Kenn Sebesta

    Banned

  • Banned
  • PipPipPip
  • 2788 posts
  • Country: flag of Luxembourg Luxembourg


Posted 20 June 2012 - 05:19 PM

Thanks, that makes perfect sense now. I thought that was something special on the flight side, I didn't realize it was as easy as setting the metadata. UAVO never cease to amaze me.

#4 osnwt

osnwt

    Devil's advocate

  • Administrators
  • 2630 posts
  • LocationSevastopol
  • Country: flag of Ukraine Ukraine


Posted 22 June 2012 - 12:47 PM

Please note that not all flight modules even check for these metadata flags (for instance, the attitude module on CopterControl didn't until it was fixed for HITLv2).