How to downgrade PX4 from the latest version to v1.13.0

I’m trying to run the global_planner_node of PX4/PX4-avoidance, but it only works with previous px4 versions.
I already built px4 with the latest version, but when I switch to v1.13.0 by

git checkout tags/v1.13.0

then run

make px4_sitl gazebo-classic

I got

ninja: error: unknown target ‘gazebo-classic’

When I switch back to the latest version, it works.

I’m running PX4 on Ubuntu 20.04, and I’m wondering is there a good way to downgrade px4 to older versions?

Hi @Zack_zed
Please, try this

1 Like

Hi Benja, thank you for your help!
I just found that the problem happens because previous versions does not have gazebo-classic, but I can run

make px4_sitl_default gazebo

instead. It then sucessfully built.