dbaldwin / DronePan

DronePan - 360 aerial panoramas with DJI Inspire 1, Phantom 3/4, Mavic Pro and Osmo
http://www.dronepan.com
Other
104 stars 32 forks source link

Matrice gimbal yaw error #82

Closed chrissearle closed 7 years ago

chrissearle commented 7 years ago

We're not doing relative checks for the matrice 600 for gimbal yaw movement.

See https://gist.github.com/dbaldwin/fc277a6d3ed3ad71fa242279a54e9cc4

See this function in ControllerUtils

class func gimbalYawIsRelativeToAircraft(model: String?) -> Bool {
    if let model = model {
        return ControllerUtils.isPhantom4(model) || ControllerUtils.isInspire(model)
    } else {
        return false
    }
}

Not sure if this needs an "isMatrice()" call or an "isMatrice600()" call - not sure if the M100 is the same as the M600. Likely it is - but I don't know for sure.