After run around this board for sometime, for the second question i might have to use SET_POSITION_TARGET_LOCAL_NED instead of MAV_CMD_TAKEOFF_LOCAL by specified type_mask = (0x1000 | 0b110111000011) and type_mask = (0x2000 | 0b110111000011) for landing
Moreover, I might to need to set non Null speed in SET_POSITION_TARGET_LOCAL_NED for every action.
Please suggest if i understand it wrongly, i’ll test on the copter again tomorrow. However, is there any possible way to convert UDP (from jmavsim) to serial port. i am not successfully connect my c++ code to UDP for test, Although i can connect but nothing move in simulation.
ref.