From 7986caf75b8bbdb49a36d439fccae64862ec79b2 Mon Sep 17 00:00:00 2001 From: andy Date: Fri, 25 May 2007 22:58:04 +0000 Subject: [PATCH] Maik: place the contact points at the rotor blade tips (center+radius), not at center+diameter --- src/FDM/YASim/Rotor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FDM/YASim/Rotor.cpp b/src/FDM/YASim/Rotor.cpp index 486f43ce1..717cbb110 100644 --- a/src/FDM/YASim/Rotor.cpp +++ b/src/FDM/YASim/Rotor.cpp @@ -965,8 +965,8 @@ void Rotor::compile() float help[3]; float s = Math::sin(pi*2*_num_ground_contact_pos/i); float c = Math::cos(pi*2*_num_ground_contact_pos/i); - Math::mul3(c*_diameter,directions[0],_ground_contact_pos[i]); - Math::mul3(s*_diameter,directions[1],help); + Math::mul3(c*_diameter*0.5,directions[0],_ground_contact_pos[i]); + Math::mul3(s*_diameter*0.5,directions[1],help); Math::add3(help,_ground_contact_pos[i],_ground_contact_pos[i]); Math::add3(_base,_ground_contact_pos[i],_ground_contact_pos[i]); }