I got tired of seeing all the three.js warnings and errors in the flight sim, so I upgraded to r74 and fixed a few bugs caused by the upgrade. I also added more trees around the flight field and changed the aircraft weapons:
- Gun1 is now smaller bullets and fast rate of fire
- Gun2 is the old gun1 with a slow rate of fire
- Bomb1 is the same
- Added Bomb2 as a bigger sphere with a slow rate of fire
I would like to thank Heiko Irrgang at 93-interactive.com for posting some really nice skybox’s that are free to use. I have used his ‘TropicalSunnyDay’ Skybox in my RC flight simulator. Looks so much nicer than the old one I hacked together. I just did not have time to do a good job on it, thanks again!
- Moved a bunch of the more commonly used features onto the main page with simple icons to click. Much easier to hand launch with 1 click!
- Reduced the load time a bit by using a fixed terrain instead of randomly generating one on every page load. Hopefully it is a little quicker to load now.
- Use the arrows keys to move around the flying field.
One of the difficulties in learning a new language is re-learning how to do some common things like unit-testing. Today I was referred to a great article on Python and ‘mocking’, and it was interesting enough that I decided I would post a link to it. www.toptal.com/python/an-introduction-to-mocking-in-python These guys at toptal.com have a blog with quite a few interesting articles on software development, I will be checking their blog regularly for new articles.
The wonderful Raspberry Pi Magazine has included my little project in their latest edition (Issue 41)! (So close to 42, but what was the question?…) Thank you very much Lucy Hattersley for writing the article!
So I was just sitting around this weekend, and out of nowhere I realized that I had a flaw in the RC Flight Simulator Physics engine. I wasn’t even thinking about the simulator, I was thinking about my last RC flight and how tight a turn I could pull with my FT-Bushwacker without snapping the wings in half (grin), which lead me to think about the simulator. Funny how the brain works!
I realized that my inertial tensor was being calculated on the aircraft before I had shifted the model coordinates to ensure the c.g. was at coordinate (0,0,0). I had thought that the inertial tensor calcs would not be affected by that originally, oops. After writing a small function to shift the model coordinates, I tried flying a few aircraft and it made a huge difference. The rotation seemed much more realistic and I was able to reduce the rotational damping factor I had been using (to prevent infinite rotation speed) and still have stable calculations. Right now I have cleaned up the code and some of the hacks that I made to some of the model parameters to get them to fly realistically. Some models still do not fly at all realistically, but most are better. The FT-VersaWing still flys incorrectly, oh well, a work in progress…
Many kids and parents had fun watching the Dalek terrorize the neighborhood this halloween.
It is sad that I only seem to have time to drag this out on Halloween. I did manage to solve my belt slip problems, but after a night of driving around the seat motors are getting slower and slower. Looks like I will need to upgrade the drive train over the winter, hopefully next year it will finally be ready to exterminate my lawn.
I did not realize it until someone tracked me down, but the Gamepad API for my flight simulator was failing. This API seems to change quite often, so I have fixed it once again and updated the web site RonsRCSim. If you have trouble playing it, please send an email to firstname.lastname@example.org and I will fix it.
I have added the web interface code with streaming video support to the RaspiMower project on BitBucket, read about it here. Now you can control the robot and see what it sees from a PC or cell phone or tablet.
I have struggled for ages trying to find a fast video streaming solution to a web page for the Pi Cam, and I finally found one. Unfortunately it involves 2 distinct projects and web sites, so I have created a single web page with references to the two to make it easier for people to find the complete solution and implement it. I am using it for a web interface to my robotic mower/Dalek.
Here are the unified install instructions.
I finally dug my Dalek out of storage and got it running again. Everything worked, amazing! Can’t wait to get back to work on some new features like facial detection and navigation. Too much fun!