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