孔洞逻辑完成
This commit is contained in:
@@ -233,13 +233,13 @@ class DevicesCubit extends Cubit<DevicesState> {
|
||||
required ReferencePoint reference,
|
||||
required int heading,
|
||||
required OuterBoundary outer,
|
||||
required List<HoleBoundary> holes,
|
||||
required Map<String, HoleBoundary> holes,
|
||||
required int workType,
|
||||
}) async {
|
||||
holes.asMap().forEach((index, hole) {
|
||||
final pointsStr = hole.position.map((p) => "(${p.lat.toStringAsFixed(6)}, ${p.lon.toStringAsFixed(6)})").join(', ');
|
||||
debugPrint('第${index + 1}组holes:$pointsStr');
|
||||
});
|
||||
//holes.asMap().forEach((index, hole) {
|
||||
// final pointsStr = hole.position.map((p) => "(${p.lat.toStringAsFixed(6)}, ${p.lon.toStringAsFixed(6)})").join(', ');
|
||||
// debugPrint('第${index + 1}组holes:$pointsStr');
|
||||
//});
|
||||
emit(state.copyWith(isLoading: true));
|
||||
final result = await _generatePathUseCase.execute(reference: reference, heading: heading, outer: outer, holes: holes, workType: workType);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user