Skip to content

Commit

Permalink
added: function to send ballon
Browse files Browse the repository at this point in the history
  • Loading branch information
GoutamVerma committed Sep 3, 2022
1 parent a80945c commit ec58c77
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,23 @@ public void sendTourStation(LGCommand.Listener listener,String lon,String lat,St
handler2.postDelayed(() -> lgConnectionManager.addCommandToLG(lgCommandStartTour), 1500);
}, 1000);
}
public void sendBalloonRaw(AppCompatActivity activity,String des,String raw,int rig) {
createResourcesFolder();
double rigs = Math.floor( rig/ 2) + 1;
ActionController.getInstance().sendcleanballloon(activity,(int)rigs);
LGConnectionSendFile lgConnectionSendFile = LGConnectionSendFile.getInstance();
lgConnectionSendFile.startConnection();
cleanFileKMLs(0);

handler.postDelayed(() -> {
LGCommand lgCommand = new LGCommand(ActionBuildCommandUtility.buildCommandBalloonRaw(des,raw,(int)rigs),
LGCommand.CRITICAL_MESSAGE, (String result) -> {
});
LGConnectionManager lgConnectionManager = LGConnectionManager.getInstance();
lgConnectionManager.startConnection();
lgConnectionManager.addCommandToLG(lgCommand);
}, 2000);
}

public void sendOribitfile(AppCompatActivity activity,String lon,String lat,String alti,String des,String name) {
createResourcesFolder();
Expand Down

0 comments on commit ec58c77

Please sign in to comment.