something and stuff
This commit is contained in:
+42
-8
@@ -6,7 +6,7 @@
|
|||||||
<coordinates>
|
<coordinates>
|
||||||
<x>120</x>
|
<x>120</x>
|
||||||
<y>670</y>
|
<y>670</y>
|
||||||
<w>210</w>
|
<w>220</w>
|
||||||
<h>510</h>
|
<h>510</h>
|
||||||
</coordinates>
|
</coordinates>
|
||||||
<panel_attributes><<hardware>>
|
<panel_attributes><<hardware>>
|
||||||
@@ -46,9 +46,9 @@ MotorControl
|
|||||||
<element>
|
<element>
|
||||||
<id>UMLClass</id>
|
<id>UMLClass</id>
|
||||||
<coordinates>
|
<coordinates>
|
||||||
<x>380</x>
|
<x>360</x>
|
||||||
<y>670</y>
|
<y>670</y>
|
||||||
<w>210</w>
|
<w>220</w>
|
||||||
<h>330</h>
|
<h>330</h>
|
||||||
</coordinates>
|
</coordinates>
|
||||||
<panel_attributes><<hardware>>
|
<panel_attributes><<hardware>>
|
||||||
@@ -77,13 +77,47 @@ Speedometer
|
|||||||
<element>
|
<element>
|
||||||
<id>UMLClass</id>
|
<id>UMLClass</id>
|
||||||
<coordinates>
|
<coordinates>
|
||||||
<x>900</x>
|
<x>120</x>
|
||||||
<y>660</y>
|
<y>270</y>
|
||||||
<w>210</w>
|
<w>270</w>
|
||||||
|
<h>370</h>
|
||||||
|
</coordinates>
|
||||||
|
<panel_attributes>MoveControl
|
||||||
|
--
|
||||||
|
- debug: DebugMqtt*
|
||||||
|
- left_motor: MotorControl*
|
||||||
|
- right_motor: MotorControl*
|
||||||
|
- left_speedometer: Speedometer*
|
||||||
|
- right_speedometer: Speedometer*
|
||||||
|
- driving_status: DrivingStatus = stop
|
||||||
|
- x_speed: double = 0
|
||||||
|
- rotation_speed: double = 0
|
||||||
|
- wheelspeed_left_target: double = 0
|
||||||
|
- wheelspeed_right_target: double = 0
|
||||||
|
--
|
||||||
|
+ MoveControl()
|
||||||
|
+ init(left_motor: MotorControl*,
|
||||||
|
right_motor: MotorControl*,
|
||||||
|
left_speedometer: Speedometer*,
|
||||||
|
right_speedometer: Speedometer*)
|
||||||
|
+ runMoveControl()
|
||||||
|
+ setDrivingStatus(status: DrivingStatus)
|
||||||
|
+ setSpeed(speed: double)
|
||||||
|
+ setRotationspeed(speed: double)
|
||||||
|
- calcWheelSpeed()
|
||||||
|
- regulateMotors()</panel_attributes>
|
||||||
|
<additional_attributes/>
|
||||||
|
</element>
|
||||||
|
<element>
|
||||||
|
<id>UMLClass</id>
|
||||||
|
<coordinates>
|
||||||
|
<x>1110</x>
|
||||||
|
<y>670</y>
|
||||||
|
<w>220</w>
|
||||||
<h>330</h>
|
<h>330</h>
|
||||||
</coordinates>
|
</coordinates>
|
||||||
<panel_attributes><<hardware>>
|
<panel_attributes><<driveModi>>
|
||||||
Speedometer
|
ManualContro
|
||||||
--
|
--
|
||||||
- encoder: ESP32Encoder
|
- encoder: ESP32Encoder
|
||||||
- debug: DebugMqtt*
|
- debug: DebugMqtt*
|
||||||
|
|||||||
+2
-10
@@ -9,19 +9,11 @@
|
|||||||
#include "debugMqtt.h"
|
#include "debugMqtt.h"
|
||||||
|
|
||||||
enum DrivingStatus {stop,
|
enum DrivingStatus {stop,
|
||||||
straightForward,
|
forward,
|
||||||
straightBackward,
|
backward,
|
||||||
arcForwardLeft,
|
|
||||||
arcForwardRight,
|
|
||||||
arcBackwardLeft,
|
|
||||||
arcBackwardRight,
|
|
||||||
rotateLeft,
|
rotateLeft,
|
||||||
rotateRight};
|
rotateRight};
|
||||||
|
|
||||||
// enum regulateStatus {stop,
|
|
||||||
// drive,
|
|
||||||
// rotateLeft,
|
|
||||||
// rotateRight};
|
|
||||||
|
|
||||||
class MoveControl {
|
class MoveControl {
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user