Using Nasal functions: Difference between revisions

Jump to navigation Jump to search
Line 264: Line 264:
     #some code to log variable msg
     #some code to log variable msg
}
}
var lookat = func (heading=0, pitch=0, roll=0, x=nil, y=nil, z=nil, time=nil, fov=20) {
var lookat = func (heading=0, pitch=0, roll=0, x=nil, y=nil, z=nil, time=nil, fov=20) {
     #some code using those variables
     #some code using those variables
}
}
Line 286: Line 286:
}
}
# the actual function call:
# the actual function call:
setPosition( latitude_deg:34.00, longitude_deg:7.00, alt_ft:10000);
setPosition(latitude_deg:34.00, longitude_deg:7.00, alt_ft:10000);
</syntaxhighlight>
</syntaxhighlight>


1,089

edits

Navigation menu