microsoft / AirSim

Open source simulator for autonomous vehicles built on Unreal Engine / Unity, from Microsoft AI & Research
https://microsoft.github.io/AirSim/
Other
16.39k stars 4.57k forks source link

Combining HIL with actual flying #304

Closed andersforslund closed 7 years ago

andersforslund commented 7 years ago

Hi! I'm building a custom octocopter, and I want to do Hardware-In-the-Loop testing. I have a CAD-model of my design, so I will just follow the hexacopter example to get it into AirSim. However, my question is this: How do I combine HIL simulations with actual flying? Do I need different firmware, or will the HIL firmware work with real flying out of the box? What's the recommended way of doing it?

lukaszdworako commented 7 years ago

Here is a doc on custom drones. I also made a new tutorial that might be a bit more helpful than the hexacopter tutorial since you have 8 props instead of the 6 in that tutorial.

sytelus commented 7 years ago

@lukaszdworako would you be able to send the pull request for your doc? It would be great to add in official repo? Also please feel free to send any other changes you think might be helpful.

lukaszdworako commented 7 years ago

Here is the link to the actual pull request, I was going to add some information about mixers however that should be handled in the AirSim plugin and PX4.

andersforslund commented 7 years ago

Thank you for all your replies! I'm really looking for something quite simple. I don't need to be connected to AirSim while flying, and I'm not carrying an onboard computer. What I would like is this scenario with my octocopter. When the USB cable is plugged in, the firmware is automatically set to HIL mode, and I can run the AirSim simulator and fly around in the Unreal worlds. When I unplug the USB, and maybe move a toggle on my transmitter, the motors are activated and I can go fly in the real world. I don't want a separate setup and firmware for HIL and flying. Maybe this is a newbie question, but how does this work?

aokholm commented 7 years ago

@andersforslund. I'm not yet familiar with AirSim, but given the way that the PX4 is setup this is not currently possible. In order to run in HIL mode you need to run a specific setup, typically done through the use of a specific HIL "airframe" https://dev.px4.io/en/airframes/adding_a_new_frame.html. You would need to change the parameters on the PX4 system in between HIL and real world tests.

sytelus commented 7 years ago

Yes, that's correct. However I think only airframe in QGC requires change. Typically we maintain two identical Pixhawks that only differ by airframe.

andersforslund commented 7 years ago

Thanks everybody. I've ordered a second Pixhawk :)

omertoast commented 4 years ago

Here is a doc on custom drones. I also made a new tutorial that might be a bit more helpful than the hexacopter tutorial since you have 8 props instead of the 6 in that tutorial.

Hi, it looks like the tutorial link is broken. How can I find the tutorial?

lukaszdworako commented 4 years ago

Hi,

sorry for the delay I am not actively working on this project anymore so I'm not actively paying attention to airsim emails...

You can go to my pull request and look through the file additions history which contains all revisions if my document.

Thanks, Lukasz


From: Omer Ozdemir notifications@github.com Sent: Tuesday, May 5, 2020 7:47 AM To: microsoft/AirSim AirSim@noreply.github.com Cc: Lukasz Dworakowski lukasz.dworakowski@utoronto.ca; Mention mention@noreply.github.com Subject: Re: [microsoft/AirSim] Combining HIL with actual flying (#304)

Here is a doc on custom drones. https://github.com/Microsoft/AirSim/blob/master/docs/custom_drone.md I also made a new tutorial https://github.com/lukaszdworako/AirSim/blob/master/Custom%20Vehicle.md that might be a bit more helpful than the hexacopter tutorial since you have 8 props instead of the 6 in that tutorial.

Hi, it looks like the tutorial link is broken. How can I find the tutorial?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/microsoft/AirSim/issues/304#issuecomment-624006771, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGBEMYXZZOTZ75IOMT7REZTRP74EXANCNFSM4DQ76OSA.