On Mon, Feb 23, 2009 at 3:41 AM, Diogo Kastrup <d...@bighost.com.br> wrote:
>
> I finally got this working with the carrier, here is the patch. Please
> let me know what you guys think about it.

I tested with the bo105 on solid ground first. It doesn't move an inch
with engines shut down. During startup, it doesn't turn either. The
s76c (which has wheels instead of skids) vibrates during startup (we
can call that realistic ;))

Next I tried starting on the carrier, but it does divide by zero:

Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread 0x7fb972dda730 (LWP 5819)]
0x00000000006c9102 in yasim::Math::unit3 (v=0x7fff7af0b210,
out=0x7fff7af0b0f0)    at src/FDM/YASim/Math.cpp:153
153         float imag = 1/mag3(v);
(gdb) x/3f v
0x7fff7af0b210: 0       0       0
(gdb) bt
#0  0x00000000006c9102 in yasim::Math::unit3 (v=0x7fff7af0b210,
out=0x7fff7af0b0f0)    at src/FDM/YASim/Math.cpp:153
#1  0x00000000006bac8d in yasim::Gear::calcFriction
(this=0x7fb96706b1a0, stuck=0x7fff7af0b1b0, cv=0x7fff7af0b210,
steer=0x7fff7af0b1e0, skid=0x7fff7af0b1d0, wgt=1389.40247,
force=0x7fff7af0b1c0) at src/FDM/YASim/Gear.cpp:580
#2  0x00000000006bc73f in yasim::Gear::calcForce (this=0x7fb96706b1a0,
g_cb=0x939b930, body=0x93758a8, s=0x7fff7af0b5c0, v=0x7fff7af0b460,
rot=0x7fff7af0b470) at src/FDM/YASim/Gear.cpp:477
#3  0x00000000006ca0b5 in yasim::Model::calcForces (this=0x9375818,
s=0x7fff7af0b5c0)    at src/FDM/YASim/Model.cpp:489
#4  0x00000000006c67c0 in yasim::Integrator::calcNewInterval
(this=0x9375820)    at src/FDM/YASim/Integrator.cpp:177
#5  0x00000000006cac03 in yasim::Model::iterate (this=0x9375818) at
src/FDM/YASim/Model.cpp:165
#6  0x00000000006ae0bb in yasim::Airplane::iterate (this=0x9375818,
dt=0.00833333377)    at src/FDM/YASim/Airplane.cpp:101
#7  0x00000000006b8c56 in yasim::FGFDM::iterate (this=0x9375810,
dt=0.00833333377)    at src/FDM/YASim/FGFDM.cpp:92
#8  0x00000000006a8fd7 in YASim::update (this=0x9308770,
dt=0.09166666666666666)    at src/FDM/YASim/YASim.cxx:222

Apparently it happens because I have the carrier stationary. Setting
it into motion, the bo105 starts up fine. With the s76c the carrier
sails out from underneath even with the parking brake on (which is the
default). With the v22, it only happens with the brakes off, which
seems right. Setting the wind so that it cancels out the relative wind
due to motion makes the v22 stay in place even with brakes off.
Haven't tried maneuvering the Nimitz yet.

The s76c problem might be an aircraft specific issue and the
zero-speed carrier error sounds easy to fix. All in all it looks quite
good so far.

-- 
Thanks,
Csaba/Jester

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to