pointless spelling fixes
This commit is contained in:
parent
199756d189
commit
cfd9c1b48f
8 changed files with 13 additions and 11 deletions
|
@ -290,7 +290,7 @@ incAileron = func {
|
|||
|
||||
##
|
||||
# arg[0] is the elevator increment
|
||||
# arg[1] is the autopilot target alitude increment
|
||||
# arg[1] is the autopilot target altitude increment
|
||||
incElevator = func {
|
||||
auto = props.globals.getNode("/autopilot/locks/altitude", 1);
|
||||
if ( !auto.getValue() or auto.getValue() == 0 ) {
|
||||
|
|
|
@ -198,7 +198,7 @@ var bt = backtrace;
|
|||
|
||||
|
||||
##
|
||||
# Excecutes function f with optional arguments and prints execution
|
||||
# Executes function f with optional arguments and prints execution
|
||||
# time in seconds. Examples:
|
||||
#
|
||||
# var test = func(n) { for (var i = 0; i < n; i +=1) { print(i) }
|
||||
|
|
|
@ -286,10 +286,12 @@ var tile_path = func(lat, lon) {
|
|||
p ~= "/" ~ tile_index(lat, lon) ~ ".stg";
|
||||
}
|
||||
|
||||
|
||||
var put_model = func(path, c, arg...) {
|
||||
call(_put_model, [path] ~ (isa(c, Coord) ? c.latlon() : [c]) ~ arg);
|
||||
}
|
||||
|
||||
|
||||
var _put_model = func(path, lat, lon, elev_m = nil, hdg = 0, pitch = 0, roll = 0) {
|
||||
if (elev_m == nil)
|
||||
elev_m = elevation(lat, lon);
|
||||
|
|
|
@ -27,7 +27,7 @@ fgcommand = func(cmd, node=nil) {
|
|||
##
|
||||
# Returns the SGPropertyNode argument to the currently executing
|
||||
# function. Wrapper for the internal _cmdarg function that retrieves
|
||||
# the ghost handlet to the argument and wraps it in a
|
||||
# the ghost handle to the argument and wraps it in a
|
||||
# props.Node object.
|
||||
#
|
||||
cmdarg = func { props.wrapNode(_cmdarg()) }
|
||||
|
|
|
@ -248,14 +248,14 @@ Dialog = {
|
|||
# pattern ... array with shell pattern or nil (which is equivalent to "*")
|
||||
# dir ... starting dir ($FG_ROOT if unset)
|
||||
# file ... pre-selected default file name
|
||||
# dotfiles ... flag that decids whether UNIX dotfiles should be shown (1) or not (0)
|
||||
# dotfiles ... flag that decides whether UNIX dotfiles should be shown (1) or not (0)
|
||||
#
|
||||
# EXAMPLE:
|
||||
#
|
||||
# var report = func { print("file ", cmdarg().getValue(), " selected") }
|
||||
# var selector = gui.FileSelector.new(
|
||||
# report, # callback function
|
||||
# "Save Flight", # dialot title
|
||||
# "Save Flight", # dialog title
|
||||
# "Save", # button text
|
||||
# ["*.sav", "*.xml"], # pattern for displayed files
|
||||
# "/tmp", # start dir
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
##
|
||||
# convert string for output; replaces tabs by spaces, and skips
|
||||
# delimitiers and the voice part in "{text|voice}" constructions
|
||||
# delimiters and the voice part in "{text|voice}" constructions
|
||||
#
|
||||
var sanitize = func(s) {
|
||||
var r = "";
|
||||
|
|
|
@ -63,9 +63,9 @@ var imatch = func(a, b) match(lc(a), lc(b));
|
|||
#
|
||||
# Rules:
|
||||
# ? stands for any single character
|
||||
# * stands for zero or any number of arbitrary characters
|
||||
# * stands for any number (including zero) of arbitrary characters
|
||||
# \ escapes the next character and makes it stand for itself; that is:
|
||||
# \? stands for a question mark (not "any single character")
|
||||
# \? stands for a question mark (not "any single character" placeholder)
|
||||
# [] stands for a group of characters:
|
||||
# [abc] stands for letters a or b or c
|
||||
# [^abc] stands for any character but any of a, b, and c
|
||||
|
@ -74,7 +74,7 @@ var imatch = func(a, b) match(lc(a), lc(b));
|
|||
# [-1-4] same as above
|
||||
# [1-3-6] stands for digits 1 to 3, minus, and 6
|
||||
# [1-3-6-9] stands for digits 1 to 3, minus, and 6 to 9
|
||||
# [][] stands for the closing and the opening bracket (']' must come first!)
|
||||
# [][] stands for the closing and the opening bracket (']' must be first!)
|
||||
# [^^] stands for all characters but the caret symbol
|
||||
#
|
||||
# Example:
|
||||
|
@ -141,7 +141,7 @@ var match = func(str, patt) {
|
|||
|
||||
|
||||
##
|
||||
# Removes superfluous slashes, emtpy and "." elements, expands
|
||||
# Removes superfluous slashes, empty and "." elements, expands
|
||||
# all ".." elements, and turns all backslashes into slashes.
|
||||
# The result will start with a slash if it started with a slash
|
||||
# or backslash, it will end without slash. Should be applied on
|
||||
|
|
|
@ -444,7 +444,7 @@ var say = func(what, who = "copilot", delay = 0) {
|
|||
#
|
||||
var init_nasal = func {
|
||||
globals.__tutorial = {
|
||||
say : say, # just exporting tutorial.say as __turorial.say
|
||||
say : say, # just exporting tutorial.say as __tutorial.say
|
||||
next : func(n = 1) { current_step += n; is_first_step = 1; },
|
||||
previous : func(n = 1) {
|
||||
current_step -= n;
|
||||
|
|
Loading…
Add table
Reference in a new issue