int ret = 0;
app_data *ad = data;
+ _D("-----------------------=======================================================================-----------------------");
+ _D("-----------------------=======================================================================-----------------------");
+ _D("-----------------------============================== APP %s %s ==============================-----------------------", __DATE__, __TIME__);
+ _D("-----------------------=======================================================================-----------------------");
+ _D("-----------------------=======================================================================-----------------------");
+
/*
* if you want to use default configuration,
* Do not need to call resource_set_motor_driver_L298N_configuration(),
}
#endif
+ resource_lap_counter_init();
+
_initialize_components(ad);
cloud_communication_start(CLOUD_REQUESTS_FREQUENCY);
resource_set_servo_motor_value(ELEVATION_SERVO_PIN, ELEVATION_MIN);
resource_set_servo_motor_value(AZIMUTH_SERVO_PIN, (AZIMUTH_MIN + AZIMUTH_MAX) / 2);
+ resource_lap_counter_destroy();
+
if (ad->idle_h)
g_source_remove(ad->idle_h);