Development Blog Week 5 – More New Features
For the penultimate week of development we planned to focus solely to get the AR to function. However on Monday, we finally managed to get the AR to render the location markers correctly. Now that we had the AR functioning to an acceptable degree we were able to implement a number of extra features.
Our amended goals for this week were:
- Further improve the AR.
- Develop a compass for the map and AR.
- Set up a database of aircraft and airline names.
- Set up search and filtering for the map (time permitting)
While the AR was now functioning, it still had a number of issues. The height of each marker was fixed and it could often be very cluttered and hard to read with markers overlapping each other. Ideally we would like to display each aircraft marker relative to its actual altitude. This proved to be very difficult so for the time being we decided instead to generate a random height based on distance. The issue of overlapping markers was overcome for the most part by scaling each marker based on its distance from the user.
While we did not initially plan to include a compass, we thought it would be particularly useful for the AR. Karl worked on this feature. The compass for the map wasn’t overly challenging to implement but the sensitivity of the compass had to be reduced as it was distracting at first. The AR compass was much more demanding as the user would be holding their phone vertically rather than horizontally like would be normal with a compass. This was overcome by using mathematical formulae that accounted for this.
Niall set up a Firebase database of aircraft and airline names. This would be very useful as the ICAO aircraft and airline codes that the API returns would not be familiar to the non technical user.
Karl replaced the custom infobox with one that is fixed to the bottom left-hand corner of the screen. We felt this would be better as it doesn’t obscure the plane icon.
Niall set up a search function to search for any plane in the world by its registration and a function to show all military aircraft globally.
We also added various settings, including show/hide the compass, change the map type and set the AR view distance. Additional unit and instrument tests have been carried out. We tested our app on five devices including a tablet via Firebase.
Next week we will finish up with adding new features by Tuesday and then focus on the documentation, video and additional tests.