Jump to content


Photo

AeroSimRC: new model simulator supported by OpenPilot HiTL


  • Please log in to reply
73 replies to this topic

#1 osnwt

osnwt

    Devil's advocate

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


Posted 12 March 2012 - 10:33 AM

Let me show the secret project from Russian developer Dmitry Zaitsev (AKA hhrhhr): the HiTL plugin for the CopterControl and AeroSimRC simulator.

Here is a small and unfortunately not the best video demonstrating it. Dmitry can't make another one since his CC is sold now. But the real appearance is much better than on this old video.


So what's new and what's different comparing to other similar HiTL and SiTL implementations? Here are some of features:
  • AeroSimRC simulator is the first supported by the OpenPilot model simulator. All others are real plane simulators.
  • As result, simulation is more useful for development, PIDs are more realistic, and all fixed wings, helicopters and multirotor airframes are completely supported.
  • Comparing to other similar solutions, the key point is that all stabilization is performed by the CopterControl board using HiTL. It can get from the simulator only raw data from gyros, accels and GPS, and performs the stabilization (including multirotor rate mode) and navigation (fixed wing only using experimental firmware). Thus you can play with PID tuning and see how model reacts.
  • The simulator can provide also stick inputs to the CopterControl using GCS Receiver (not used yet for OpenPilot but used by this plugin). So you can mix any inputs controlling the CC board: take some from AeroSimRC mouse/joystick/keyboard and some from other CC interfaces, using them concurrently (thanks to multi-receiver CC feature).
  • Another important and exclusive feature is that HiTL simulates not stick inputs to the simulator, but real motors and servos. Say, it outputs 4 CC channels to a quad simulated ESCs. Thus real CC mixers are used, not simulator internal. As far as I know, even Octo models can be supported this way.
  • Moreover, it also supports FPV camera stabilization and control. You can stabilize and control FPV camera exactly in the same way as you would with the real camera gimbal. Again, the CC generates outputs for simulated camera servos. Now only 2-axis control is supported by the AeroSimRC, the 3rd axis control is coming.
  • To be done also is the OpenPilot OSD which will use the OP OSD code as soon as it will be ready for sharing. We expect to have the same code for OP OSD, for PFD and for the AeroSimRC plugin. So you can use AeroSimRC for FPV training using its FPV camera view feature with your real Tx connected to the CopterControl board and your favorite kind of model simulated.
The code consists of two parts. The first one is an AeroSimRC proxy running as a AeroSimRC plugin DLL on the AeroSimRC machine (sorry, only Windows is supported). It provides configuration UI, sends raw data to the configured GCS IP and port and listens for incoming data. In short, it just relays data to and from the HiTL part.

The second is the HiTL gadget running as a part of the GCS. It is implemented as separate HiTL plugin since few changes in it required to be ported for other supported simulators. This could be done but isn't yet.

We successfully used all this to simulate another work in progress: CopterControl fixed wing navigation based on the CorvusCorax code and developed further by Astron (not ready for release yet, but probably some videos will be shown by the developer).

So what's about the code:I want to say thanks to all who was involved in the development:
  • Dmitry (hhrhhr) as the author of the plugin and new HiTL gadget.
  • Manuel, the author of the AeroSimRC for his great support of this work. He has donated some AeroSimRC licenses to involved parties. But most important was that he has added few requested features to the simulator interface by our requests. Also the 3rd axis for FPV camera stabilization will be added. So we will be able to use full potential of the 3-axis CameraStab CC module.
  • Steve (3rdeyepro) for great CC images with active buttons (NOT SHOWN in the video above, added to the code later).
  • David (dankers) for supporting it and having hard pressure from some people who tried to prove him that it is a closed secret Russian work led by some core team members which never will be published. I have to say that that pressure didn't help us working on the subject. The real reason was that I don't like to show not finished work. That's why the development was done in a shadow and not in the public repository.
The work is not finished yet. The published code works but it requires new AeroSimRC version with new interface. AFAIK, it currently still is in a beta state which we as developers have, but can't publish here without author permission. I hope that Manuel will release the official build soon, so we can adopt the code to it and finally put the HiTL code into the main branch of OP development. The proxy part also should be put into the source tree as a separate application. Again, I think it will be done as soon as new AeroSimRC will be released. New version also includes rate mode multirotors (current only supports auto leveling mode). Finally the OP OSD code, it could be used to provide the same OSD for simulated flights. The OSD code isn't ready for that yet, while the required interfaces are already built in the proxy DLL. I hope that it will be done so we can reuse the code for this purpose.

