AS + E-wing + asteroid

By Quendil, in X-Wing Rules Questions

If an E-Wing with Advanced Sensors has landed on an asteroid, can it use the AS to do a barrelroll before it moves the next turn?

You've also got to make sure your template doesn't overlap part of the asteroid.