AP_GPS: added comments in GPS_AUTO_test example sketch
Added comments in libraries/AP_GPS/examples/GPS_AUTO_text/GPS_AUTO_test.cpp file
AP_GPS: added comments to GPS_AUTO_test example sketch
Added comments in libraries/AP_GPS/examples/GPS_AUTO_text/GPS_AUTO_test.cpp file
AP_GPS: added comments to GPS_AUTO_test example sketch
AP_GPS: add comments to GPS_AUTO_text example sketch
AP_GPS: added comments in GPS_AUTO_test example sketch
#include<AP_HAL/AP_HAL.h> //This is a common Hardware Abstraction Layer.
#include<AP_GPS/AP_GPS.h>
#include<GCS_MAVLink/GCS_Dummy.h>
#include<AP_Notify/AP_Notify.h>
@ -24,10 +24,10 @@
@@ -24,10 +24,10 @@
#include<AP_SerialManager/AP_SerialManager.h>
#include<AP_BoardConfig/AP_BoardConfig.h>
voidsetup();
voidloop();
voidsetup();//This function is defined in most of the libraries. This function is called only once at boot up time. This function is called by main() function in HAL.
voidloop();//This function is defined in most of the libraries. This function is called by main function in HAL. The main work of the sketch is typically in this function only.
constAP_HAL::HAL&hal=AP_HAL::get_HAL();
constAP_HAL::HAL&hal=AP_HAL::get_HAL();//Declare "hal" reference variable. This variable is pointing to Ap_HAL::HAL class's object. Here, AP_HAL is library and HAL is a class in that library. This reference variable can be used to get access to hardware specific functions.