Homework Implementation Done!
two majors tasks for homework
https://drive.google.com/file/d/1i5aTIrvdZeb1XdTKacR0UgeFsLemsyIH/view?usp=sharing
I modified the code such that the VTOL stays in MC+offboard and goes around a square waypoint (4waypoints), then changes to FW+mission mode to go around a wide circular waypoints then go back home. (8mission waypoints + 1 land = 9 waypoints)

squarewaypoints in mc

huge circle in fw
We can notice that the circle is not smooth and looks angular, this is a characteristic of mission mode. Unlike offboard mode that updates position value very frequently(ex.2Hz), mission mode appends a set of waypoints to PX4 and those waypoints are followed. So when we move in a circle the waypoints are not smooth

zip file of working package
Working final nodes