Skip to content

Commit

Permalink
Fix bug with prop location in blownwing example
Browse files Browse the repository at this point in the history
  • Loading branch information
EdoAlvarezR committed Jan 8, 2024
1 parent 2049986 commit efe1057
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/blownwing/blownwing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ for ri in 1:nrotors

# Account for angle of attack of wing
nrm = sqrt(x^2 + z^2)
x = nrm*cosd(AOAwing)
z = -nrm*sind(AOAwing)
x = (x==0 ? 1 : sign(x))*nrm*cosd(AOAwing)
z = -(z==0 ? 1 : sign(z))*nrm*sind(AOAwing)

# Translate rotor to its position along wing
O = [x, y, z] # New position
Expand Down

0 comments on commit efe1057

Please sign in to comment.