More usage info and simulation setup videos to follow... Now only few images:

Great CC image with active buttons (not yet on the video, but in the current code):
Attached File  cc-aerosim-on-hover.png   60.19K   19 downloads

Part of internal fixed wing navigation testing using firmware by Astron (not ready yet) and AeroSimRC HiTL:
Attached File  circle.png   26.25K   20 downloads

#2 ThomasB

ThomasB

    Advanced Member

  • Members
  • PipPipPip
  • 222 posts
  • LocationWesterstede
  • Country: flag of Germany Germany


Posted 12 March 2012 - 11:41 AM

Whow! Great work.
After a look at your Project description, it was only some clicks to order the AeroSim RC :)
Hope it will be deivered soon.

#3 David J

David J

    Flying in ever decreasing circles...

  • Members
  • PipPipPip
  • 1595 posts
  • LocationBentley, Suffolk
  • Country: flag of United Kingdom United Kingdom


Posted 12 March 2012 - 12:32 PM

I can't wait! Especially as I already have the AeroSim simulator. :)

For anyone who's not used that sim - the quad shown in the video is quite a twitchy little beast until you get used to it, so getting it so stable and well controlled is a significant achievement. I'd like to see it running on AeroSim's great big octo with the camera slung underneath! :)
This page intentionally left justified...

#4 Jose Angel

Jose Angel

    Team Iberian Lynxes (TIL)

  • Members
  • PipPipPip
  • 298 posts
  • LocationMadrid
  • Country: flag of Spain Spain


Posted 12 March 2012 - 12:57 PM

It looks great... looking forward to the beta version with rate mode and some city scenarios :)

#5 metRo_

metRo_

    Key Member

  • Members
  • PipPipPip
  • 562 posts
  • LocationAmarante (Porto)
  • Country: flag of Portugal Portugal


Posted 12 March 2012 - 02:08 PM

Can you use it with Turnigy 9x?
Feel free to correct my english, you can post or pm me, thanks :)

#6 ThomasB

ThomasB

    Advanced Member

  • Members
  • PipPipPip
  • 222 posts
  • LocationWesterstede
  • Country: flag of Germany Germany


Posted 12 March 2012 - 02:59 PM

Can you use it with Turnigy 9x?

Yes

#7 Golden

Golden

    Official noob

  • Members
  • PipPipPip
  • 252 posts
  • LocationNYC
  • Country: flag of United States United States


Posted 13 March 2012 - 02:46 AM

So if I understand you correctly, which I don't think I am doing, you can interface your CC and your TX with the simulator? Using both to tweak the flight model?
SQ-1 "Monitor" Foldable Quad Build Log: http://forums.openpi...-foldable-quad/
VC-450 "Yeti" Build Log: http://forums.openpi...s-vc-450-build/
Proud member of TGG

#8 Kenn Sebesta

Kenn Sebesta

    Banned

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


Posted 13 March 2012 - 03:18 AM

So if I understand you correctly, which I don't think I am doing, you can interface your CC and your TX with the simulator? Using both to tweak the flight model?


Yes, that's definitely one of the things you could do. What interests me more, though, is trying out new controls algorithms. This is *incredible* for that, as until now we were using XPlane, which really wasn't appropriate due to the scaling down of dimensions from real planes to R/C ones.

Bravo to all involved.

#9 Golden

Golden

    Official noob

  • Members
  • PipPipPip
  • 252 posts
  • LocationNYC
  • Country: flag of United States United States


Posted 13 March 2012 - 03:27 AM

Yes, that is a hell of an accomplishment!
SQ-1 "Monitor" Foldable Quad Build Log: http://forums.openpi...-foldable-quad/
VC-450 "Yeti" Build Log: http://forums.openpi...s-vc-450-build/
Proud member of TGG

#10 arachnida

arachnida

    Key Member

  • Members
  • PipPipPip
  • 377 posts
  • LocationBrecht - Belgium
  • Country: flag of Belgium Belgium


