<commit_before>module Vehicles.DreamDebug exposing (dreamDebug)

import Math.Vector3 exposing (..)
import Math.Vector3 as V3
import Orientation exposing (..)
import Model


----------------------------------------------------------------------
-- DreamDebug


dreamDebug : Model.Vehicle
dreamDebug =
    { init = welcome
    , move = move
    }



-- | Welcome a new driver to debug


welcome : Model.Motion -> Model.Motion
welcome motion =
    motion


move : Maybe Vec3 -> Model.EyeLevel -> Model.Inputs -> Model.Motion -> Model.Motion
move _ eyeLevel inputs motion =
    motion
        |> fly eyeLevel inputs
        |> flyPhysics eyeLevel inputs.dt



-- http://www.dtic.mil/dtic/tr/fulltext/u2/a152616.pdf


fly : Model.EyeLevel -> Model.Inputs -> Model.Motion -> Model.Motion
fly eyeLevel inputs motion =
    let
        thrust =
            inputs.y

        yaw =
            -5 * inputs.x * inputs.dt
<commit_msg>DreamDebug: cleanup<commit_after>module Vehicles.DreamDebug exposing (dreamDebug)

import Math.Vector3 exposing (..)
import Math.Vector3 as V3
import Orientation exposing (..)
import Model


----------------------------------------------------------------------
-- DreamDebug


move : Model.EyeLevel -> Model.Inputs -> Model.Motion -> Model.Motion
move eyeLevel inputs motion =
    motion
        |> fly eyeLevel inputs
        |> flyPhysics eyeLevel inputs.dt



-- http://www.dtic.mil/dtic/tr/fulltext/u2/a152616.pdf


fly : Model.EyeLevel -> Model.Inputs -> Model.Motion -> Model.Motion
fly eyeLevel inputs motion =
    let
        thrust =
            inputs.y

        yaw =
            -5 * inputs.x * inputs.dt

{'fraction_non_alphanumeric': 0.18048780487804877, 'fraction_numerical': 0.01402439024390244, 'mean_word_length': 1.83419689119171, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5878867', 'n_tokens_mistral': 506, 'n_tokens_neox': 458, 'n_words': 122}