@@ -122,7 +122,7 @@ function set_cl_cd!(s::AKM, alpha)
122122 nothing
123123end
124124
125- # Calculate the angle of attack alpha from the apparend wind velocity vector
125+ # Calculate the angle of attack alpha from the apparent wind velocity vector
126126# v_app and the z unit vector of the kite reference frame.
127127function calc_alpha (v_app, vec_z)
128128 π/ 2.0 - acos (- (v_app ⋅ vec_z) / norm (v_app))
@@ -353,14 +353,15 @@ end
353353"""
354354 calculate_rotational_inertia!(s::AKM, include_kcu::Bool=true, around_kcu::Bool=false)
355355
356- Calculate the rotational inertia (Ixx, Ixy, Ixz, Iyy, Iyz, Izz) for a kite model from settings. Modifies the kitemodel by initialising the masses.
356+ Calculate the rotational inertia (Ixx, Ixy, Ixz, Iyy, Iyz, Izz) for a kite model from settings.
357+ Modifies the kite model by initializing the masses.
357358
358359Parameters:
359360- X: x-coordinates of the point masses.
360361- Y: y-coordinates of the point masses.
361362- Z: z-coordinates of the point masses.
362363- M: masses of the point masses.
363- - `include_kcu`: Include the kcu in the rotational intertia calculation?
364+ - `include_kcu`: Include the kcu in the rotational inertia calculation?
364365- `around_kcu`: Uses the kcu as the rotation point.
365366
366367Returns:
403404# mutable struct SysState{P}
404405# "time since start of simulation in seconds"
405406# time::Float64
406- # "time needed for one simulation timestep "
407+ # "time needed for one simulation time-step "
407408# t_sim::Float64
408409# "state of system state control"
409410# sys_state::Int16
@@ -590,7 +591,7 @@ function init!(s::AKM; stiffness_factor=0.5, delta=0.0001, prn=false)
590591 integrator = OrdinaryDiffEqCore. init (prob, solver; abstol= abstol, reltol= s. set. rel_tol, save_everystep= false ,
591592 initializealg= OrdinaryDiffEqCore. NoInit ())
592593 if isa (s, KPS4)
593- roll , pitch, yaw = orient_euler (s)
594+ _ , pitch, _ = orient_euler (s)
594595 s. pitch_rate = 0
595596 s. pitch = pitch
596597 set_initial_velocity! (s)
@@ -648,7 +649,7 @@ function next_step!(s::AKM, integrator; set_speed = nothing, set_torque=nothing,
648649 end
649650 end
650651 if isa (s, KPS4)
651- roll , pitch, yaw = orient_euler (s)
652+ _ , pitch, _ = orient_euler (s)
652653 s. pitch_rate = (pitch - s. pitch) / dt
653654 s. pitch = pitch
654655 end
0 commit comments