Ignore:
Timestamp:
Nov 28, 2019, 8:59:49 AM (14 months ago)
Author:
Sanahuja Guillaume
Message:

allow all blade rotations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairSimulator/src/UavVrpnObject_impl.cpp

    r289 r339  
    150150
    151151  fl_blade = new Blade(this, vector3df(70.71, -70.71, 17.5));
    152   fr_blade = new Blade(this, vector3df(70.71, 70.71, 17.5), true);
    153   rl_blade = new Blade(this, vector3df(-70.71, -70.71, 17.5), true);
     152  fr_blade = new Blade(this, vector3df(70.71, 70.71, 17.5),  vector3df(0, 0, 0),true);
     153  rl_blade = new Blade(this, vector3df(-70.71, -70.71, 17.5),  vector3df(0, 0, 0),true);
    154154  rr_blade = new Blade(this, vector3df(-70.71, 70.71, 17.5));
    155155 
    156   fl_blade->SetRotationSpeed(MOTOR_SPEED);
    157   fr_blade->SetRotationSpeed(-MOTOR_SPEED);
    158   rl_blade->SetRotationSpeed(-MOTOR_SPEED);
    159   rr_blade->SetRotationSpeed(MOTOR_SPEED);
     156  fl_blade->SetRotationSpeed(vector3df(0, 0,MOTOR_SPEED));
     157  fr_blade->SetRotationSpeed(vector3df(0, 0,-MOTOR_SPEED));
     158  rl_blade->SetRotationSpeed(vector3df(0, 0,-MOTOR_SPEED));
     159  rr_blade->SetRotationSpeed(vector3df(0, 0,MOTOR_SPEED));
    160160 
    161161  setScale(vector3df(arm_length->Value(), arm_length->Value(), arm_length->Value()));
Note: See TracChangeset for help on using the changeset viewer.