def __str__(self):
        prefix=""

        if(self.autopilot_type == mavutil.mavlink.MAV_AUTOPILOT_ARDUPILOTMEGA):
            prefix += "APM:"
        elif(self.autopilot_type == mavutil.mavlink.MAV_AUTOPILOT_PX4):
            prefix += "PX4"
        else:
            prefix += "UnknownAutoPilot"

        if(self.vehicle_type == mavutil.mavlink.MAV_TYPE_QUADROTOR):
            prefix += "Copter-"
        elif(self.vehicle_type == mavutil.mavlink.MAV_TYPE_FIXED_WING):
            prefix += "Plane-"
        elif(self.vehicle_type == mavutil.mavlink.MAV_TYPE_GROUND_ROVER):
            prefix += "Rover-"
        else:
            prefix += "UnknownVehicleType%d-" % (self.vehicle_type)

        if self.release_type() is None:
            release_type = "UnknownReleaseType"
        elif self.is_stable():
            release_type = ""
        else:
            # e.g. "-rc23"
            release_type = "-" + str(self.release_type()) + str(self.release_version())

        return prefix + "%s.%s.%s" % (self.major, self.minor, self.patch) + release_type
dataset/ETHPy150Open dronekit/dronekit-python/dronekit/__init__.py/Version.__str__/original