飞机 / 飛機 literally means “flying machine”, which is a really inaccurate colloquial term. It can mean an airplane in its narrow sense, and it can also mean an aircraft in its broader sense, and some people even use this word for a space shuttle! Never use this term if you want to describe accurately.
Some well-educated people believe that the broader sense is "wrong", but who cares? All the native Chinese speakers accept the broader sense except some pedants. You can see many pedants on Stack Exchange, but this is not the real world. Welcome to the real world.
If you want to refer to an aircraft, use the term 航空器.
If you want to refer to an airplane, use the term 定翼机 / 定翼機.
If you want to refer to rotorcrafts, use the term 旋翼机 / 旋翼機, which include helicopters, or 直升机 / 直升機 in Chinese.
If you want to refer to a ornithopter, use the term 扑翼机 / 撲翼機.