I have pinned down the exact moment in gdb when brake-right is set to 1.0
(without a cause, so to speak), but I feel I don't have enough knowledge
about how FG is designed to come further.

gdb backtrace below. This is after initialisation is done, FG is up and
running and the fire button (apply all brakes) is pressed and held. Just
before this br stop, there was another one with the correct value (from the
nasal setprop to 0.3, which I used for testing instead of interpolate() in
the js config file). I have not a clue where this spurious "1.000000" comes
from, nor why it only affects the right wheel brake. It seems like more
than one function has been bound to the button in question, or some list
handler is running amok.

----------


Breakpoint 1, FGControls::set_brake_right (this=0x0, pos=1) at controls.cxx:40
40      {
(gdb) bt
#0  FGControls::set_brake_right (this=0x0, pos=1) at controls.cxx:40
#1  0x080a1624 in SGRawValueMethods<FGControls, double>::setValue (this=0x0, 
value=1)
    at props.hxx:404
#2  0x0848f900 in SGPropertyNode::setUnspecifiedValue (this=0x89fa878,
    value=0x8af39fc "1.000000") at props.cxx:408
#3  0x0805b154 in do_property_assign (arg=0x8af2c70) at fg_commands.cxx:795
#4  0x082f9b92 in FGBinding::fire (this=0xbf4d0f8) at input.cxx:127
#5  0x082f9d8f in FGBinding::fire (this=0xbf4d0f8, offset=1, max=-1) at 
input.cxx:139
#6  0x08301368 in FGInput::_update_button (this=0x4baa9008, [EMAIL PROTECTED],
    modifiers=204483636, pressed=true, x=-1, y=-1) at stl_vector.h:501
#7  0x082ff5c3 in FGInput::_update_joystick (this=0x4baa9008, 
dt=187.94999999999999)
    at input.cxx:811
#8  0x082fa653 in FGInput::update (this=0x4baa9008, dt=187.94999999999999) at 
input.cxx:203
#9  0x084c0698 in SGSubsystemGroup::Member::update (this=0xb966d68,
    delta_time_sec=187.94999999999999) at subsystem_mgr.cxx:237
#10 0x084c0041 in SGSubsystemGroup::update (this=0x891711c, 
delta_time_sec=187.94999999999999)
    at stl_vector.h:501
#11 0x084c0c49 in SGSubsystemMgr::update (this=0x8917100, 
delta_time_sec=187.94999999999999)
    at subsystem_mgr.cxx:297
#12 0x08052b6c in fgMainLoop () at main.cxx:495
#13 0x08088592 in GLUTidle () at fg_os.cxx:114
#14 0x400a4929 in __glutRegisterEventParser () from /usr/X11R6/lib/libglut.so.3
#15 0x400a50ad in glutMainLoop () from /usr/X11R6/lib/libglut.so.3
#16 0x08055567 in fgMainInit (argc=3, argv=0xbffff424) at main.cxx:1007
#17 0x080519d6 in main (argc=3, argv=0xbffff424) at bootstrap.cxx:193
(gdb)

_______________________________________________
Flightgear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to