|
@@ -45,6 +45,8 @@ MainWindow::MainWindow(QWidget *parent) :
|
|
|
decition_debug.set_wheelangle(5);
|
|
|
decition_debug.set_torque(1);
|
|
|
decition_debug.set_brake(2);
|
|
|
+ decition_debug.set_leftlamp(0);
|
|
|
+ decition_debug.set_rightlamp(0);
|
|
|
|
|
|
}
|
|
|
|
|
@@ -105,6 +107,21 @@ void MainWindow::ShareChassisDebug()
|
|
|
char * str = new char[nsize];
|
|
|
std::shared_ptr<char> pstr;
|
|
|
pstr.reset(str);
|
|
|
+ if(ui->left_turn->isChecked())
|
|
|
+ {
|
|
|
+ decition_debug.set_leftlamp(1);
|
|
|
+ decition_debug.set_rightlamp(0);
|
|
|
+ }
|
|
|
+ else if(ui->right_turn->isChecked())
|
|
|
+ {
|
|
|
+ decition_debug.set_leftlamp(0);
|
|
|
+ decition_debug.set_rightlamp(1);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ decition_debug.set_leftlamp(0);
|
|
|
+ decition_debug.set_rightlamp(0);
|
|
|
+ }
|
|
|
if(decition_debug.SerializeToArray(str,nsize))
|
|
|
{
|
|
|
if(ui->start_send->isChecked())
|
|
@@ -155,3 +172,26 @@ void MainWindow::on_brake_valueChanged(double arg1)
|
|
|
decition_debug.set_brake(arg1);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+void MainWindow::on_left_turn_clicked()
|
|
|
+{
|
|
|
+
|
|
|
+}
|
|
|
+void MainWindow::on_left_turn_clicked(bool checked)
|
|
|
+{
|
|
|
+// if(checked)
|
|
|
+// {
|
|
|
+// decition_debug.set_leftlamp(1);
|
|
|
+// decition_debug.set_rightlamp(0);
|
|
|
+// }
|
|
|
+// else
|
|
|
+// decition_debug.set_leftlamp(0);
|
|
|
+}
|
|
|
+
|
|
|
+void MainWindow::on_right_turn_clicked(bool checked)
|
|
|
+{
|
|
|
+// if(checked)
|
|
|
+// decition_debug.set_rightlamp(1);
|
|
|
+// else
|
|
|
+// decition_debug.set_rightlamp(0);
|
|
|
+}
|