can work again.
Removed a bit of debugging output when reading "native" IO input.
fgTie("/environment/wind-down", getWindDown, setWindDown);
// View
+ fgTie("/sim/field-of-view", getFOV, setFOV);
fgTie("/sim/view/axes/long", (double(*)())0, setViewAxisLong);
fgTie("/sim/view/axes/lat", (double(*)())0, setViewAxisLat);
// View.
////////////////////////////////////////////////////////////////////////
+double
+FGBFI::getFOV ()
+{
+ globals->get_current_view()->get_fov();
+}
+
+void
+FGBFI::setFOV (double fov)
+{
+ globals->get_current_view()->set_fov( fov );
+}
+
void
FGBFI::setViewAxisLong (double axis)
{
static void setWindDown (double speed); // feet/second
// View
+ static double getFOV (); // degrees
+ static void setFOV (double fov); // degrees
static void setViewAxisLong (double axis);// -1.0:1.0
static void setViewAxisLat (double axis); // -1.0:1.0
} else if ( get_direction() == SG_IO_IN ) {
if ( io->get_type() == sgFileType ) {
if ( io->read( (char *)(& buf), length ) == length ) {
- FG_LOG( FG_IO, FG_ALERT, "Success reading data." );
+ FG_LOG( FG_IO, FG_DEBUG, "Success reading data." );
*cur_fdm_state = buf;
}
} else {
while ( io->read( (char *)(& buf), length ) == length ) {
- FG_LOG( FG_IO, FG_ALERT, "Success reading data." );
+ FG_LOG( FG_IO, FG_DEBUG, "Success reading data." );
*cur_fdm_state = buf;
}
}