Posted 13 March 2012 - 08:27 AM

The best MultiCopter and FPV sim becomes even better, can't wait for the release! Or maybe a beta teaser Manuel, please?

#11 David J

David J

    Flying in ever decreasing circles...

  • Members
  • PipPipPip
  • 1595 posts
  • LocationBentley, Suffolk
  • Country: flag of United Kingdom United Kingdom


Posted 13 March 2012 - 10:53 AM

The best MultiCopter and FPV sim becomes even better, can't wait for the release! Or maybe a beta teaser Manuel, please?


Couldn't agree more... :)
And I'd like to test it as well... ;)
This page intentionally left justified...

#12 ThomasB

ThomasB

    Advanced Member

  • Members
  • PipPipPip
  • 222 posts
  • LocationWesterstede
  • Country: flag of Germany Germany


Posted 13 March 2012 - 11:47 AM

And I'd like to test it as well... ;)



+1
Now I'm very interested to become AeroSim RC Betatester too

#13 jes1111

jes1111

    Mechanical geek

  • Members
  • PipPipPip
  • 1455 posts
  • LocationWest Country
  • Country: flag of United Kingdom United Kingdom


Posted 14 March 2012 - 06:09 PM

This project rocks! Thank you to all involved.

By coincidence, I ordered AeroSim about a week ago - hasn't arrived yet, which is strange since I could drive to his office in about two hours - guess the parcel is going via the North Pole.
Jeremy

#14 arachnida

arachnida

    Key Member

  • Members
  • PipPipPip
  • 377 posts
  • LocationBrecht - Belgium
  • Country: flag of Belgium Belgium


Posted 14 March 2012 - 07:59 PM

By coincidence, I ordered AeroSim about a week ago - hasn't arrived yet, which is strange since I could drive to his office in about two hours - guess the parcel is going via the North Pole.


Mine arrived in 3 days, but I live north of you so I guess you're right! :)

#15 ThomasB

ThomasB

    Advanced Member

  • Members
  • PipPipPip
  • 222 posts
  • LocationWesterstede
  • Country: flag of Germany Germany


Posted 15 March 2012 - 09:32 AM

OK, the Northpole Theorie seems to be right. I ordered my Aerosim RC 2 days ago, and my tracking says that the postman is only 2 hours away with it :)
so:
(North)Germany = 2 days
Belgium = 3 days
Portugal > 1 week

:)

#16 jes1111

jes1111

    Mechanical geek

  • Members
  • PipPipPip
  • 1455 posts
  • LocationWest Country
  • Country: flag of United Kingdom United Kingdom


Posted 16 March 2012 - 12:26 PM

:) It arrived today. Gotta love the Portuguese postal system, eh?
Jeremy

#17 hhrhhr

hhrhhr

    Advanced Member

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


Posted 25 March 2012 - 12:58 AM

release version 3.90 available to download
wait a little for plugin update :)

#18 David J

David J

    Flying in ever decreasing circles...

  • Members
  • PipPipPip
  • 1595 posts
  • LocationBentley, Suffolk
  • Country: flag of United Kingdom United Kingdom


Posted 25 March 2012 - 09:33 AM

I've just downloaded that AeroSim update... EEK!

Proper rate mode for some of the multicopters - I've got some re-training to do...
This page intentionally left justified...

#19 Asomaro

Asomaro

    New Member

  • Members
  • Pip
  • 5 posts
  • LocationDorset
  • Country: flag of United Kingdom United Kingdom

Posted 26 March 2012 - 10:48 PM

This looks very good indeed, I look forward to seeing the progress

Cheers,
Simon

Lots of Helis, lots of planes and no money.
"If I had a brain I'd be dangerous"

#20 xtrmtrk

xtrmtrk

    Advanced Member

  • Members
  • PipPipPip
  • 221 posts
  • LocationSeattle, Washington
  • Country: flag of United States United States


Posted 02 April 2012 - 04:23 AM

After reading this thread out came the credit card. Since Seattle weather is going to be grim for a couple more months this will be a fantastic way to get some quad flying in. Might even try hooking it up to the FatSharks.

How hard is it to modify the supplied models to replicate your own craft setup?