Changing Roles
You can switch between roles (or assume a role if you don’t already have one), but this change must occur at the start of a round before the engineering phase. You can switch to the captain or pilot role only if that role would otherwise be vacant (or if the character in that role is unable to take actions).
Source
Core Rulebook pg. 322