Merge branch 'master' of git.gitorious.org:fg/fgdata
This commit is contained in:
commit
2daa5962b8
2 changed files with 9 additions and 9 deletions
|
@ -3,7 +3,7 @@
|
||||||
## Nasal for dual control of a KR-87 ADF radio over the multiplayer
|
## Nasal for dual control of a KR-87 ADF radio over the multiplayer
|
||||||
## network.
|
## network.
|
||||||
##
|
##
|
||||||
## Copyright (C) 2007 - 2010 Anders Gidenstam (anders(at)gidenstam.org)
|
## Copyright (C) 2007 - 2011 Anders Gidenstam (anders(at)gidenstam.org)
|
||||||
## This file is licensed under the GPL license version 2 or later.
|
## This file is licensed under the GPL license version 2 or later.
|
||||||
##
|
##
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
@ -116,21 +116,21 @@ var kr87 = [master_kr87.new(0), master_kr87.new(1)];
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# n - ADF#
|
# n - ADF#
|
||||||
swap = func(n) {
|
var swap = func(n) {
|
||||||
kr87[n].swap();
|
kr87[n].swap();
|
||||||
}
|
}
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# n - ADF#
|
# n - ADF#
|
||||||
# d - adjustment
|
# d - adjustment
|
||||||
adjust_frequency = func(n, d) {
|
var adjust_frequency = func(n, d) {
|
||||||
kr87[n].adjust_frequency(d);
|
kr87[n].adjust_frequency(d);
|
||||||
}
|
}
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# n - ADF#
|
# n - ADF#
|
||||||
# p - pressed
|
# p - pressed
|
||||||
toggle_BFO = func(n) {
|
var toggle_BFO = func(n) {
|
||||||
kr87[n].toggle_BFO();
|
kr87[n].toggle_BFO();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
## Nasal for dual control of a KX165 NavComm radio over the multiplayer
|
## Nasal for dual control of a KX165 NavComm radio over the multiplayer
|
||||||
## network.
|
## network.
|
||||||
##
|
##
|
||||||
## Copyright (C) 2007 - 2010 Anders Gidenstam (anders(at)gidenstam.org)
|
## Copyright (C) 2007 - 2011 Anders Gidenstam (anders(at)gidenstam.org)
|
||||||
## This file is licensed under the GPL license version 2 or later.
|
## This file is licensed under the GPL license version 2 or later.
|
||||||
##
|
##
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
@ -150,13 +150,13 @@ var make_slave_to = func(n, airoot) {
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# n - NavComm#
|
# n - NavComm#
|
||||||
swap_nav = func(n) {
|
var swap_nav = func(n) {
|
||||||
kx165tso[n].swap_nav();
|
kx165tso[n].swap_nav();
|
||||||
}
|
}
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# n - NavComm#
|
# n - NavComm#
|
||||||
swap_comm = func(n, b) {
|
var swap_comm = func(n, b) {
|
||||||
kx165tso[n].comm_base.getNode(swap_btn, 1).setValue(b);
|
kx165tso[n].comm_base.getNode(swap_btn, 1).setValue(b);
|
||||||
if (b) kx165tso[n].swap_comm();
|
if (b) kx165tso[n].swap_comm();
|
||||||
}
|
}
|
||||||
|
@ -164,14 +164,14 @@ swap_comm = func(n, b) {
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# n - NavComm#
|
# n - NavComm#
|
||||||
# d - adjustment
|
# d - adjustment
|
||||||
adjust_nav_frequency = func(n, d) {
|
var adjust_nav_frequency = func(n, d) {
|
||||||
kx165tso[n].adjust_nav_frequency(d);
|
kx165tso[n].adjust_nav_frequency(d);
|
||||||
}
|
}
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# n - NavComm#
|
# n - NavComm#
|
||||||
# d - adjustment
|
# d - adjustment
|
||||||
adjust_comm_frequency = func(n, d) {
|
var adjust_comm_frequency = func(n, d) {
|
||||||
kx165tso[n].adjust_comm_frequency(d);
|
kx165tso[n].adjust_comm_frequency(d);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue