set_model_attitude Subroutine

private subroutine set_model_attitude(self, q)

Attitude of the model in its frame (quaternion [x, y, z, w]).

Type Bound

Model

Arguments

Type IntentOptional Attributes Name
class(Model), intent(inout) :: self
real(kind=wp), intent(in) :: q(4)

quaternion [x, y, z, w] (normalized here)


Calls

proc~~set_model_attitude~~CallsGraph proc~set_model_attitude Model%set_model_attitude proc~quat_normalize quat_normalize proc~set_model_attitude->proc~quat_normalize proc~update_model_transform update_model_transform proc~set_model_attitude->proc~update_model_transform interface~vkf_transform_set_matrix vkf_transform_set_matrix proc~update_model_transform->interface~vkf_transform_set_matrix proc~frame_matrix frame_matrix proc~update_model_transform->proc~frame_matrix proc~name ReferenceFrame%name proc~update_model_transform->proc~name proc~quat_to_matrix quat_to_matrix proc~frame_matrix->proc~quat_to_matrix

Source Code

    subroutine set_model_attitude(self, q)
        class(Model), intent(inout) :: self
        real(wp), intent(in) :: q(4)                        !! quaternion [x, y, z, w] (normalized here)
        self%model_attitude_ = quat_normalize(q)
        call update_model_transform(self)
    end subroutine set_model_attitude