The Pilot class is mainly a Battlefront term. The pilot class is a class of troopers that are designed to fly ships, mainly starfighters, into battle. The pilots have the ability to heal their ships as they fly, which is a very significant advantage in a space battle.
In Star Wars: Battlefront they are available during any mission and are armed with a pistol and a fusion cutter, with his secondary weapons as detpacks and a health and ammo dispenser. In Star Wars: Battlefront II, the pilot is only available during space battles and is armed with a pistol and a fusion cutter with time bombs as his secondary weapon.