get_trim()Description#This function gets the current trim values of the drone.Syntax#get_trim()Parameters#NoneReturns#It returns a Trim class in PythonExample Code#Python##Python codeimport CoDrone_mini drone = CoDrone_mini.CoDrone()drone.pair() # print the pressuretrim = drone.get_trim()print(trim)print(trim.ROLL, trim.PITCH, trim.YAW, trim.THROTTLE)drone.close()Copy