private DynamicGraph CreateSineGraph() { DynamicGraph graph = new DynamicGraph(); string sineString = SineData.ToString(); DataParser parser = new DataParser(sineString); List <float> x_values = parser.GetListFromColumn(0); // lat List <float> y_values = parser.GetListFromColumn(1); // alt List <float> z_values = parser.GetListFromColumn(2); // long PlotPoint new_point = new PlotPoint(x_values, y_values, z_values); graph.AddPlotPoint(new_point); return(graph); }
private DynamicGraph CreateDroneGraph() { DynamicGraph graph = new DynamicGraph(); string droneString = DroneData.ToString(); DataParser parser = new DataParser(droneString); List <float> x_values = parser.GetListFromColumn(4); // lat List <float> y_values = parser.GetListFromColumn(2); // alt List <float> z_values = parser.GetListFromColumn(3); // long List <string> time_values = parser.GetTimePoints(1); // time PlotPoint new_point = new PlotPoint(x_values, y_values, z_values); graph.AddPlotPoint(new_point); graph.AddTimePoints(time_values); return(graph); }