|
资料汇编:
计算偏转角度的程序,公式用初中立体几何知识可推导:
SET TEXTMERGE ON
PUBLIC Pi, x
pi = 3.1415926535898
clear
x = 30
x = x * Pi / 180
y = ATAN(1 / ((2 ^ (1/2) * COS(x) * COS(x) / SIN(x)) + 1)) / Pi * 180
? TEXTMERGE("钢丝弯曲角 <<ROUND(x * 180 / Pi, 0)>> 度, 舵面最大偏转角 <<ROUND(y, 2)>> 度")
FOR i = 0 TO 45 STEP 5
j = i * Pi / 180
y = ATAN((SIN(j) * SIN(x)) / (COS(x) * COS(x) + COS(j) * SIN(x)))
y = ROUND(y / Pi * 180, 2)
? TEXTMERGE("舵机偏转角 = <<i>> 度, 舵面偏转角 = <<y>> 度, 速比<<ROUND(y * 100 / i, 2)>>")
NEXT
|
|