完成远程控制页面中点火和熄火的长按选中类别的业务层-待测试
完成远程控制页面中割刀的长按选中类别的操作业务层-待测试 完成远程控制页面中地盘的长按选中类别的操作-待测试
This commit is contained in:
@@ -131,17 +131,17 @@ class CenterControlArea extends StatelessWidget {
|
||||
case "start":
|
||||
debugPrint('⬆️ 底盘 - 向上(例如:前进)');
|
||||
// TODO: 发送底盘前进指令
|
||||
// cubit.sendChassisCommand(ChassisCommand.forward);
|
||||
cubit.sendChassisCommand(1);
|
||||
break;
|
||||
case "center":
|
||||
debugPrint('️ 底盘 - 中间(例如:停止)');
|
||||
// TODO: 发送底盘停止指令
|
||||
// cubit.sendChassisCommand(ChassisCommand.stop);
|
||||
cubit.sendChassisCommand(0);
|
||||
break;
|
||||
case "end":
|
||||
debugPrint('⬇️ 底盘 - 向下(例如:后退)');
|
||||
// TODO: 发送底盘后退指令
|
||||
// cubit.sendChassisCommand(ChassisCommand.backward);
|
||||
cubit.sendChassisCommand(2);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -154,17 +154,17 @@ class CenterControlArea extends StatelessWidget {
|
||||
case "start":
|
||||
debugPrint('⬆️ 割刀 - 向上(例如:抬刀)');
|
||||
// TODO: 发送抬刀指令
|
||||
// cubit.sendMowerCommand(MowerCommand.lift);
|
||||
cubit.sendMowerCommand(1);
|
||||
break;
|
||||
case "center":
|
||||
debugPrint('⏹️ 割刀 - 中间(例如:保持)');
|
||||
// TODO: 发送保持指令
|
||||
// cubit.sendMowerCommand(MowerCommand.hold);
|
||||
cubit.sendMowerCommand(0);
|
||||
break;
|
||||
case "end":
|
||||
debugPrint('⬇️ 割刀 - 向下(例如:降刀)');
|
||||
// TODO: 发送降刀指令
|
||||
// cubit.sendMowerCommand(MowerCommand.lower);
|
||||
cubit.sendMowerCommand(2);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user