Board index FlightGear Development New features

An alarm clock, seriously

Discussion and requests for new features. Please note that FlightGear developers are volunteers and may or may not be able to consider these requests.

An alarm clock, seriously

Postby Jabberwocky » Sun Apr 20, 2014 12:57 am

Hi,

okay, it's too late for 3.2, but what would be nice would be an alarm clock, you can hang on a waypoint and, when the plane reaches the waypoint, makes a hell of a noise, like those old mechanical alarm clocks or so (everything but the sound of master alarm).
For the background: I do some testing and I have a plane in the air, but I am busy on another computer while the autopilot is at work. But it could be also helpful for our long-haulers.

J.
Jabberwocky
Retired
 
Posts: 1319
Joined: Sat Mar 22, 2014 7:36 pm
Callsign: JWOCKY
Version: 3.0.0
OS: Ubuntu 14.04

Re: An alarm clock, seriously

Postby Hooray » Sun Apr 20, 2014 1:00 am

Jabberwocky wrote in Sun Apr 20, 2014 12:57 am:what would be nice would be an alarm clock, you can hang on a waypoint and, when the plane reaches the waypoint, makes a hell of a noise, like those old mechanical alarm clocks or so (everything but the sound of master alarm).


That should be less than 20 lines of Nasal code, and should require less than 20 minutes to implement, maybe 1 hour if you have never done any programming before.
Keep in mind, such things are not hard-coded, there's a scripting language in FlightGear, and it can access the route manager, including flight plans, we also have a timer/clock dialog, and even a dedicated timer API - and there are also ways to play sounds - see for example the tutorial system (100% scripted), or ATC chatter (also 100% scripted).
So all the ingredients are in place, you just need to combine them. Working on such a feature is possible without being bound by the release plan at all.
We can walk you through everything during a single weekend.
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11493
Joined: Tue Mar 25, 2008 8:40 am

Re: An alarm clock, seriously

Postby Jabberwocky » Sun Apr 20, 2014 1:07 am

Okay, okay, I will take a look when UI have more time, after the next book. Hey, want to hear something weird? I downloaded FG to overcome my fear of lying during the usual writer stucks ...
Jabberwocky
Retired
 
Posts: 1319
Joined: Sat Mar 22, 2014 7:36 pm
Callsign: JWOCKY
Version: 3.0.0
OS: Ubuntu 14.04

Re: An alarm clock, seriously

Postby Hooray » Sun Apr 20, 2014 2:14 am

This tells you how to run scripted code in FlightGear: http://wiki.flightgear.org/Nasal_Console

This demonstrates how to use timers to regularly run a piece of code to check some condition: http://wiki.flightgear.org/Nasal_Loops

$FG_ROOT/Nasal/geo.nas contains library code to deal with distance/bearing calculations, i.e. to determine how close you are to a certain location

This introduces the route manager/flightplan API: http://wiki.flightgear.org/Nasal_Flightplan

This tells you how to turn your script into a file that can be saved on disk that is loaded automatically:
http://wiki.flightgear.org/Nasal_Hello_World
http://wiki.flightgear.org/Creating_new_Nasal_scripts
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11493
Joined: Tue Mar 25, 2008 8:40 am

Re: An alarm clock, seriously

Postby legoboyvdlp » Wed Dec 17, 2014 2:08 am

This would seriously be good, especially if it would alert you at a TOD calculated by a formula based on your altitude speed and distance.
User avatar
legoboyvdlp
 
Posts: 7326
Joined: Sat Jul 26, 2014 1:28 am
Callsign: YV-LEGO
Version: next
OS: Windows 10 HP

Re: An alarm clock, seriously

Postby Foxtrot15 » Tue May 17, 2016 10:38 am

Hmm is this alarm clock still in the making?
Foxtrot15
 
Posts: 379
Joined: Thu Aug 27, 2015 5:01 am
Location: Singapore
Callsign: Ice-99
Version: 2016.1.0
OS: OS X

Re: An alarm clock, seriously

Postby Thorsten » Tue May 17, 2016 11:03 am

The Space Shuttle has plenty of time-related functions on the SPEC 2 display (count for <seconds>, count to <time>, adjust time offsets,...) as well as automatic timers for pre-programmed OMS burns and attitude maneuvers using this functionality - feel free to utilize for your needs.
Thorsten
 
Posts: 11378
Joined: Mon Nov 02, 2009 8:33 am

Re: An alarm clock, seriously

Postby daveculp » Tue May 17, 2016 2:45 pm

I've seen pilots bring egg timers with them for this purpose. You use the timer to warn of an impending way point crossing and also to mark the waypoint+10 minute point so that the position can be plotted on a chart (this is to verify that the aircraft made the proper course change after the waypoint). You place the timer on the dash in front of your face.
User avatar
daveculp
 
Posts: 503
Joined: Sun Feb 24, 2013 1:50 am
Location: Las Vegas, USA
Callsign: DCulp
Version: 2017.3.1
OS: Ubuntu 17.10

Re: An alarm clock, seriously

Postby Hooray » Tue May 17, 2016 3:10 pm

there is a timer GUI dialog (PUI), it should be straightforward to take that and adapt it for your needs, or even make it use Canvas instead - which means that an actual skin/theme could be used as a background image
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11493
Joined: Tue Mar 25, 2008 8:40 am


Return to New features

Who is online

Users browsing this forum: No registered users and 1 guest