User Tools

Site Tools


aircraft:tmd:airbrake

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
aircraft:tmd:airbrake [2017/01/23 23:13] jhaircraft:tmd:airbrake [2018/09/30 13:24] – [Example Code] jh
Line 5: Line 5:
 === Other Aerodynamic classes === === Other Aerodynamic classes ===
  
-[[aerowing]], [[airfoil]], [[aerofuselage]], [[propeller]], [[aerodrag]], [[bladeforce]], [[bodyaerodynamics]]+[[aerowing]], [[airfoil]], [[aerofuselage]], [[propeller]], [[aerodrag]], [[bladeforce]]
  
 ===== Function Description ===== ===== Function Description =====
Line 18: Line 18:
   * ''Control'' is the dynamic input values between ''0.0'' and ''1.0'' that scales the Area linearly   * ''Control'' is the dynamic input values between ''0.0'' and ''1.0'' that scales the Area linearly
   * ''X0'' is the direction of the airbrake where it is acting (usually this is the x-axis but it could also be pointing upwards.   * ''X0'' is the direction of the airbrake where it is acting (usually this is the x-axis but it could also be pointing upwards.
 +  * rho is the air density at the Body.R position in the world (+R0 properly rotated with the Body orientation as far as the author of this text wants to believe)
  
 Then the calculated drag is acted upon the ''Body'' at the ''R0'' location along the ''X0'' axis. The real formula used may be a lot more complex to account for the rotation speed of the ''Body''. Then the calculated drag is acted upon the ''Body'' at the ''R0'' location along the ''X0'' axis. The real formula used may be a lot more complex to account for the rotation speed of the ''Body''.
Line 23: Line 24:
 ===== Example Code ===== ===== Example Code =====
 > **Caution**: Requires a [[rigidbody]] with the name ''Fuselage'' > **Caution**: Requires a [[rigidbody]] with the name ''Fuselage''
-        <[string8][object][airbrake] + 
-            <[string8][Name][Airbrake]> +<code>            <[airbrake][Airbrake][] 
-            <[string8][Body][Fuselage]> +                <[string8][Body][Fuselage]> 
-            <[tmvector3d][R0][0.0 0.0 0.0]> +                <[tmvector3d][R0][ 0.0 0.0 0.0 ]> 
-            <[tmvector3d][X0][1.0 0.0 0.0]> +                <[tmvector3d][X0][ 1.0 0.0 0.0 ]> 
-            <[float64][Cd][2]> +                <[float64][Cd][1.5]> 
-            <[float64][Area][1.0]> +                <[float64][Area][1.0]> 
-            <[string8][Control][ServoAirbrake.Output]> +                <[string8][Control][ServoAirbrake.Output]> 
-        >+            ></code>
  
aircraft/tmd/airbrake.txt · Last modified: 2019/07/07 10:50 by jh