public obstacle_list_s(string name, waypoint_s wp, double rad) { this.ob.name = name; this.ob.center = wp; this.ob.rad = rad; this.isChecked = true; }
public obstacle_s(string name, waypoint_s wp, double rad) { this.name = name; this.center = wp; this.rad = rad; }
private static void write_waypoint(StreamWriter file, waypoint_s wp, int prev) { string pre = ""; for (int i = 0; i < prev; i++) { pre += " "; } file.WriteLine(pre + "<waypoint>"); file.WriteLine(pre + "name: " + wp.name); file.WriteLine(pre + "latitude: " + wp.lat.ToString("F7", culture)); // 7 digits are sufficient, as any more digits get cut away in the firmware file.WriteLine(pre + "longitude: " + wp.lon.ToString("F7", culture)); file.WriteLine(pre + "<end_waypoint>"); }