get_pitch()Description#This is a getter function that gets the value of the pitch variable.Syntax#Python: get_pitch() Arduino: getPitch()Parameters#NoneReturns#The power of the pitch variable (int)Example Code#Python##Python codeimport CoDrone drone = CoDrone.CoDrone()drone.pair() # Print current pitch with getter functionprint(“Current pitch : ”, drone.get_pitch())drone.close()CopyArduino#//Arduino code#include<CoDrone.h> //header void setup(){ //open serial and connect CoDrone.begin(115200); CoDrone.pair(Nearest); // save current pitch value in variable “current_pitch” int current_pitch = CoDrone.getPitch(); }void loop(){ }Copy