MAVlink altitude command for copter

Hi everyone, Is there a way to send altitude commands to a 3DR drone via MAVlink during flight? I want to adjust the altitude based on visual input when tracking an object. I know there are commands like MAV_CMD_CONDITION_YAW - I need a command like this to change the altitude. I also need a flight mode not dependent on GPS.

Thanks!

There’s MAV_CMD_DO_CHANGE_ALTITUDE, but I don’t think it’s implemented.

Hmm, ok. I need a flight mode not dependent on GPS which can accept MAVLink commands. What is the best flight mode for me to use? Ideally, this would include MAVLink commands that change the altitude. I could possibly use a command to change the pitch instead. Is there a command to change the pitch or any way to change the altitude?

Thanks!