A 1.29-gram flapping-wing robot used onboard sensing and computation to avoid obstacles and land on a sunflower without external motion tracking. The 30-second test achieved centimetre-scale positioning, but a human supplied high-level commands and the robot still relied on wired power.