Changeset 82:079bc25d8b0e

Show
Ignore:
Timestamp:
06/29/09 18:26:45 (14 months ago)
Author:
turtle@…
Branch:
default
Tags:
tip
Message:

?? ??????? ????????????? ??????.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • implementation/controller.lisp

    r81 r82  
    144144          (for p-radius previous radius) 
    145145          (unless (first-iteration-p) 
    146             (when (funcall (if (< r-1 r-2) '< '>) radius p-radius) 
     146            (when  
     147              (and (< (abs (- r-2 radius)) 1) 
     148                   (funcall (if (< r-1 r-2) '< '>) radius p-radius)) 
    147149              (format t "R-1:~a, R-2:~a, R:~a, PR:~a~%" r-1 r-2 radius p-radius) 
    148150              (multiple-value-bind (t-x t-y) (tangent-vector (2d-vector-x position) (2d-vector-y position) rotation) 
     
    181183         (orbit-diff (- target-orbit our-orbit)) 
    182184         (orbit-delta (/ orbit-diff 2))) 
    183     (hohmann-change-circular-orbit c (+ our-orbit (* orbit-delta 1))) 
    184     (skip-n-turns c 1000) 
    185 ;    (hohmann-change-circular-orbit c (+ our-orbit (* orbit-delta 2))) 
    186 ;    (hohmann-change-circular-orbit c (+ our-orbit (* orbit-delta 3))) 
    187 ;    (hohmann-change-circular-orbit c (+ our-orbit (* orbit-delta 4))) 
    188 ;    (hohmann-change-circular-orbit c (+ our-orbit (* orbit-delta 5))) 
    189 ;    (hohmann-change-circular-orbit c (+ our-orbit (* orbit-delta 6))) 
    190 ;    (hohmann-change-circular-orbit c (+ our-orbit (* orbit-delta 7))) 
    191 ;    (hohmann-change-circular-orbit c (+ our-orbit (* orbit-delta 8))) 
    192 ;    (hohmann-change-circular-orbit c (+ our-orbit (* orbit-delta 9))) 
     185;    (hohmann-change-circular-orbit c (+ our-orbit (* orbit-delta 1))) 
    193186    (hohmann-change-circular-orbit c target-orbit)) 
    194187  (skip-turns c))