<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6541367106130200530</id><updated>2012-02-01T02:25:00.299+01:00</updated><category term='SUL35'/><title type='text'>SUL37</title><subtitle type='html'>A programming diary for my contribution to a project of building a simulator around an original SAAB AJ37 Viggen cockpit. My responsability is the system programming. That includes presentation of HUD and radar display as well as the flight computer that handles navigational calculations and other tasks. Programming language is C++ with graphical presentation made with OpenGL. Keywords for the project are realism and being true to the original.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>34</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-6158640982435652824</id><published>2010-12-10T10:46:00.000+01:00</published><updated>2010-12-10T10:46:40.396+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SUL35'/><title type='text'>Simulator weekend</title><content type='html'>Last weekend all developers, instructors etc involved in the SUL35 and SUL37 projects met at the annual simulator weekend. The SUL37 is currently unavalable as the bus is stored for the winter. However the Sul35 is becomming better and better, and now we even have three screens. That makes a huge difference both for the feeling and situational awareness.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_GTDOCjd4gyY/TQH18YBh_qI/AAAAAAAAAGs/pW7XsoQ-QNI/s1600/sul35_2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="213" n4="true" src="http://4.bp.blogspot.com/_GTDOCjd4gyY/TQH18YBh_qI/AAAAAAAAAGs/pW7XsoQ-QNI/s320/sul35_2.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_GTDOCjd4gyY/TQH16p94CsI/AAAAAAAAAGo/TIjVQEuGxGo/s1600/sul35_1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="213" n4="true" src="http://4.bp.blogspot.com/_GTDOCjd4gyY/TQH16p94CsI/AAAAAAAAAGo/TIjVQEuGxGo/s320/sul35_1.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_GTDOCjd4gyY/TQH1-bXuZLI/AAAAAAAAAGw/mp2ySnf3B8U/s1600/sul35_3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="213" n4="true" src="http://2.bp.blogspot.com/_GTDOCjd4gyY/TQH1-bXuZLI/AAAAAAAAAGw/mp2ySnf3B8U/s320/sul35_3.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_GTDOCjd4gyY/TQH1_j0Db7I/AAAAAAAAAG0/Y89JdRCKCKc/s1600/sul35_4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="213" n4="true" src="http://2.bp.blogspot.com/_GTDOCjd4gyY/TQH1_j0Db7I/AAAAAAAAAG0/Y89JdRCKCKc/s320/sul35_4.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_GTDOCjd4gyY/TQH2AjUoxJI/AAAAAAAAAG4/xwHAGYBP-ZA/s1600/sul35_5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="213" n4="true" src="http://3.bp.blogspot.com/_GTDOCjd4gyY/TQH2AjUoxJI/AAAAAAAAAG4/xwHAGYBP-ZA/s320/sul35_5.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-6158640982435652824?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/6158640982435652824/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=6158640982435652824' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/6158640982435652824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/6158640982435652824'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2010/12/simulator-weekend.html' title='Simulator weekend'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_GTDOCjd4gyY/TQH18YBh_qI/AAAAAAAAAGs/pW7XsoQ-QNI/s72-c/sul35_2.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-6038396859298038499</id><published>2010-02-25T11:07:00.000+01:00</published><updated>2010-02-25T11:07:56.409+01:00</updated><title type='text'>Second move</title><content type='html'>I've now moved for the second time in half a year, and I hope it is the last time for a few years. I've also got a new job so there has not been very much done on any of the simulation projects. At the moment my computer is standing behind a wall of boxes and are inaccessible. But the good news is that the new apartment is big enough to have one room as a dedicated office, so when I get everything up and running I will be able to work relatively undisturbed. However that is still much to do before I get to that point. Walls to paint, shelves and lockers to be assembled and tons of stuff to be places where it belongs. I hope this will not take too long as I'm itching to get back to FSW.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-6038396859298038499?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/6038396859298038499/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=6038396859298038499' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/6038396859298038499'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/6038396859298038499'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2010/02/second-move.html' title='Second move'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-6646829456331559142</id><published>2009-12-07T20:21:00.002+01:00</published><updated>2009-12-08T00:05:14.549+01:00</updated><title type='text'>Weapons and multiplayer</title><content type='html'>I spent this weekend flying in our cockpit simulator SUL35. You can read about it &lt;a href="http://blogg.novelair.com/#post79"&gt;here&lt;/a&gt; (unfortunately only in Swedish). Except for having fun I also managed to find the main problems with implementing multiplayer support for FSW and conceptionally solve them. While it is far from anything working, I feel that MP is very much possible and will be even better than I first imagined. Still there is a lot to do before I can confirm that my ideas really works.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://iloapp.novelair.com/blog/blogg?ShowFile&amp;image=m1260108434.jpg"&gt;&lt;img src="http://iloapp.novelair.com/blog/blogg?ShowFile&amp;image=m1260108419.jpg"&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-6646829456331559142?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/6646829456331559142/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=6646829456331559142' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/6646829456331559142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/6646829456331559142'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2009/12/weapons-and-multiplayer.html' title='Weapons and multiplayer'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-3185906603681748345</id><published>2009-10-14T13:12:00.003+02:00</published><updated>2009-10-14T13:27:21.743+02:00</updated><title type='text'>FSWControl</title><content type='html'>Some of you might wonder why there hasn't been any updates for a very long time. The simple answer is that I've quit my job, I'm looking for a new one, I've sold my car, I'm trying to sell my apartment and I'm moving right across the country to Stockholm. Why? Well, what don't you do for love ;)&lt;br /&gt;&lt;br /&gt;So except for the obvious reason that I have very limited time to spend on FSW, I've also very limited access to my computer as it has been moved to my new home while I'm still in Gothenburg. Anyway, I've actually been able to so some work on a software that was first only intended as a test program for the interface of FSW. Stuff like reload weapons, fire weapon, set target and so on. This was something I could do on my laptop without access to FSX. &lt;br /&gt;&lt;br /&gt;However it soon grew to something larger than what was first intended. A GoogleEarth view was added and I started to plot the objects in the FSX-world. And soon I was manipulating stuff in the simulator, such as placing targets where I wanted them, changing weather and visibility and so on. I also found a bug in FSW this way. It turns out that FSX do not destroy my weapons when they go outside the "bubble" as it does with all the AI objects. When the simulator had been turned on for a long time, I discovered the missiles I fired the day before was plotted in the GE view somewhere over the northpole. And half a day later they where somewhere over South America. that bug would have been hard to discover without this program.&lt;br /&gt;&lt;br /&gt;Here is a film showing the program used together with our Draken cockpit simulator:&lt;br /&gt;&lt;object width="425" height="344"&gt;&lt;param name="movie" value="http://www.youtube.com/v/jdAMnq_5muA&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;hl=sv&amp;feature=player_embedded&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowScriptAccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/jdAMnq_5muA&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;hl=sv&amp;feature=player_embedded&amp;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="425" height="344"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-3185906603681748345?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/3185906603681748345/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=3185906603681748345' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/3185906603681748345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/3185906603681748345'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2009/10/fswcontrol.html' title='FSWControl'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-1807726520109694643</id><published>2009-08-10T22:00:00.002+02:00</published><updated>2009-08-10T22:04:13.636+02:00</updated><title type='text'>Vacation</title><content type='html'>Just got back from the beautiful Loire valley in France. Lots of châteaus and lots of wine tasting. So not much have been done on FSW for a few weeks. I'm quitting my job and moving to Stockholm so I don't know how much time I will have this week either. But I will post here as soon as I have anything to post.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-1807726520109694643?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/1807726520109694643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=1807726520109694643' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/1807726520109694643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/1807726520109694643'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2009/08/vacation.html' title='Vacation'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-6744650078797144427</id><published>2009-06-16T17:37:00.011+02:00</published><updated>2009-06-23T14:53:49.023+02:00</updated><title type='text'>More FSW</title><content type='html'>Since my last update I've got a lot of questions about FSW. I hope you understand that I can't answer all of them. Partly because lots of things are still to be determined, but also for commercial reasons.&lt;br /&gt;&lt;br /&gt;First I'd like to reiterate. this module will NOT destroy your civilian simulator experience. You will not be forced to install it and no one will be able to shoot you down in multi-player unless you have it installed and have actively chosen to use it.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;This brings me to the first question: multi-player&lt;/span&gt;. &lt;br /&gt;I don't want to reveal much about multi-player at this moment. All I can say is that I have identified problems and pitfalls, and they are conceptually solved, but the current version do not support MP. Part of the solution is to have a client-server solution parallel to the MP-functionality in FSX. So yes, MP is very much possible, and it will be supported, but it might not be in the first released version.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Second question: How will FSW be licensed?&lt;/span&gt;&lt;br /&gt;At the moment I'm working with the idea of licensing the module to payware add-ons on a per copy basis. That means for you as a costumer that you will not have to purchase FSW. It will be free to download but will only work with licensed aircrafts. Weapon enabled aircrafts &lt;span style="font-weight:bold;"&gt;might&lt;/span&gt; cost slightly more than other ones due to the license fee. But that is entirely up to the company that is selling the aircraft.&lt;br /&gt;&lt;br /&gt;At the moment I'm not going to make it work with freeware and other non commercial add-ons. Why? Because this project is taking a lot of my spare time and resources to develop, so I need to get something back from my "investment" to make it worthwhile. Hopefully that will help me develop FSW further and add more features in the future and make it work even better. But it's also a matter of ensuring that FSW is implementing with the add-on correctly, and in a way that is user friendly. Though I'm not totally closing the door to making it free for non commercial add-ons, very much like the license for FSUIPC works.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Will FSW be able to have multiple active pylons?&lt;/span&gt;&lt;br /&gt;Yes and no. To make a long story short. FSW will eventually support AMRAAM and other modern weapons. But multiple target following is more a matter of the add-on aircraft systems than anything special FSW has to do. FSW will be released in new versions continuously. Which means that if a feature is missing in the first release, it might be added in the second, or the third and so on.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Will FSW be extendable with a DLL for more weapons?&lt;/span&gt;&lt;br /&gt;No, not initially at least, and probably never. I want to keep a high quality and ensure that the add-on is stable. When multi-player is added it is also important to keep the integrity of the module. Further more, there is no reason for it really, since I will continuously add new weapons and features.&lt;br /&gt;&lt;br /&gt;Finally I would like to repeat that FSW is developed iteratively, which means it will be release as soon as possible with a minimum of functions, and then continuously evolve into a increasingly complex program.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-6744650078797144427?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/6744650078797144427/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=6744650078797144427' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/6744650078797144427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/6744650078797144427'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2009/06/more-fsw.html' title='More FSW'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-8469178618102231253</id><published>2009-06-10T10:20:00.005+02:00</published><updated>2009-06-14T14:49:17.261+02:00</updated><title type='text'>FSWeapons update</title><content type='html'>Since I released the &lt;a href="http://www.youtube.com/watch?v=nqPPEEqLEDo"&gt;film&lt;/a&gt; showing FSW in action I've got a lot of response. In some forums I was expecting more "You bastard, you've destroyed my civilian simulator". But except one or two comments about being shot down online by some random kid, most comments have been very positive or even downright ecstatic. &lt;br /&gt;&lt;br /&gt;The number of visits to this blog has risen enormously, so I feel some responsibility to post more regular updates. I would like to start by explaining what I am doing right now. &lt;br /&gt;&lt;br /&gt;At the moment FSW is in a stage were it might be called a technology demonstrator rather than anything close to a product. So the most important thing now is to clean up the code and address the flexibility issue. The final product will implement any type of weapons, air to air, air to surface, and even surface to air. New weapons is supposed to be easy for me to add, but that requires that I have a structure in the program to handle it. The version used in the first released &lt;a href="http://sul37.blogspot.com/2009/05/guided-weapons-in-fsx.html"&gt;film&lt;/a&gt; has a very hard connection to the sidewinder. My internal simulation of the weapon environment and connection to the simulator is directly connected to one sidewinder object. Once it is released and placed in the queue for released weapon another ready sidewinder object is created, hence giving the shooter an unlimited supply of sidewinders, and sidewinders only. &lt;br /&gt;&lt;br /&gt;What I'm doing now is to create a structure with virtual pylons that can hold any type of weapon and handles the communication with the weapon. It will also keep track on what pylon is the active one. Further more, I will take some of the code from the sidewinder class and distribute it to more general classes that the weapons can inherit from. Rocket propulsion in one class, guidance in another, calculations of impact in yet another one and so on. This will make it easy to put together new weapons by inherit the proper base classes and then glue it all together with some code specific to that weapon. &lt;br /&gt;&lt;br /&gt;While all this is very important for the stability and expandability of the program, it doesn't really give me anything to show. So you'll have to wait some time before I'll post any new films showing something being shot at.&lt;br /&gt;&lt;br /&gt;That is all for this update. If there is anything specific you want me to write about next time, please leave a comment.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-8469178618102231253?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/8469178618102231253/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=8469178618102231253' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/8469178618102231253'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/8469178618102231253'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2009/06/since-i-released-film-showing-fsw-in.html' title='FSWeapons update'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-6361202839491411960</id><published>2009-05-27T12:00:00.010+02:00</published><updated>2009-05-28T18:08:06.926+02:00</updated><title type='text'>Guided weapons in FSX</title><content type='html'>Will we ever seen someone make guided weapons in Microsoft Flightsim?&lt;br /&gt;&lt;br /&gt;Yes, it has been done some time ago. I've been working on a general weapon module for FSX for a while (remember &lt;a href="http://sul37.blogspot.com/2007/09/weapons-for-fsx.html"&gt;this&lt;/a&gt;?), and I feel it's time to reveal some of my result. At the moment I have only implemented a simple AIM-9B but the main focus is on the modularity of this addon. It is done so that any weapon can be added without too much programming. There is still very much left to do before this is even near a beta, but it looks promising so far. Don't you agree?&lt;br /&gt;&lt;br /&gt;&lt;object width="425" height="344"&gt;&lt;param name="movie" value="http://www.youtube.com/v/nqPPEEqLEDo&amp;hl=sv&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/nqPPEEqLEDo&amp;hl=sv&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-6361202839491411960?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/6361202839491411960/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=6361202839491411960' title='18 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/6361202839491411960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/6361202839491411960'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2009/05/guided-weapons-in-fsx.html' title='Guided weapons in FSX'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><thr:total>18</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-5435109380073486321</id><published>2009-03-18T13:42:00.003+01:00</published><updated>2009-03-18T13:51:46.969+01:00</updated><title type='text'>Tracking target in PS011A</title><content type='html'>I've been working hard on implementing some very interesting stuff in the radar simulation for SUL35. I've achieved a fairly good visual simulation of a CRT radar screen with the appropriate fade. Target plotting is also implemented and several different modes are all but finished. Soon I will start working on target lock on. I also have another neat feature for FSX I conjunction with this that will reveal at a later point. Stand by for a nice surprise in the near future. &lt;br /&gt;&lt;br /&gt;Here is a film showing some of the new features in the radar.&lt;br /&gt;&lt;object width="425" height="344"&gt;&lt;param name="movie" value="http://www.youtube.com/v/qwrg9MBvDpc&amp;hl=en&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/qwrg9MBvDpc&amp;hl=en&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-5435109380073486321?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/5435109380073486321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=5435109380073486321' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/5435109380073486321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/5435109380073486321'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2009/03/tracking-target-in-ps011a.html' title='Tracking target in PS011A'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-5991824718999484702</id><published>2008-11-10T12:33:00.005+01:00</published><updated>2008-11-10T14:02:45.366+01:00</updated><title type='text'>Radar indicator for J-35J</title><content type='html'>&lt;span style="font-weight: bold;"&gt;As the Viggen simulator is placed in winter storage work has begun on programs for the Draken simulator. Most notably is the radar indicator. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Due to the problems we've had with using an old CRT TV monitor for the radar in SUL37, we tried a different approach for the SUL35. A small and cheap LED projector as back light for the radar display seem to do the trick.  We've got a great source of information about how this radar worked. So we'll hopefully have this unit up and running and plotting targets in the sky in no time. The fact that we're using FSX for the SUL35 makes it even easier since it allows me to use SimConnect that presents nice functions for importing positions of other air planes.&lt;br /&gt;&lt;br /&gt;However, the asynchronous calls used in with SimConnect presents a few problems to my FSapp-framework. But it's just a matter of time before those issues are handled. Here is a film of some early test we've performed with the new software I'm developing:&lt;br /&gt;&lt;object width="425" height="350"&gt; &lt;param name="movie" value="http://www.youtube.com/v/sIY7mb4p8ZI"&gt; &lt;/param&gt; &lt;embed src="http://www.youtube.com/v/sIY7mb4p8ZI" type="application/x-shockwave-flash" width="425" height="350"&gt;&lt;/embed&gt;  &lt;/object&gt;&lt;br /&gt;&lt;br /&gt;One feature I'll need to add is the latency in the original screen that makes plottings stay visible for some time after the sweep has passed. I first intended to solve this by using the accumulation buffer but it turned out to have some nasty limitations, so I might have to go with frame buffer objects (fbo). But before that I will try to use auxiliary buffers. I'll get back on the result of these tests.&lt;br /&gt;&lt;br /&gt;Here is a few films from youtube were you can see the radar in use:&lt;br /&gt;At 3:37 in this film...&lt;br /&gt;&lt;object width="425" height="344"&gt;&lt;param name="movie" value="http://www.youtube.com/v/qWOINzyCLL4&amp;hl=en&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/qWOINzyCLL4&amp;hl=en&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;...and at 0:44 in this film.&lt;br /&gt;&lt;object width="425" height="344"&gt;&lt;param name="movie" value="http://www.youtube.com/v/IQHPFDPtJxA&amp;hl=en&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/IQHPFDPtJxA&amp;hl=en&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-5991824718999484702?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/5991824718999484702/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=5991824718999484702' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/5991824718999484702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/5991824718999484702'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2008/11/radar-indicator-for-j-35j.html' title='Radar indicator for J-35J'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-4246513743816229346</id><published>2008-09-03T15:10:00.008+02:00</published><updated>2008-09-03T16:16:59.374+02:00</updated><title type='text'>Engine stalls</title><content type='html'>Last weekend was spent instructing people flying the Viggen simulator at the air show at the local airbase Säve. Though it was hard work it was also much fun and revitalised my commitment to this project.&lt;br /&gt;&lt;br /&gt;We've been discussing for some time how to simulate engine stall, something that was quite common in the AJ37. After some comments on the lack of this feature by some previous Viggen pilots I've now seriously started to dig into this.&lt;br /&gt;&lt;br /&gt;From my sources I've found that there were three major types of engine stalls. Reversing the engine with too much thrust at too low speed.  Increasing throttle before the engine RPM has decreased enough after throttle decrease or decreasing the throttle to rapidly at high altitude and high alpha. Finally, you can get engine stalls just by flying with high alpha at high altitudes. Engine stalls are perceived as loud "bangs" in the fuselage or when at low altitude as a growl. You will also see a small flutter in the needle of the engine pressure gauge. If the condition that triggered the stall is maintained, the engine will eventually stop.&lt;br /&gt;&lt;br /&gt;Engine stall when reversing on ground has a very simple condition. Under 130km/h you risk getting engine stall with high thrust. However I still need to d some more research before I'm able to have a complete condition for this.&lt;br /&gt;&lt;br /&gt;I've been told that for increasing or decreasing the throttle at high altitudes and high alpha. A realistic condition would be to start stalls at alpha&gt;20 degrees at 5000 meters and at alpha &gt; 15 at 6000 meters. Below 1000 meters it would be virtually impossible to get engine stalls this way so I chose to set the condition to alpha&gt;30 at 1000 meters. In the end I got a nice curve that could be described with a simple second degree equation. I'll calculate a factor from the change of throttle and let the sensitivity for this value be linear to the alpha and the altitude. And hopefully I will get a nice behaviour for this kind of engine stalls.&lt;br /&gt;&lt;br /&gt;Engine stall from just high alpha at high altitude should be quite simple but I only have one value for this so I need to do more research before I start implementing this.  What I do know is that at 6000 meters it's reasonable to assume that you will get engine stalls at 18 degrees alpha.&lt;br /&gt;&lt;br /&gt;Implementing engine stalls will be an important step towards our goal of realism. Another important thing I wanted to add is inducing engine fire when using afterburner when reversing. However that is not possible in FS2004 so this is a feature that will have to wait for us to switch to FSX.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-4246513743816229346?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/4246513743816229346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=4246513743816229346' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/4246513743816229346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/4246513743816229346'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2008/09/engine-stalls.html' title='Engine stalls'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-6720169660863897900</id><published>2008-08-12T13:07:00.004+02:00</published><updated>2008-08-13T10:51:48.885+02:00</updated><title type='text'>Finally I got some time for my sim projects again.</title><content type='html'>The priority is at the moment (as usually) SUL37. And in this case I'm trying to implement the functionality of reference numbers. Instead of entering latitude, longitude, runway direction etc into the flight computer, most airbases has a number that refer to all needed data. I hope to have this finished in time for the air display event here in Gothenburg  30th-31th August. This will in turn open up for TILS simulation and make instrument landings possible. Unfortunately I suffer from some bad design decisions i took early in the development. I'll see if I'll be able to work around these or if I need to redo some old stuff. I've also moved the whole CK37 to Borland Builder. I'm not sure that was a wise decision though. I did it because the GUI stuff is easy to make in Builder and because it has some vital XML support, but I doubt I really gained that much. In the long run I would like to do my own GUI in OpenGL or something similar and not have to rely on any particular development environment or operating system. However the gain of such a decision could also be argued.&lt;br /&gt;&lt;br /&gt;My MFD project is coming along slowly. I've been trying to find a Linux distribution that suits my needs and get it to work with my hardware. So far I've had no luck. On the hardware side, I've done a lot of research about what material to use for the box, how to achieve a good modularity and so on. This has made it possible to start making some CAD drawings to make sure everything fits and to get an idea of how it all will come together. However I have nothing to show at this moment.&lt;br /&gt;&lt;br /&gt;I just started to work on weapons for FSX again. Sometimes it's a good idea to let a project rest for a while and get at it again with fresh ideas sometimes later. I've now forgot all the frustration I experienced last time I tried this. I've also decided to ignore the problems with the initial position of fired weapons this time. If I can achieve all other goals for the weapons, that will be a problem I can live with, and perhaps I might solve it along the way anyway.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-6720169660863897900?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/6720169660863897900/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=6720169660863897900' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/6720169660863897900'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/6720169660863897900'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2008/08/finally-i-got-some-time-for-my-sim.html' title='Finally I got some time for my sim projects again.'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-1743062199384803733</id><published>2008-02-21T11:36:00.006+01:00</published><updated>2008-02-21T12:59:46.284+01:00</updated><title type='text'>New projects</title><content type='html'>I've started a few new projects for the simulator. First I'm working on a control system for the simulation where it will be possible to remotely change time and weather, move the aircraft to different predefined positions, change the fuel status, trigger faults and lot more. Further down the line it will be possible to change weapons in this system. But the most interesting part is that I've managed to integrate this into Google Earth, which means it will be possible to see the aircraft on the globe and also track it's flightpath. AI aircrafts will also be plotted the same way and it will be possible to add new AI aircrafts simply by point and click. My first tests are promising, but there is still a lot of uncertainties.&lt;br /&gt;&lt;br /&gt;Another project I've been working on is porting the CK (flight computer) to Borland Builder. This is mainly due to that I work with this IDE at my job, but also since I find it much easier to do a GUI with Delphi. This is progressing just fine, but I still have a few quirks to straighten out.&lt;br /&gt;&lt;br /&gt;The idea to use the original electronics to drive the radar, sight and flight computer fr the SUL35 project failed due to lack of some critical equipment. So now I will have to make a similar software suit for this project that I've been working on for the SUL37. Luckily much of the basic stuff can be reused so it will not take much time to have something running.&lt;br /&gt;&lt;br /&gt;My last new project for now is a little bit different.  I'm working on making a system for modern MFDs in general with an emphasis on JAS 39 Gripen in particular. I will build both hardware and software. The hardware will consist of a bezel with backlit buttons, a 10.2" widescreen LCD in portrait configuration and a mini-ITX as computing unit with a CF-card as persistent memory. Everything will be built into an aluminum case adapted for easy mounting. The buttons on the bezel will be connected to the processing unit through a common keyboard interface and the whole unit will communicate with  the simulator and other units through ethernet connection. At the moment the hardware is not much more than drawings due to lack of funding, but that is just a question of time. The software is under development and much of the framework is finished, but no particular implementations are done yet.&lt;br /&gt;&lt;br /&gt;The idea is to have Linux as operating system on this unit and I've had my eyes on an interesting small distribution called &lt;a href="http://one.xthost.info/zelko/opengl.html"&gt;MyOS&lt;/a&gt;. It is very small and has no X-windows, but it still support OpenGL rendering. Sounds ideal for my purposes. Using Linux has one problem though. I can't connect directly to MSFS. There is no implementation of SimConnect for Linux. So I have to use my own protocol to communicate. Luckily we've been planning this for the SUL37 project, so eventually I will have an indigenous solution. I will post more information about this project as it progress.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://one.xthost.info/zelko/opengl.html"&gt; &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-1743062199384803733?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/1743062199384803733/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=1743062199384803733' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/1743062199384803733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/1743062199384803733'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2008/02/new-projects.html' title='New projects'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-3890975235502647002</id><published>2007-11-14T10:48:00.003+01:00</published><updated>2010-12-10T10:55:26.244+01:00</updated><title type='text'>SUL37 in the media</title><content type='html'>Today there is an article about SUL37 in the newspaper NyTeknik. The paper version is a whole page with pictures and stuff, but the text is also available here: &lt;a href="http://www.nyteknik.se/nyheter/fordon_motor/flygplan/article258999.ece"&gt;www.nyteknik.se&lt;/a&gt;, it's in swedish though.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-3890975235502647002?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/3890975235502647002/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=3890975235502647002' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/3890975235502647002'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/3890975235502647002'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2007/11/sul37-in-media.html' title='SUL37 in the media'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-2939027262236178649</id><published>2007-09-30T13:43:00.000+02:00</published><updated>2007-09-30T14:54:06.450+02:00</updated><title type='text'>Weapons for FSX</title><content type='html'>Contrary to my intentions I have not posted much lately. I've started my new work and it takes a lot of my time, but primarily much of my mental focus. However I have been able to do some stuff that so far is more like a prototype than anything actually working. I've been working on adding weapons to FSX.&lt;br /&gt;&lt;br /&gt;The main idea is to add weapon objects into the simulated world through a SimConnect client, simulate their behaviour (i.e. guidance) and then calculate and project the damage they inflict on other simulated objects. Simple enough. But it's much harder to implement than you might think first.&lt;br /&gt;&lt;br /&gt;Due to the fact that the SimConnect communication is asynchronous, I cannot guarantee that the positions for my weapon objects correspond 100% to the other objects in the simulated world. This not a big problem when the weapons are fired since they are then free objects that aren't really affected by any other objects. However, before the weapons are fired, they are firmly connected to the aircraft's hardpoints and to avoid them jerking around, another solution had to be found. My idea is to make all possible ordinance for the aircraft a part of the 3D model. Then my SimConnect client tells the model what weapons should be visible at what hardpoint. When a weapon is released, my program simply tells the model to hide that weapon and replaces it with a new free object at that position. The drawback is that you have to edit the 3D model of the aircraft to allow it carry new weapon types. But compared to the alternative, I think it's acceptable.&lt;br /&gt;&lt;br /&gt;The big problem is to position the new object. I'm not getting very good precision. It differs up to a meter or two. To position the new object (the weapon) I calculate a vector to the hardpoint from the center of the aircraft. Then I split this 3D vector into a 2D vector and a difference in latitude. The 2D vector is then used to calculate a latitude and longitude based on the aircraft's latitude and longitude. First I used a totally spherical earth model, since it's easiest and fastest, and I didn't think it would matter that much. But when I didn't get the precision I wanted I switched to WGS84 which is supposedly what FSX use. WGS84 did however not give me that much better precision, if any. I can't figure out where the problem is. Is it my formulas, is it in the communication with FSX or is it possibly a problem within FSX? I don't know if I will spend much more time on this or if I will just I accept the lack of precision. As it is now it's at least better than nothing.&lt;br /&gt;&lt;br /&gt;Other things I have worked on is a crude targeting system similar to what you would find in early types of the Sidewinder missile - just point at the target and get a value of how good lock you have. Better targeting and communication, with for instance a targeting radar program, will be introduced later. I've also been able to make the released weapons fly where I want them to, and even make targeted aircrafts loose control and go down into the ground. Engine fire seems to be an exclusive feature for the player aircraft so I will have to add my own smoke and fire, and also make explosions when a missile hits a target. Further down the line I also plan to add multiplayer weapons and AI aircrafts that fights back, perhaps even SAMs and AAA shooting from the ground. But first I need to get the most simple stuff working.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-2939027262236178649?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/2939027262236178649/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=2939027262236178649' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/2939027262236178649'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/2939027262236178649'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2007/09/weapons-for-fsx.html' title='Weapons for FSX'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-1785858164819934390</id><published>2007-07-11T12:59:00.001+02:00</published><updated>2008-12-11T04:59:16.129+01:00</updated><title type='text'>New Project</title><content type='html'>The SUL37 project was recently expanded to also include a J35 simulator (&lt;a href="http://www.novelair.com/forum/index.php?board=45.0"&gt;SUL35&lt;/a&gt;). Though this is an older aircraft which means less systems for me to make programs for, it seems to require the same type of programs. One program for simulating the sight, though not really a HUD I think it was some sort of gyro stabilized reflector sight. One program for the radar and one for some sort of flight computer and simulation of all the systems. I don't really know much about what kind of system the J35 has, but I guess I will find out.&lt;br /&gt;&lt;br /&gt;I will not start a new blog for this the SUL35 project, but rather write about it here instead.  Now I need to do a lot of research to find out what I need to do. But it will not be necessary to do anything for a while yet. First the mechanical and electrical stuff have to fixed, and that is not my responsibility.&lt;br /&gt;&lt;br /&gt;The cockpit is a former Swedish air force J 35J and is fairly complete, except for two gauges and the stick. But this is stuff that will be fixed in one way or another.&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_GTDOCjd4gyY/RpTG7uO7SdI/AAAAAAAAAA0/UVff2nolLWQ/s1600-h/J35_01.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://4.bp.blogspot.com/_GTDOCjd4gyY/RpTG7uO7SdI/AAAAAAAAAA0/UVff2nolLWQ/s200/J35_01.jpg" alt="" id="BLOGGER_PHOTO_ID_5085908608533350866" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_GTDOCjd4gyY/RpTHJeO7SeI/AAAAAAAAAA8/NXjS2OGIvds/s1600-h/J35_02.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://3.bp.blogspot.com/_GTDOCjd4gyY/RpTHJeO7SeI/AAAAAAAAAA8/NXjS2OGIvds/s200/J35_02.jpg" alt="" id="BLOGGER_PHOTO_ID_5085908844756552162" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_GTDOCjd4gyY/RpTHNOO7SfI/AAAAAAAAABE/cXYb6UDG20s/s1600-h/J35_03.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://2.bp.blogspot.com/_GTDOCjd4gyY/RpTHNOO7SfI/AAAAAAAAABE/cXYb6UDG20s/s200/J35_03.jpg" alt="" id="BLOGGER_PHOTO_ID_5085908909181061618" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_GTDOCjd4gyY/RpTHROO7SgI/AAAAAAAAABM/L68uT58sKo8/s1600-h/J35_04.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://2.bp.blogspot.com/_GTDOCjd4gyY/RpTHROO7SgI/AAAAAAAAABM/L68uT58sKo8/s200/J35_04.jpg" alt="" id="BLOGGER_PHOTO_ID_5085908977900538370" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.novelair.com/forum/index.php?action=dlattach;topic=477.0;attach=1015;image"&gt;&lt;br /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-1785858164819934390?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/1785858164819934390/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=1785858164819934390' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/1785858164819934390'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/1785858164819934390'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2007/07/new-project.html' title='New Project'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_GTDOCjd4gyY/RpTG7uO7SdI/AAAAAAAAAA0/UVff2nolLWQ/s72-c/J35_01.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-1800689119098818217</id><published>2007-07-03T12:42:00.000+02:00</published><updated>2008-12-11T04:59:16.422+01:00</updated><title type='text'>My thoughts about radar - part 1</title><content type='html'>When I got the opportunity to try the AJSH37 simulator at F7 airbase in Såtenäs, I never got to see the radar display in action. The reason for this, they said, was that it was still classified. I thought that was a little strange since this is an obsolete aircraft that was about to be scrapped and there isn't really anything from this system that is used in the new JAS39, except perhaps for shooting boundaries displayed in some weapon modes. When I tried the AJSH37 simulator at SAAB they also thought it was a bit strange but unfortunately their simulator did not have any simulation of the radar image. I got to see the symbology though. And we've been able to get a few glimpses of the radar image through different showcase movies from the air force, and there are a few scenes showing the radar in the film "&lt;a href="http://www.imdb.com/title/tt0115073/"&gt;Älskar älskar inte&lt;/a&gt;".&lt;br /&gt;&lt;br /&gt;However, at F7 though I never got to see the radar display itself, I got to see the unit that produced the radar image. It was a locker as large as a couple of fridges. The whole simulator was housed in a room as large as tennis court. Inside the locker there were two large vertically placed silver coated glass plates with the topography of Sweden (and some areas around) etched into i. Basically you could say it was a silvery 3D map of the area of operation. The reason there were two plates is that Sweden is a very long country, and it was easier to handle this way. Just above the surface of this 3D map there was a  moving unit with a light source, representing the radar of the aircraft, and a camera picking up the light from a "God's perspective". It might sound a bit strange, but it's actually really genius, considering this sim was built in the early 70's. If you think about it, it is almost the way a radar really works.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_GTDOCjd4gyY/Roo6_uO7ScI/AAAAAAAAAAs/qd2P_lBNq_8/s1600-h/radar_light.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_GTDOCjd4gyY/Roo6_uO7ScI/AAAAAAAAAAs/qd2P_lBNq_8/s400/radar_light.png" alt="" id="BLOGGER_PHOTO_ID_5082939995857832386" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Take a flashlight and lay it on an uneven surface, like a gravel road, lightening along the surface.  Then view the surface from above.  You will notice that all bumps will produce small shadows behind them, all in the direction away from the light source. The parts of the surface receiving light are all visible from the the light source, the other parts are dark. So what you see from above is exactly the same as from the flashlight, only from a different perspective. The radar receiver in an airplane is located in the same place as the sender, "light source", not a few miles ahead and above the airplane. However radar also gives you depth information so it's a piece of cake to translate it into a "God's view".&lt;br /&gt;&lt;br /&gt;This is a somewhat simplistic view of how a radar works, not considering refraction, jitter effect, polarization etc. But for the purpose of a Viggen simulator it's good enough. After my visit to F7 I started thinking about the possibility to make a similar radar simulation with 3D hardware, using OpenGL. I will discuss this in part 2.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-1800689119098818217?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/1800689119098818217/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=1800689119098818217' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/1800689119098818217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/1800689119098818217'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2007/07/my-thoughts-about-radar-part-1.html' title='My thoughts about radar - part 1'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_GTDOCjd4gyY/Roo6_uO7ScI/AAAAAAAAAAs/qd2P_lBNq_8/s72-c/radar_light.png' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-3102571871473159724</id><published>2007-07-01T14:27:00.001+02:00</published><updated>2008-12-11T04:59:16.826+01:00</updated><title type='text'>Been busy</title><content type='html'>I've been very busy at work the last 6 months, so not much have been done on the programs. However I'm now unemployed (have a new work starting in September) which means I have a lot of time to spend on this project. Some progress have been made. It's now possible to give the flight computer data about runway directions on takeoff and landing waypoints and channels for the TILS landing system. For normal waypoints two angles can be defined to mark borders. This is then presented in the radar display (CI).&lt;br /&gt;&lt;br /&gt;Further more I have implemented a drift in the navigation, which means that over time the navigation system will be slightly off course. And to counter this you can fix your position by known positions. Since I haven't implemented the radar simulation, radar fixes are not possible. So for the moment you can only fix your position optically.&lt;br /&gt;&lt;br /&gt;The whole simulator has now been moved into the bus and has been on tour a few times already. You can find pictures of the move &lt;a href="http://www.novelair.com/forum/index.php?topic=443.0"&gt;here&lt;/a&gt;. This is a part of the project I'm not really involved in since I live several hundred miles from where the simulator is located and can not work with it physically. However in the future I will write some about the hardware since it's imperative to know how that works to understand what I am doing. Now that I've moved the programming diary to this blog, I also hope updates will be more frequent.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_GTDOCjd4gyY/RpTJnOO7SjI/AAAAAAAAABk/J5QOg37TvQE/s1600-h/SUL37_01.JPG"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 142px; height: 108px;" src="http://2.bp.blogspot.com/_GTDOCjd4gyY/RpTJnOO7SjI/AAAAAAAAABk/J5QOg37TvQE/s200/SUL37_01.JPG" alt="" id="BLOGGER_PHOTO_ID_5085911554880916018" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_GTDOCjd4gyY/RpTJi-O7SiI/AAAAAAAAABc/z4cbhgVNtuQ/s1600-h/buss_02.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 131px; height: 108px;" src="http://1.bp.blogspot.com/_GTDOCjd4gyY/RpTJi-O7SiI/AAAAAAAAABc/z4cbhgVNtuQ/s200/buss_02.jpg" alt="" id="BLOGGER_PHOTO_ID_5085911481866471970" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_GTDOCjd4gyY/RpTJeeO7ShI/AAAAAAAAABU/BZKL3bnOmcM/s1600-h/buss_01.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 144px; height: 108px;" src="http://3.bp.blogspot.com/_GTDOCjd4gyY/RpTJeeO7ShI/AAAAAAAAABU/BZKL3bnOmcM/s200/buss_01.jpg" alt="" id="BLOGGER_PHOTO_ID_5085911404557060626" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-3102571871473159724?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/3102571871473159724/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=3102571871473159724' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/3102571871473159724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/3102571871473159724'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2007/07/ive-been-very-busy-with-work-last-6.html' title='Been busy'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_GTDOCjd4gyY/RpTJnOO7SjI/AAAAAAAAABk/J5QOg37TvQE/s72-c/SUL37_01.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-2377825964805789071</id><published>2006-08-21T14:18:00.000+02:00</published><updated>2007-07-01T16:30:47.477+02:00</updated><title type='text'>Radar zoom</title><content type='html'>The circle marker in the radar display is now moving according to the current waypoint and it's possible to change between 15, 30, 60 and 120 km zoom. I've been told that the way I control the circle marker with the handle on the radar panel is wrong, but it's not a very big problem since at the moment you can't use this function for radar fixes anyway.&lt;br /&gt;&lt;br /&gt;Here is a film of some flying and a landing at a road base.&lt;br /&gt;&lt;br /&gt;&lt;object height="350" width="425"&gt; &lt;param name="movie" value="http://www.youtube.com/v/Lj_seM1NPOY"&gt;  &lt;embed src="http://www.youtube.com/v/Lj_seM1NPOY" type="application/x-shockwave-flash" height="350" width="425"&gt;&lt;/embed&gt;  &lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-2377825964805789071?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/2377825964805789071/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=2377825964805789071' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/2377825964805789071'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/2377825964805789071'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2006/08/zoom-in-radar-display.html' title='Radar zoom'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-4227614829874553672</id><published>2006-07-28T12:52:00.000+02:00</published><updated>2007-07-01T16:18:20.403+02:00</updated><title type='text'>Long time no progress?</title><content type='html'>I haven't updated the blog for some time now, but that doesn't mean there has been no progress. The video marker in the radar display program (CI) is working and you can control it with the handle on the radar panel.&lt;br /&gt;&lt;br /&gt;Here is a film showing this.&lt;br /&gt;&lt;object width="425" height="350"&gt; &lt;param name="movie" value="http://www.youtube.com/v/twY29OZ2sdU"&gt; &lt;/param&gt; &lt;embed src="http://www.youtube.com/v/twY29OZ2sdU" type="application/x-shockwave-flash" width="425" height="350"&gt;&lt;/embed&gt;  &lt;/object&gt;&lt;br /&gt;&lt;br /&gt;The navigation system is starting to work and it is now possible to give the flight computer waypoints through the datapanel. The HUD, the radar display and some other gauges is then feeding the pilot with instructions where to fly.&lt;br /&gt;&lt;br /&gt;Here is a film of the working data panel and displays.&lt;br /&gt;&lt;object width="425" height="350"&gt; &lt;param name="movie" value="http://www.youtube.com/v/RDKOe_967Ts"&gt; &lt;/param&gt; &lt;embed src="http://www.youtube.com/v/RDKOe_967Ts" type="application/x-shockwave-flash" width="425" height="350"&gt;&lt;/embed&gt;  &lt;/object&gt;&lt;br /&gt;&lt;br /&gt;Typing positions for waypoint by latitude and longitude is a bit tedious so I hope to implement reference number input. I also look forward to do the instrument landing system TILS.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-4227614829874553672?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/4227614829874553672/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=4227614829874553672' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/4227614829874553672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/4227614829874553672'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2007/07/long-time-no-progress.html' title='Long time no progress?'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-4582579685790956966</id><published>2006-02-24T12:36:00.000+01:00</published><updated>2007-07-01T12:52:11.578+02:00</updated><title type='text'>Three programs</title><content type='html'>Short about the progress. We now have three stand alone programs (CK,SI and CI) that communicates with each other and the simulator through &lt;a href="http://www.schiratti.com/dowson.html"&gt;FSUIPC&lt;/a&gt;. We're still bug testing to make sure we haven't lost any functionality when we split the program into three. To communicate with each other the programs use some "free" offsets in FSUIPC that is not used by any other system we use.&lt;br /&gt;&lt;br /&gt;The communications between the hardware (buttons, switches and numeric displays) is also handled with these offsets in contrast to emulated keyboard input as we used to have. At the moment we have an 8 bit offset reserved for key codes from the cockpit but it can easily be expanded if 256 different buttons is not enough. This progress means that I can start working on the navigation system.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-4582579685790956966?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/4582579685790956966/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=4582579685790956966' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/4582579685790956966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/4582579685790956966'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2006/02/three-programs.html' title='Three programs'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-2054131589030186811</id><published>2006-02-05T16:42:00.000+01:00</published><updated>2007-07-01T16:46:39.039+02:00</updated><title type='text'>Flying with friends</title><content type='html'>Another film from the cockpit. This time some of the people involved in this project flew an online session together to practise some formation flying.&lt;br /&gt;&lt;object height="350" width="425"&gt;&lt;param name="movie" value="http://www.youtube.com/v/tCgPWZu_Qlo"&gt;&lt;embed src="http://www.youtube.com/v/tCgPWZu_Qlo" type="application/x-shockwave-flash" height="350" width="425"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-2054131589030186811?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/2054131589030186811/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=2054131589030186811' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/2054131589030186811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/2054131589030186811'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2006/02/flying-with-friends.html' title='Flying with friends'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-5179808551628338139</id><published>2006-01-31T16:47:00.000+01:00</published><updated>2007-07-01T16:49:43.045+02:00</updated><title type='text'>Viggen full throttle</title><content type='html'>Here is a film showing many of the current features in the simulator. Engine startup, HUD, gauges and much more.&lt;br /&gt;&lt;object height="350" width="425"&gt;&lt;param name="movie" value="http://www.youtube.com/v/hngStLJLhEo"&gt;&lt;embed src="http://www.youtube.com/v/hngStLJLhEo" type="application/x-shockwave-flash" height="350" width="425"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-5179808551628338139?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/5179808551628338139/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=5179808551628338139' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/5179808551628338139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/5179808551628338139'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2007/07/here-is-film-showing-many-of-current.html' title='Viggen full throttle'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-62883120384387290</id><published>2006-01-12T12:13:00.000+01:00</published><updated>2007-07-01T16:34:00.292+02:00</updated><title type='text'>Radar display</title><content type='html'>The altitude calculations seems to work properly with the exception of the radar altimeter needs some low pass filter. Unfortunately I haven't been working much on the HUD program for some time as all my time has been spent on the radar display (CI). The result is a decent version of this new program with the basic symbology and some kind of eye candy radar sweep. Since there is no radar simulation the sweep has no other function than to give the feeling of having a radar.&lt;br /&gt;&lt;br /&gt;Here is a film of the radar display.&lt;br /&gt;&lt;object width="425" height="350"&gt; &lt;param name="movie" value="http://www.youtube.com/v/-wCmGdo-T1I"&gt; &lt;/param&gt; &lt;embed src="http://www.youtube.com/v/-wCmGdo-T1I" type="application/x-shockwave-flash" width="425" height="350"&gt;&lt;/embed&gt;  &lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-62883120384387290?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/62883120384387290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=62883120384387290' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/62883120384387290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/62883120384387290'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2006/01/radar-display.html' title='Radar display'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-3873076365079708163</id><published>2005-12-13T12:06:00.000+01:00</published><updated>2007-07-01T12:12:30.475+02:00</updated><title type='text'>Altitude calculations</title><content type='html'>The cold turned out to be the flue of the year, so I haven't been able to do much on this project for some time. Now I'm out of the fever fog and  have been able to do some research about the altitude calculations and such. This is something I have to work on, but I will get back with more details as I start to implement it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-3873076365079708163?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/3873076365079708163/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=3873076365079708163' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/3873076365079708163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/3873076365079708163'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2005/12/cold-turned-out-to-be-flue-of-year-so-i.html' title='Altitude calculations'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-5364742189780146889</id><published>2005-12-07T11:27:00.000+01:00</published><updated>2007-07-01T12:33:42.049+02:00</updated><title type='text'>Low alt warning</title><content type='html'>Headache, soar throat, a voice like James Earl Jones and some slight fever. The diagnosis is a cold. But nothing is going to stop me from working on this project.&lt;br /&gt;&lt;br /&gt;I had planned to start working on the input into the flight computer, but we decided that we needed to get the low alt warning to work properly. After some research it seems like we will be able to make all the different low alt warnings  work. AJ37 i a rather old plane so it had a rather simple system compared to modern aircrafts. All conditions for low alt warning are based on the current height and do not consider any obstacles in front of the aircraft, which would have been impossible or at least not feasible to do in Microsoft flight simulator since there is no functions or variables to get that information. The only ways around that would have been to either have our own set of terrain height data which would probably not match the terrain in the simulator good enough, or we would have to hack the terrain file format in the simulator and that would be a very big project. Luckily we don't have to that.&lt;br /&gt;&lt;br /&gt;Apart from the warnings you get altitude hold and some special warnings at different weapon choices, which are not indicated in the HUD anyway, there  are two conditions for low alt warning: bottenvarning and metspövarning (translates roughly to bottom warning and pole warning). The bottom warning is induced by the radar altitude falling below 150 m and at the same time is not less than half the altitude measured by air pressure. The pole warning is induced by the current sink rate predicting the aircraft to hit the ground within 7 seconds. There are also some extra conditions for these warnings.&lt;br /&gt;&lt;br /&gt;Low alt warning is indicated in the HUD by the altitude pole package is blinking with a 5Hz frequency. This is now done for the pole and bottom warning except that the only extra condition I've implemented is that no low alt warning is induced under 50 m if the landing gears are out. To implement the rest of the conditions I need to do more research.&lt;br /&gt;&lt;br /&gt;At the same time I put back the function that turns the HUD off at climb angles over 15 degrees or under -15 degrees. This function has a hysteresis, which means that it's not turned on until the climb angle are lower than 12 degrees or higher than -12 degrees. This function was implemented earlier, but was commented out when I did a restructuring of the program last summer.&lt;br /&gt;&lt;br /&gt;I don't know if anyone is reading this programming diary, but if I sometimes am a bit to technical, use terminology you don't understand, I might not be technical enough or there is something you wonder about then feel free to tell me. Maybe some one would like to see some screenshots?&lt;br /&gt;&lt;br /&gt;Now I'm returning to the bed so I can get rid of this cold.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-5364742189780146889?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/5364742189780146889/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=5364742189780146889' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/5364742189780146889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/5364742189780146889'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2005/12/headache-soar-throat-voice-like-james.html' title='Low alt warning'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-7109108951953473680</id><published>2005-12-04T01:37:00.000+01:00</published><updated>2007-07-01T02:10:26.943+02:00</updated><title type='text'>I got and idea...</title><content type='html'>Some early morning work. Woke up and had a slight feeling that it was actually possible to get an acceleration value from flight simulator. When you wake up in the morning and have an idea, you shouldn't stay in bed. It's imperative to act while the idea is still fresh. And quite right.... there is a value for acceleration over the X, Y and Z axis. Can't understand where I got the impression there wasn't. Then it was just half an hour work to make the time line for rotation order to move.&lt;br /&gt;&lt;br /&gt;This means that start mode (or takeoff mode as you would probably call it in English) is 100% finished, and it's time to start working on input and output from the data panel. This is to be able to present navigational data in the other HUD modes.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-7109108951953473680?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/7109108951953473680/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=7109108951953473680' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/7109108951953473680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/7109108951953473680'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2005/12/i-got-and-idea.html' title='I got and idea...'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-7518874711994019241</id><published>2005-11-29T01:30:00.000+01:00</published><updated>2007-07-01T01:36:34.297+02:00</updated><title type='text'>Speed error indicator</title><content type='html'>Today I've fixed the steering of the speed error indicator in landing mode (the little vertical line on the velocity vector). The function has been there since before, but now I've also got the logic for it. The code is written for both 12 degrees and 15.5 degrees alpha, but since we haven't connected the button to change between these, only 12 degrees work at this moment. I've also fixed the warning for critically low speed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-7518874711994019241?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/7518874711994019241/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=7518874711994019241' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/7518874711994019241'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/7518874711994019241'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2005/11/speed-error-indicator.html' title='Speed error indicator'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-4631362286999819103</id><published>2005-11-26T01:18:00.000+01:00</published><updated>2007-07-01T01:28:02.825+02:00</updated><title type='text'>Low nav mode</title><content type='html'>the low nav mode that I made earlier is now connected with the new logic and seems after the first test to work as it should. In this mode I've also added the functionality to toggle the course indicator by pressing the ref. omk. button. Now I only have a few things left before I start working on the input and out put from the CK program to the data panel.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-4631362286999819103?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/4631362286999819103/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=4631362286999819103' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/4631362286999819103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/4631362286999819103'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2005/11/low-nav-mode.html' title='Low nav mode'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-5910548452225230100</id><published>2005-11-19T00:56:00.000+01:00</published><updated>2007-07-01T01:09:41.983+02:00</updated><title type='text'>Adjustments and settings</title><content type='html'>Today's work was primarily to put all possible adjustments to the HUD into an INI-file. This way the adjusments and calibrations don't have to be med everytime the program is started. Additionally I have once again made it possible to use the ref. omk. button, but with slightly modified functionality. And I've also added the possability to tilt the HUD display at takeoff and landing. Since a HUD of this type has a very limited field of view, and much of the interresting presentation at takeoff and landing is positioned lower than you would like in normal flight, it is possible to physcally tilt the reflector glass of the HUD. But to get a proper presentation this has to be accompanyed by a similar tilt in the computer generated image. When the glass is tilted, a microswitch is pressed and the HUD-program gets a signal to tilt the image to a preset position... As simple as that.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-5910548452225230100?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/5910548452225230100/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=5910548452225230100' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/5910548452225230100'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/5910548452225230100'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2007/07/adjustments-and-settings.html' title='Adjustments and settings'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-2028066195398628486</id><published>2005-11-18T00:33:00.000+01:00</published><updated>2007-07-01T01:07:42.557+02:00</updated><title type='text'>Flight computer</title><content type='html'>Restructuring of the HUD (SI) program completed. I've implemented some variant of the bridge design pattern to control the different modes of the HUD. I hope that the HUD program this way will be easier to maintain. The hard thing about this project is tat we don't really know from the start how things are going to work. We do have a lot of documentation, but it's far from complete. And when I try to implement one thing we usually find that the way we assumed it worked is simply not true, or at least not the whole truth.&lt;br /&gt;&lt;br /&gt;I've now started the flight computer program (CK). But since I haven't worked out the details for the communication between my programs, I included the whole CK program in the SI program with an interface between. This way it should be simple to just lift the CK code to a separate program when I want to. The restructuring means that we've lost some of the functionality. But this is simply a matter of not reaching it at the moment. The code for it is still there.&lt;br /&gt;&lt;br /&gt;Since we now have a CK program, I've got the mode selector to work. Start mode is activated and deactivated according to the right conditions.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-2028066195398628486?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/2028066195398628486/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=2028066195398628486' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/2028066195398628486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/2028066195398628486'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2005/11/restructuring-of-hud-si-program.html' title='Flight computer'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-4132056981713669093</id><published>2005-10-15T00:25:00.000+02:00</published><updated>2008-12-11T04:59:17.295+01:00</updated><title type='text'>Reading data from the simulator</title><content type='html'>Today I've been able to read the aircraft's current position, which means the commanded course in the HUD is starting to work. This is stuff that should be placed in the flight computer, but since I haven't made that program yet these  functions will have to be placed in the HUD program temporarily.  However this means that for the moment there will not be anything else than hardcoded waypoints. I'll see if I have the time tonight to make the program change waypoint according to the right conditions.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_GTDOCjd4gyY/RpTO2-O7SkI/AAAAAAAAABs/jz06zTATFek/s1600-h/SI_01.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://1.bp.blogspot.com/_GTDOCjd4gyY/RpTO2-O7SkI/AAAAAAAAABs/jz06zTATFek/s200/SI_01.jpg" alt="" id="BLOGGER_PHOTO_ID_5085917323021994562" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_GTDOCjd4gyY/RpTO5-O7SlI/AAAAAAAAAB0/4AL36s10Zc4/s1600-h/SI_02.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://1.bp.blogspot.com/_GTDOCjd4gyY/RpTO5-O7SlI/AAAAAAAAAB0/4AL36s10Zc4/s200/SI_02.jpg" alt="" id="BLOGGER_PHOTO_ID_5085917374561602130" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-4132056981713669093?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/4132056981713669093/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=4132056981713669093' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/4132056981713669093'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/4132056981713669093'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2005/10/today-ive-been-able-to-read-aircrafts.html' title='Reading data from the simulator'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_GTDOCjd4gyY/RpTO2-O7SkI/AAAAAAAAABs/jz06zTATFek/s72-c/SI_01.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-1861826466282585438</id><published>2005-10-12T23:29:00.000+02:00</published><updated>2007-07-01T00:24:56.127+02:00</updated><title type='text'>Project overview</title><content type='html'>It might be a good idea to give you an overview of this project to understand what I am doing.&lt;br /&gt;&lt;br /&gt;SUL37 is a project to build a simulator based on a real SAAB AJ37 cockpit. We are 6 people from completely different parts of Sweden involved in this project. For simulation we use Microsoft Flight simulator 2004 which is projected on a big screen in front of the cockpit. Our goal is realism and we aim to be as true to the original as possible. Everything in the cockpit is original except for the displays for HUD and radar. Most of the gauges are modified to house stepper motors that we can control from our software, and there is only a few reserve gauges that aren't working so far. To top this there is a pneumatic G-simulation system fitted in the ejection seat.&lt;br /&gt;&lt;br /&gt;My contribution to this project is the software for the flight systems. that includes the HUD presentation system, the radar display system and the flight computer for navigational calculations and other tasks. The programming is made in C++ and the graphical presentation is made with OpenGL. The different sub systems will be distributed to several programs on several computers. This way we can use old "junk" computers that don't cost us anything, but the different systems will then have to communicate in some way. To start with we will probably use FSUIPC since this is what we use to fetch data from the simulator, but we might want to make some interface of our own down the line.&lt;br /&gt;&lt;br /&gt;The original hardware for the HUD (head up display), or SI as it is called in system 37, is  kept as it is except we've replaced the small round CRT with an old  b/w TV. Since the TV is slightly larger than the original CRT, and since we need to have a closer focus for the HUD presentation (the simulated world is projected just a few meter in front of the pilot instead of infinity as the real world) we've also placed our own optics between the TV and the HUD. The result is almost perfect.&lt;br /&gt;&lt;br /&gt;The radar display, or CI as it is called in system 37, is also replaced by a b/w TV with a green filter and a Fresnel lens in front of it. The radar display presents some navigational aid, a horizon line and a radar image in PPI och B-scope. I have plans for a realistic radar simulation with shadows and proper illumination. But since this is very complicated it is not something I prioritize.&lt;br /&gt;&lt;br /&gt;Finally the central flight computer, or CK as it is called in  system 37,  is the heart of the whole system. The flight computer has many different tasks, but one of the main things is navigational calculations. it controls what is presented in the HUD and radar display, but also many of the gauges. The pilot controls the computer from a panel on the right side.&lt;br /&gt;&lt;br /&gt;I will write more about the different systems as I make the programs for them.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-1861826466282585438?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/1861826466282585438/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=1861826466282585438' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/1861826466282585438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/1861826466282585438'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2005/10/project-overview.html' title='Project overview'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6541367106130200530.post-7441922976338388010</id><published>2005-10-10T22:36:00.000+02:00</published><updated>2007-07-01T15:55:12.320+02:00</updated><title type='text'>SI starting to take shape</title><content type='html'>After a few hours in the AJSH37 simulator at the F7 airbase in Såtenäs, and now recently a few hours in a similar simulator at SAAB in Linköping, and after having gone through all not classified documentation we have been able to get our hands on and then some, I think I've got a somewhat good understanding of how the HUD works. The program I made last summer is now restructured and as a result it was easy and quick to add some new HUD modes. What we have now is the startmode (I'm still not entirely sure how to make calculations for rotation velocity though),  a somewhat complete nav mode, low nav mode and optical landing mode.&lt;br /&gt;&lt;br /&gt;Today I've also made some real progress of making the HUD-program communicating with the simulator.... With one exception. There don't seem to be any variable in FlightSim for climb angle. But I think it should be possible to calculate that from vertical speed and ground speed. This seems to give me correct values, but unfortunately these variables are not updated more than a few times every second which renders them almost unusable. So I have to find some other way. If anyone has any suggestions, I'd be happy to try it.&lt;br /&gt;&lt;br /&gt;Finally I started to add functionality for commanded altitude, which seems to work just fine. I also adjusted radar altitude so it is presented correctly. Next step is to finish the commanded altitude, but that would require waypoints I guess, and that is a completely different part of this project.&lt;br /&gt;&lt;br /&gt;After some thinking, drawing and calculting I think I've figured out a way to get the climb angle&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;climbAngle = pitchAngle - (sin(rollAngle) * beta + cos(rollAngle) * alfa)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;At least it seems right to me, but if I'm thinking all wrong please tell me. Here is a video of the result&lt;br /&gt;&lt;object width="425" height="350"&gt;&lt;param name="movie" value="http://www.youtube.com/v/TabIuSz5iHU"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/TabIuSz5iHU" type="application/x-shockwave-flash" width="425" height="350"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;span style="text-decoration: underline;"&gt;&lt;/span&gt;&lt;a href="http://www.novelair.com/Videos/SI-video2.WMV"&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6541367106130200530-7441922976338388010?l=sul37.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sul37.blogspot.com/feeds/7441922976338388010/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6541367106130200530&amp;postID=7441922976338388010' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/7441922976338388010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6541367106130200530/posts/default/7441922976338388010'/><link rel='alternate' type='text/html' href='http://sul37.blogspot.com/2007/06/2005-10-10.html' title='SI starting to take shape'/><author><name>Daniel Berlin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp1.blogger.com/_GTDOCjd4gyY/RogmzOO7SZI/AAAAAAAAAAU/F1u5Yz7cvuY/s200/Daniel.png'/></author><thr:total>0</thr:total></entry></feed>
