“…The return and power stroke positions are plotted as positions in the anterior-posterior axis, and step direction is plotted as the difference from the mean when the fly was not turning (two-way ANOVA with legs and pivot/swerve as factors: return stroke: pivot/swerve p=3.68×10 -15 , interaction between pivot/swerve and leg identity: p=0.0198; power stroke: pivot/swerve p=1.75×10 -27 , interaction between pivot/swerve and leg identity: p=0.794; post-hoc Tukey-Kramer tests show a significant difference between pivots and swerves (Table S1); step direction: parametric Watson-Williams multi-sample test for equal means, comparing pivot/swerve for each leg, out-front: p = 2.22×10 -16 , out-mid: p=2.22×10 -16 ; out-hind: p=0.445; in-front: p=4.13×10 -12 ; in-mid: p=9.94×10 -5 ; in-hind: p = 0.140). n = 389 (64) and 155 (53) bouts (flies) for pivots and swerves, respectively. In ascending order of rotational velocity: out-front [0.0734, 6.67×10 -12 , 0, 1.47×10 -8 ]; out-mid [0.0409, 7.15×10 -18 , 0, 0]; out-hind [0.807, 1.68×10 -4 , 0.00437, 7.18×10 -10 ]; in-front [0.00167, 0, 0, 0]; in-mid [1.00, 0, 0, 0]; in-hind [0.627, 0, 0, 0]…”