Class: CalcSat::Posture

Inherits:
Object
  • Object
show all
Defined in:
lib/calc_sat.rb

Instance Method Summary collapse

Instance Method Details

#torque(m, b_s, y_air, f_air, y_sun, f_sun) ⇒ Object

姿勢



96
97
98
99
100
101
102
103
# File 'lib/calc_sat.rb', line 96

def torque(m,b_s, y_air,f_air, y_sun,f_sun)
  # 外乱トルク
  n_mag = m * b_s
  n_air = y_air * f_air
  n_sun = y_sun * f_sun
  dict = {"n_mag":n_mag, "n_air":n_air, "n_sun":n_sun}
  return dict
end