Simulacao: painel do circuito ao vivo, camera orbital e rodas com cinematica do firmware
- Painel com os componentes do Fritzing em nos de interface, que responde ao robo simulado. - Camera em volta do robo com o mouse e zoom pela roda. - Rodas 3D mantem a rotacao de repouso dos ossos e giram tambem no giro em torno do proprio eixo.
No files matched your search
@@ -6,6 +6,9 @@
|
||||
[ext_resource type="PackedScene" path="res://cenas/unicap_cenario.tscn" id="4_cenario"]
|
||||
[ext_resource type="Script" uid="uid://b1ul0io5chaj6" path="res://scripts/conexao_servidor.gd" id="5_conexao"]
|
||||
|
||||
[ext_resource type="PackedScene" path="res://cenas/painel_circuito.tscn" id="6_circuito"]
|
||||
[ext_resource type="Script" path="res://scripts/camera_orbita.gd" id="7_orbita"]
|
||||
|
||||
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_72bk4"]
|
||||
|
||||
[sub_resource type="Sky" id="Sky_1pvwv"]
|
||||
@@ -50,7 +53,8 @@ remote_path = NodePath("../../../TelaPrimeiraPessoa/Moldura/Tela/Tela/Camera")
|
||||
update_scale = false
|
||||
|
||||
[node name="BracoCamera" type="SpringArm3D" parent="Robo" unique_id=967423249]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.70710677, 0.70710677, 0, -0.70710677, 0.70710677, 0, 1, 0)
|
||||
transform = Transform3D(1, 0, 0, 0, 0.70710677, 0.70710677, 0, -0.70710677, 0.70710677, 0, 0.5, 0)
|
||||
script = ExtResource("7_orbita")
|
||||
spring_length = 2.0
|
||||
margin = 0.08
|
||||
|
||||
@@ -140,3 +144,9 @@ robo = NodePath("../Robo")
|
||||
camera_robo = NodePath("../TelaPrimeiraPessoa/Moldura/Tela/Tela")
|
||||
tela_profundidade = NodePath("../TelaProfundidade/Moldura/Imagem")
|
||||
tela_mapa = NodePath("../TelaMapa/Moldura/Imagem")
|
||||
|
||||
[node name="TelaCircuito" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="PainelCircuito" parent="TelaCircuito" node_paths=PackedStringArray("robo", "conexao") instance=ExtResource("6_circuito")]
|
||||
robo = NodePath("../../Robo")
|
||||
conexao = NodePath("../../Conexao")
|
||||
@@ -0,0 +1,891 @@
|
||||
[gd_scene format=3]
|
||||
|
||||
[ext_resource type="FontFile" path="res://interface/circuito/fontes/ArchivoBlack.ttf" id="r0"]
|
||||
[ext_resource type="FontFile" path="res://interface/circuito/fontes/JetBrainsMono.ttf" id="r1"]
|
||||
[ext_resource type="FontFile" path="res://interface/circuito/fontes/SpaceGrotesk.ttf" id="r2"]
|
||||
[ext_resource type="Shader" path="res://interface/circuito/fio.gdshader" id="r3"]
|
||||
[ext_resource type="Texture2D" path="res://interface/circuito/bateria.png" id="r4"]
|
||||
[ext_resource type="Texture2D" path="res://interface/circuito/fusivel.png" id="r5"]
|
||||
[ext_resource type="Texture2D" path="res://interface/circuito/chave.png" id="r6"]
|
||||
[ext_resource type="Texture2D" path="res://interface/circuito/lm2596.png" id="r7"]
|
||||
[ext_resource type="Texture2D" path="res://interface/circuito/cnc.png" id="r8"]
|
||||
[ext_resource type="Texture2D" path="res://interface/circuito/a4988.png" id="r9"]
|
||||
[ext_resource type="Texture2D" path="res://interface/circuito/placa_uno_wifi.jpg" id="r10"]
|
||||
[ext_resource type="Texture2D" path="res://interface/circuito/esp32cam.png" id="r11"]
|
||||
[ext_resource type="Texture2D" path="res://interface/circuito/motor.png" id="r12"]
|
||||
[ext_resource type="Texture2D" path="res://interface/circuito/motor.png" id="r13"]
|
||||
[ext_resource type="Texture2D" path="res://interface/circuito/motor.png" id="r14"]
|
||||
[ext_resource type="Texture2D" path="res://interface/circuito/motor.png" id="r15"]
|
||||
[ext_resource type="Texture2D" path="res://interface/circuito/resistor.png" id="r16"]
|
||||
[ext_resource type="Texture2D" path="res://interface/circuito/resistor.png" id="r17"]
|
||||
[ext_resource type="Script" path="res://scripts/circuito/roda_mecanum.gd" id="r18"]
|
||||
[ext_resource type="Script" path="res://scripts/circuito/painel_circuito.gd" id="r19"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="s0"]
|
||||
shader = ExtResource("r3")
|
||||
shader_parameter/cor = Vector3(0.910, 0.353, 0.122)
|
||||
shader_parameter/periodo = 4.67
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="s1"]
|
||||
shader = ExtResource("r3")
|
||||
shader_parameter/cor = Vector3(0.941, 0.424, 0.659)
|
||||
shader_parameter/periodo = 4.67
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="s2"]
|
||||
shader = ExtResource("r3")
|
||||
shader_parameter/cor = Vector3(0.122, 0.541, 0.298)
|
||||
shader_parameter/periodo = 5.60
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="s3"]
|
||||
shader = ExtResource("r3")
|
||||
shader_parameter/cor = Vector3(0.122, 0.541, 0.298)
|
||||
shader_parameter/periodo = 5.60
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="s4"]
|
||||
shader = ExtResource("r3")
|
||||
shader_parameter/cor = Vector3(0.059, 0.059, 0.059)
|
||||
shader_parameter/periodo = 5.60
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="s5"]
|
||||
bg_color = Color(0.059,0.059,0.059,1)
|
||||
corner_radius_top_left = 7
|
||||
corner_radius_top_right = 7
|
||||
corner_radius_bottom_right = 7
|
||||
corner_radius_bottom_left = 7
|
||||
border_color = Color(0.059,0.059,0.059,1)
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="s6"]
|
||||
bg_color = Color(0.059,0.059,0.059,1)
|
||||
corner_radius_top_left = 7
|
||||
corner_radius_top_right = 7
|
||||
corner_radius_bottom_right = 7
|
||||
corner_radius_bottom_left = 7
|
||||
border_color = Color(0.059,0.059,0.059,1)
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="s7"]
|
||||
bg_color = Color(0.91,0.353,0.122,1)
|
||||
corner_radius_top_left = 7
|
||||
corner_radius_top_right = 7
|
||||
corner_radius_bottom_right = 7
|
||||
corner_radius_bottom_left = 7
|
||||
border_color = Color(0.059,0.059,0.059,1)
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="s8"]
|
||||
bg_color = Color(0.941,0.424,0.659,1)
|
||||
corner_radius_top_left = 7
|
||||
corner_radius_top_right = 7
|
||||
corner_radius_bottom_right = 7
|
||||
corner_radius_bottom_left = 7
|
||||
border_color = Color(0.059,0.059,0.059,1)
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="s9"]
|
||||
bg_color = Color(0.122,0.541,0.298,1)
|
||||
corner_radius_top_left = 7
|
||||
corner_radius_top_right = 7
|
||||
corner_radius_bottom_right = 7
|
||||
corner_radius_bottom_left = 7
|
||||
border_color = Color(0.059,0.059,0.059,1)
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="s10"]
|
||||
shader = ExtResource("r3")
|
||||
shader_parameter/cor = Vector3(0.059,0.059,0.059)
|
||||
shader_parameter/periodo = 8.6
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="s11"]
|
||||
shader = ExtResource("r3")
|
||||
shader_parameter/cor = Vector3(0.122,0.541,0.298)
|
||||
shader_parameter/periodo = 8.6
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="s12"]
|
||||
shader = ExtResource("r3")
|
||||
shader_parameter/cor = Vector3(0.843,0.188,0.122)
|
||||
shader_parameter/periodo = 8.6
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="s13"]
|
||||
shader = ExtResource("r3")
|
||||
shader_parameter/cor = Vector3(0.184,0.435,0.816)
|
||||
shader_parameter/periodo = 8.6
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="s14"]
|
||||
shader = ExtResource("r3")
|
||||
shader_parameter/cor = Vector3(0.059,0.059,0.059)
|
||||
shader_parameter/periodo = 8.6
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="s15"]
|
||||
shader = ExtResource("r3")
|
||||
shader_parameter/cor = Vector3(0.122,0.541,0.298)
|
||||
shader_parameter/periodo = 8.6
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="s16"]
|
||||
shader = ExtResource("r3")
|
||||
shader_parameter/cor = Vector3(0.843,0.188,0.122)
|
||||
shader_parameter/periodo = 8.6
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="s17"]
|
||||
shader = ExtResource("r3")
|
||||
shader_parameter/cor = Vector3(0.184,0.435,0.816)
|
||||
shader_parameter/periodo = 8.6
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="s18"]
|
||||
shader = ExtResource("r3")
|
||||
shader_parameter/cor = Vector3(0.059,0.059,0.059)
|
||||
shader_parameter/periodo = 8.6
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="s19"]
|
||||
shader = ExtResource("r3")
|
||||
shader_parameter/cor = Vector3(0.122,0.541,0.298)
|
||||
shader_parameter/periodo = 8.6
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="s20"]
|
||||
shader = ExtResource("r3")
|
||||
shader_parameter/cor = Vector3(0.843,0.188,0.122)
|
||||
shader_parameter/periodo = 8.6
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="s21"]
|
||||
shader = ExtResource("r3")
|
||||
shader_parameter/cor = Vector3(0.184,0.435,0.816)
|
||||
shader_parameter/periodo = 8.6
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="s22"]
|
||||
shader = ExtResource("r3")
|
||||
shader_parameter/cor = Vector3(0.059,0.059,0.059)
|
||||
shader_parameter/periodo = 8.6
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="s23"]
|
||||
shader = ExtResource("r3")
|
||||
shader_parameter/cor = Vector3(0.122,0.541,0.298)
|
||||
shader_parameter/periodo = 8.6
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="s24"]
|
||||
shader = ExtResource("r3")
|
||||
shader_parameter/cor = Vector3(0.843,0.188,0.122)
|
||||
shader_parameter/periodo = 8.6
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="s25"]
|
||||
shader = ExtResource("r3")
|
||||
shader_parameter/cor = Vector3(0.184,0.435,0.816)
|
||||
shader_parameter/periodo = 8.6
|
||||
|
||||
[sub_resource type="LabelSettings" id="s26"]
|
||||
font = ExtResource("r0")
|
||||
font_size = 44
|
||||
font_color = Color(0.059,0.059,0.059,1)
|
||||
outline_size = 10
|
||||
outline_color = Color(0.937,0.914,0.851,1)
|
||||
|
||||
[sub_resource type="LabelSettings" id="s27"]
|
||||
font = ExtResource("r0")
|
||||
font_size = 34
|
||||
font_color = Color(0.059,0.059,0.059,1)
|
||||
outline_size = 10
|
||||
outline_color = Color(0.937,0.914,0.851,1)
|
||||
|
||||
[sub_resource type="LabelSettings" id="s28"]
|
||||
font = ExtResource("r0")
|
||||
font_size = 56
|
||||
font_color = Color(0.059,0.059,0.059,1)
|
||||
outline_size = 10
|
||||
outline_color = Color(0.937,0.914,0.851,1)
|
||||
|
||||
[sub_resource type="LabelSettings" id="s29"]
|
||||
font = ExtResource("r0")
|
||||
font_size = 60
|
||||
font_color = Color(1,1,1,1)
|
||||
outline_size = 10
|
||||
outline_color = Color(0.937,0.914,0.851,1)
|
||||
|
||||
[node name="PainelCircuito" type="Control"]
|
||||
offset_right = 1920.0
|
||||
offset_bottom = 1080.0
|
||||
mouse_filter = 2
|
||||
script = ExtResource("r19")
|
||||
|
||||
[node name="Componentes" type="Control" parent="."]
|
||||
offset_left = 0
|
||||
offset_top = 0
|
||||
offset_right = 1920
|
||||
offset_bottom = 1080
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="Fios" type="Node2D" parent="."]
|
||||
|
||||
|
||||
[node name="Info" type="Control" parent="."]
|
||||
offset_left = 0
|
||||
offset_top = 0
|
||||
offset_right = 1920
|
||||
offset_bottom = 1080
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="Bateria" type="TextureRect" parent="Componentes"]
|
||||
offset_left = 70
|
||||
offset_top = 560
|
||||
offset_right = 270
|
||||
offset_bottom = 778
|
||||
mouse_filter = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 0
|
||||
texture = ExtResource("r4")
|
||||
|
||||
[node name="BateriaEtiqueta" type="ColorRect" parent="Componentes"]
|
||||
offset_left = 112
|
||||
offset_top = 622
|
||||
offset_right = 234
|
||||
offset_bottom = 750
|
||||
mouse_filter = 2
|
||||
color = Color(0.894,0.863,0.769,1)
|
||||
|
||||
[node name="Fusivel" type="TextureRect" parent="Componentes"]
|
||||
offset_left = 300
|
||||
offset_top = 598
|
||||
offset_right = 420
|
||||
offset_bottom = 645
|
||||
mouse_filter = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 0
|
||||
texture = ExtResource("r5")
|
||||
|
||||
[node name="Chave" type="TextureRect" parent="Componentes"]
|
||||
offset_left = 452
|
||||
offset_top = 587
|
||||
offset_right = 522
|
||||
offset_bottom = 658
|
||||
mouse_filter = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 0
|
||||
texture = ExtResource("r6")
|
||||
|
||||
[node name="LM2596" type="TextureRect" parent="Componentes"]
|
||||
offset_left = 312
|
||||
offset_top = 402
|
||||
offset_right = 570
|
||||
offset_bottom = 526
|
||||
mouse_filter = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 0
|
||||
texture = ExtResource("r7")
|
||||
|
||||
[node name="CNCShield" type="TextureRect" parent="Componentes"]
|
||||
offset_left = 770
|
||||
offset_top = 475
|
||||
offset_right = 1252
|
||||
offset_bottom = 850
|
||||
mouse_filter = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 0
|
||||
texture = ExtResource("r8")
|
||||
|
||||
[node name="DriverA" type="TextureRect" parent="Componentes"]
|
||||
offset_left = 1026.4
|
||||
offset_top = 679.4
|
||||
offset_right = 1131.4
|
||||
offset_bottom = 819.4
|
||||
mouse_filter = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 0
|
||||
texture = ExtResource("r9")
|
||||
|
||||
[node name="PlacaUnoWiFi" type="TextureRect" parent="Componentes"]
|
||||
offset_left = 1290
|
||||
offset_top = 475
|
||||
offset_right = 1540
|
||||
offset_bottom = 625
|
||||
mouse_filter = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 0
|
||||
texture = ExtResource("r10")
|
||||
|
||||
[node name="PlacaEncaixe" type="ColorRect" parent="Componentes"]
|
||||
offset_left = 1252
|
||||
offset_top = 545
|
||||
offset_right = 1290
|
||||
offset_bottom = 555
|
||||
mouse_filter = 2
|
||||
color = Color(0.059,0.059,0.059,1)
|
||||
|
||||
[node name="ESP32CAM" type="TextureRect" parent="Componentes"]
|
||||
offset_left = 1590
|
||||
offset_top = 468
|
||||
offset_right = 1740
|
||||
offset_bottom = 694
|
||||
mouse_filter = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 0
|
||||
texture = ExtResource("r11")
|
||||
|
||||
[node name="ServidorBorda" type="ColorRect" parent="Componentes"]
|
||||
offset_left = 1290
|
||||
offset_top = 640
|
||||
offset_right = 1540
|
||||
offset_bottom = 732
|
||||
mouse_filter = 2
|
||||
color = Color(0.059,0.059,0.059,1)
|
||||
|
||||
[node name="Servidor" type="ColorRect" parent="Componentes"]
|
||||
offset_left = 1296
|
||||
offset_top = 646
|
||||
offset_right = 1534
|
||||
offset_bottom = 726
|
||||
mouse_filter = 2
|
||||
color = Color(0.894,0.863,0.769,1)
|
||||
|
||||
[node name="MotorX" type="TextureRect" parent="Componentes"]
|
||||
offset_left = 879
|
||||
offset_top = 200
|
||||
offset_right = 1001
|
||||
offset_bottom = 400
|
||||
mouse_filter = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 0
|
||||
texture = ExtResource("r12")
|
||||
|
||||
[node name="MotorZ" type="TextureRect" parent="Componentes"]
|
||||
offset_left = 1129
|
||||
offset_top = 200
|
||||
offset_right = 1251
|
||||
offset_bottom = 400
|
||||
mouse_filter = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 0
|
||||
texture = ExtResource("r13")
|
||||
|
||||
[node name="MotorY" type="TextureRect" parent="Componentes"]
|
||||
offset_left = 1379
|
||||
offset_top = 200
|
||||
offset_right = 1501
|
||||
offset_bottom = 400
|
||||
mouse_filter = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 0
|
||||
texture = ExtResource("r14")
|
||||
|
||||
[node name="MotorA" type="TextureRect" parent="Componentes"]
|
||||
offset_left = 1629
|
||||
offset_top = 200
|
||||
offset_right = 1751
|
||||
offset_bottom = 400
|
||||
mouse_filter = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 0
|
||||
texture = ExtResource("r15")
|
||||
|
||||
[node name="p148_1" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(262.6, 584.6, 294.0, 584.6, 296.6, 585.0, 298.5, 586.1, 299.6, 588.0, 300.0, 590.6, 300.0, 620.5, 300.1, 620.9, 300.3, 621.2, 300.6, 621.4, 301.1, 621.5, 302.1, 621.5)
|
||||
width = 6
|
||||
default_color = Color(0.91,0.353,0.122,1)
|
||||
joint_mode = 2
|
||||
begin_cap_mode = 2
|
||||
end_cap_mode = 2
|
||||
texture_mode = 1
|
||||
material = SubResource("s0")
|
||||
metadata/rede = "p148"
|
||||
|
||||
[node name="p148_2" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(417.9, 621.5, 434.0, 621.5, 436.6, 621.9, 438.5, 623.0, 439.6, 624.9, 440.0, 627.5, 440.0, 658.0, 440.4, 660.6, 441.5, 662.5, 443.4, 663.6, 446.0, 664.0, 478.7, 664.0, 481.3, 663.6, 483.2, 662.5, 484.3, 660.6, 484.7, 658.0, 484.7, 649.4)
|
||||
width = 6
|
||||
default_color = Color(0.91,0.353,0.122,1)
|
||||
joint_mode = 2
|
||||
begin_cap_mode = 2
|
||||
end_cap_mode = 2
|
||||
texture_mode = 1
|
||||
material = SubResource("s0")
|
||||
metadata/rede = "p148"
|
||||
|
||||
[node name="p148_3" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(503.6, 649.4, 503.6, 658.0, 504.0, 660.6, 505.1, 662.5, 507.0, 663.6, 509.6, 664.0, 534.0, 664.0, 536.6, 663.6, 538.5, 662.5, 539.6, 660.6, 540.0, 658.0, 540.0, 628.0, 540.4, 625.4, 541.5, 623.5, 543.4, 622.4, 546.0, 622.0, 600.0, 622.0)
|
||||
width = 6
|
||||
default_color = Color(0.91,0.353,0.122,1)
|
||||
joint_mode = 2
|
||||
begin_cap_mode = 2
|
||||
end_cap_mode = 2
|
||||
texture_mode = 1
|
||||
material = SubResource("s0")
|
||||
metadata/rede = "p148"
|
||||
|
||||
[node name="p148_4" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(600.0, 622.0, 600.0, 716.0, 600.4, 718.6, 601.5, 720.5, 603.4, 721.6, 606.0, 722.0, 819.4, 722.0, 822.0, 722.4, 823.9, 723.5, 825.0, 725.4, 825.4, 728.0, 825.4, 748.0)
|
||||
width = 6
|
||||
default_color = Color(0.91,0.353,0.122,1)
|
||||
joint_mode = 2
|
||||
begin_cap_mode = 2
|
||||
end_cap_mode = 2
|
||||
texture_mode = 1
|
||||
material = SubResource("s0")
|
||||
metadata/rede = "p148"
|
||||
|
||||
[node name="p148_5" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(600.0, 622.0, 600.0, 554.0, 599.6, 551.4, 598.5, 549.5, 596.6, 548.4, 594.0, 548.0, 292.0, 548.0, 289.4, 547.6, 287.5, 546.5, 286.4, 544.6, 286.0, 542.0, 286.0, 416.4, 286.4, 413.8, 287.5, 411.9, 289.4, 410.8, 292.0, 410.4, 320.3, 410.4)
|
||||
width = 6
|
||||
default_color = Color(0.91,0.353,0.122,1)
|
||||
joint_mode = 2
|
||||
begin_cap_mode = 2
|
||||
end_cap_mode = 2
|
||||
texture_mode = 1
|
||||
material = SubResource("s0")
|
||||
metadata/rede = "p148"
|
||||
|
||||
[node name="p5_1" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(561.8, 410.5, 694.0, 410.5, 696.6, 410.9, 698.5, 412.0, 699.6, 413.9, 700.0, 416.5, 700.0, 629.2, 700.4, 631.8, 701.5, 633.7, 703.4, 634.8, 706.0, 635.2, 847.0, 635.2)
|
||||
width = 6
|
||||
default_color = Color(0.941,0.424,0.659,1)
|
||||
joint_mode = 2
|
||||
begin_cap_mode = 2
|
||||
end_cap_mode = 2
|
||||
texture_mode = 1
|
||||
material = SubResource("s1")
|
||||
metadata/rede = "p5"
|
||||
|
||||
[node name="p5_2" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(700.0, 464.0, 1560.0, 464.0, 1562.6, 464.4, 1564.5, 465.5, 1565.6, 467.4, 1566.0, 470.0, 1566.0, 489.9, 1566.4, 492.5, 1567.5, 494.4, 1569.4, 495.5, 1572.0, 495.9, 1601.3, 495.9)
|
||||
width = 6
|
||||
default_color = Color(0.941,0.424,0.659,1)
|
||||
joint_mode = 2
|
||||
begin_cap_mode = 2
|
||||
end_cap_mode = 2
|
||||
texture_mode = 1
|
||||
material = SubResource("s1")
|
||||
metadata/rede = "p5"
|
||||
|
||||
[node name="tx_1" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(1218.3, 752.4, 1754.0, 752.4, 1756.6, 752.0, 1758.5, 750.9, 1759.6, 749.0, 1760.0, 746.4, 1760.0, 573.2, 1759.6, 570.6, 1758.5, 568.7, 1756.6, 567.6, 1754.0, 567.2, 1728.7, 567.2)
|
||||
width = 5
|
||||
default_color = Color(0.122,0.541,0.298,1)
|
||||
joint_mode = 2
|
||||
begin_cap_mode = 2
|
||||
end_cap_mode = 2
|
||||
texture_mode = 1
|
||||
material = SubResource("s2")
|
||||
metadata/rede = "tx"
|
||||
|
||||
[node name="tx_2" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(1760.0, 650.0, 1840.0, 650.0)
|
||||
width = 5
|
||||
default_color = Color(0.122,0.541,0.298,1)
|
||||
joint_mode = 2
|
||||
begin_cap_mode = 2
|
||||
end_cap_mode = 2
|
||||
texture_mode = 1
|
||||
material = SubResource("s2")
|
||||
metadata/rede = "tx"
|
||||
|
||||
[node name="rx_1" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(1218.3, 770.3, 1739.0, 770.3, 1741.6, 769.9, 1743.5, 768.8, 1744.6, 766.9, 1745.0, 764.3, 1745.0, 587.4, 1744.6, 584.8, 1743.5, 582.9, 1741.6, 581.8, 1739.0, 581.4, 1728.7, 581.4)
|
||||
width = 5
|
||||
default_color = Color(0.122,0.541,0.298,1)
|
||||
joint_mode = 2
|
||||
begin_cap_mode = 2
|
||||
end_cap_mode = 2
|
||||
texture_mode = 1
|
||||
material = SubResource("s3")
|
||||
metadata/rede = "rx"
|
||||
|
||||
[node name="wifi_1" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(1590.0, 640.0, 1572.0, 640.0, 1569.4, 640.4, 1567.5, 641.5, 1566.4, 643.4, 1566.0, 646.0, 1566.0, 676.0, 1565.6, 678.6, 1564.5, 680.5, 1562.6, 681.6, 1560.0, 682.0, 1540.0, 682.0)
|
||||
width = 5
|
||||
default_color = Color(0.059,0.059,0.059,1)
|
||||
joint_mode = 2
|
||||
begin_cap_mode = 2
|
||||
end_cap_mode = 2
|
||||
texture_mode = 1
|
||||
material = SubResource("s4")
|
||||
metadata/rede = "wifi"
|
||||
|
||||
[node name="gnd_1" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(262.6, 593.0, 276.0, 593.0, 278.6, 593.4, 280.5, 594.5, 281.6, 596.4, 282.0, 599.0, 282.0, 694.0, 282.4, 696.6, 283.5, 698.5, 285.4, 699.6, 288.0, 700.0, 580.0, 700.0, 582.6, 700.4, 584.5, 701.5, 585.6, 703.4, 586.0, 706.0, 586.0, 784.0, 586.4, 786.6, 587.5, 788.5, 589.4, 789.6, 592.0, 790.0, 784.2, 790.0, 786.8, 789.6, 788.7, 788.5, 789.8, 786.6, 790.2, 784.0, 790.2, 748.0)
|
||||
width = 4
|
||||
default_color = Color(0.059,0.059,0.059,1)
|
||||
joint_mode = 2
|
||||
begin_cap_mode = 2
|
||||
end_cap_mode = 2
|
||||
|
||||
[node name="gnd_2" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(586.0, 700.0, 586.0, 541.0, 585.6, 538.4, 584.5, 536.5, 582.6, 535.4, 580.0, 535.0, 306.0, 535.0, 303.4, 534.6, 301.5, 533.5, 300.4, 531.6, 300.0, 529.0, 300.0, 523.1, 300.4, 520.5, 301.5, 518.6, 303.4, 517.5, 306.0, 517.1, 320.4, 517.1)
|
||||
width = 4
|
||||
default_color = Color(0.059,0.059,0.059,1)
|
||||
joint_mode = 2
|
||||
begin_cap_mode = 2
|
||||
end_cap_mode = 2
|
||||
|
||||
[node name="gnd_3" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(561.8, 517.5, 684.0, 517.5, 686.6, 517.9, 688.5, 519.0, 689.6, 520.9, 690.0, 523.5, 690.0, 644.0, 690.4, 646.6, 691.5, 648.5, 693.4, 649.6, 696.0, 650.0, 859.9, 650.0, 862.5, 649.6, 864.4, 648.5, 865.5, 646.6, 865.9, 644.0, 865.9, 634.5)
|
||||
width = 4
|
||||
default_color = Color(0.059,0.059,0.059,1)
|
||||
joint_mode = 2
|
||||
begin_cap_mode = 2
|
||||
end_cap_mode = 2
|
||||
|
||||
[node name="gnd_4" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(690.0, 517.5, 690.0, 478.0, 690.4, 475.4, 691.5, 473.5, 693.4, 472.4, 696.0, 472.0, 1552.0, 472.0, 1554.6, 472.4, 1556.5, 473.5, 1557.6, 475.4, 1558.0, 478.0, 1558.0, 504.2, 1558.4, 506.8, 1559.5, 508.7, 1561.4, 509.8, 1564.0, 510.2, 1601.3, 510.2)
|
||||
width = 4
|
||||
default_color = Color(0.059,0.059,0.059,1)
|
||||
joint_mode = 2
|
||||
begin_cap_mode = 2
|
||||
end_cap_mode = 2
|
||||
|
||||
[node name="gnd_5" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(1840.0, 650.0, 1840.0, 544.7, 1839.6, 542.1, 1838.5, 540.2, 1836.6, 539.1, 1834.0, 538.7, 1728.7, 538.7)
|
||||
width = 4
|
||||
default_color = Color(0.059,0.059,0.059,1)
|
||||
joint_mode = 2
|
||||
begin_cap_mode = 2
|
||||
end_cap_mode = 2
|
||||
|
||||
[node name="NoGND1" type="Panel" parent="Fios"]
|
||||
offset_left = 580
|
||||
offset_top = 694
|
||||
offset_right = 592
|
||||
offset_bottom = 706
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = SubResource("s5")
|
||||
|
||||
[node name="NoGND2" type="Panel" parent="Fios"]
|
||||
offset_left = 684
|
||||
offset_top = 511.5
|
||||
offset_right = 696
|
||||
offset_bottom = 523.5
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = SubResource("s6")
|
||||
|
||||
[node name="No148" type="Panel" parent="Fios"]
|
||||
offset_left = 594
|
||||
offset_top = 616
|
||||
offset_right = 606
|
||||
offset_bottom = 628
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = SubResource("s7")
|
||||
|
||||
[node name="No5V" type="Panel" parent="Fios"]
|
||||
offset_left = 694
|
||||
offset_top = 458
|
||||
offset_right = 706
|
||||
offset_bottom = 470
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = SubResource("s8")
|
||||
|
||||
[node name="NoSerial" type="Panel" parent="Fios"]
|
||||
offset_left = 1754
|
||||
offset_top = 644
|
||||
offset_right = 1766
|
||||
offset_bottom = 656
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = SubResource("s9")
|
||||
|
||||
[node name="CaboX1" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(929.2, 396.0, 929.2, 411.5, 929.5, 413.2, 930.2, 414.5, 931.5, 415.2, 933.2, 415.5, 1010.0, 415.5, 1011.8, 415.8, 1013.0, 416.5, 1013.8, 417.8, 1014.0, 419.5, 1014.0, 547.4, 1013.8, 549.1, 1013.0, 550.4, 1011.8, 551.1, 1010.0, 551.4, 1003.2, 551.4)
|
||||
width = 3.5
|
||||
default_color = Color(0.059,0.059,0.059,1)
|
||||
joint_mode = 2
|
||||
texture_mode = 1
|
||||
material = SubResource("s10")
|
||||
metadata/motor = "X"
|
||||
|
||||
[node name="CaboX2" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(936.4, 396.0, 936.4, 407.0, 936.6, 408.8, 937.4, 410.0, 938.6, 410.8, 940.4, 411.0, 1014.5, 411.0, 1016.2, 411.2, 1017.5, 412.0, 1018.2, 413.2, 1018.5, 415.0, 1018.5, 565.3, 1018.2, 567.0, 1017.5, 568.3, 1016.2, 569.0, 1014.5, 569.3, 1003.2, 569.3)
|
||||
width = 3.5
|
||||
default_color = Color(0.122,0.541,0.298,1)
|
||||
joint_mode = 2
|
||||
texture_mode = 1
|
||||
material = SubResource("s11")
|
||||
metadata/motor = "X"
|
||||
|
||||
[node name="CaboX3" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(943.6, 396.0, 943.6, 402.5, 943.9, 404.2, 944.6, 405.5, 945.9, 406.2, 947.6, 406.5, 1019.0, 406.5, 1020.8, 406.8, 1022.0, 407.5, 1022.8, 408.8, 1023.0, 410.5, 1023.0, 583.1, 1022.8, 584.9, 1022.0, 586.1, 1020.8, 586.9, 1019.0, 587.1, 1003.2, 587.1)
|
||||
width = 3.5
|
||||
default_color = Color(0.843,0.188,0.122,1)
|
||||
joint_mode = 2
|
||||
texture_mode = 1
|
||||
material = SubResource("s12")
|
||||
metadata/motor = "X"
|
||||
|
||||
[node name="CaboX4" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(950.8, 396.0, 950.8, 399.0, 951.0, 400.3, 951.5, 401.2, 952.5, 401.8, 953.8, 402.0, 1023.5, 402.0, 1025.2, 402.2, 1026.5, 403.0, 1027.2, 404.2, 1027.5, 406.0, 1027.5, 601.0, 1027.2, 602.8, 1026.5, 604.0, 1025.2, 604.8, 1023.5, 605.0, 1003.2, 605.0)
|
||||
width = 3.5
|
||||
default_color = Color(0.184,0.435,0.816,1)
|
||||
joint_mode = 2
|
||||
texture_mode = 1
|
||||
material = SubResource("s13")
|
||||
metadata/motor = "X"
|
||||
|
||||
[node name="CaboZ1" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(1179.2, 396.0, 1179.2, 399.0, 1179.0, 400.3, 1178.5, 401.2, 1177.5, 401.8, 1176.2, 402.0, 1035.0, 402.0, 1033.2, 402.2, 1032.0, 403.0, 1031.2, 404.2, 1031.0, 406.0, 1031.0, 651.0, 1030.8, 652.8, 1030.0, 654.0, 1028.8, 654.8, 1027.0, 655.0, 1018.0, 655.0, 1016.2, 655.2, 1015.0, 656.0, 1014.2, 657.2, 1014.0, 659.0, 1014.0, 718.9, 1013.8, 720.6, 1013.0, 721.9, 1011.8, 722.6, 1010.0, 722.9, 1003.9, 722.9)
|
||||
width = 3.5
|
||||
default_color = Color(0.059,0.059,0.059,1)
|
||||
joint_mode = 2
|
||||
texture_mode = 1
|
||||
material = SubResource("s14")
|
||||
metadata/motor = "Z"
|
||||
|
||||
[node name="CaboZ2" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(1186.4, 396.0, 1186.4, 402.5, 1186.2, 404.2, 1185.4, 405.5, 1184.2, 406.2, 1182.4, 406.5, 1039.5, 406.5, 1037.8, 406.8, 1036.5, 407.5, 1035.8, 408.8, 1035.5, 410.5, 1035.5, 655.5, 1035.2, 657.2, 1034.5, 658.5, 1033.2, 659.2, 1031.5, 659.5, 1022.5, 659.5, 1020.8, 659.8, 1019.5, 660.5, 1018.8, 661.8, 1018.5, 663.5, 1018.5, 736.8, 1018.2, 738.5, 1017.5, 739.8, 1016.2, 740.5, 1014.5, 740.8, 1003.9, 740.8)
|
||||
width = 3.5
|
||||
default_color = Color(0.122,0.541,0.298,1)
|
||||
joint_mode = 2
|
||||
texture_mode = 1
|
||||
material = SubResource("s15")
|
||||
metadata/motor = "Z"
|
||||
|
||||
[node name="CaboZ3" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(1193.6, 396.0, 1193.6, 407.0, 1193.3, 408.8, 1192.6, 410.0, 1191.3, 410.8, 1189.6, 411.0, 1044.0, 411.0, 1042.2, 411.2, 1041.0, 412.0, 1040.2, 413.2, 1040.0, 415.0, 1040.0, 660.0, 1039.8, 661.8, 1039.0, 663.0, 1037.8, 663.8, 1036.0, 664.0, 1027.0, 664.0, 1025.2, 664.2, 1024.0, 665.0, 1023.2, 666.2, 1023.0, 668.0, 1023.0, 754.6, 1022.8, 756.4, 1022.0, 757.6, 1020.8, 758.4, 1019.0, 758.6, 1003.9, 758.6)
|
||||
width = 3.5
|
||||
default_color = Color(0.843,0.188,0.122,1)
|
||||
joint_mode = 2
|
||||
texture_mode = 1
|
||||
material = SubResource("s16")
|
||||
metadata/motor = "Z"
|
||||
|
||||
[node name="CaboZ4" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(1200.8, 396.0, 1200.8, 411.5, 1200.5, 413.2, 1199.8, 414.5, 1198.5, 415.2, 1196.8, 415.5, 1048.5, 415.5, 1046.8, 415.8, 1045.5, 416.5, 1044.8, 417.8, 1044.5, 419.5, 1044.5, 664.5, 1044.2, 666.2, 1043.5, 667.5, 1042.2, 668.2, 1040.5, 668.5, 1031.5, 668.5, 1029.8, 668.8, 1028.5, 669.5, 1027.8, 670.8, 1027.5, 672.5, 1027.5, 772.5, 1027.2, 774.2, 1026.5, 775.5, 1025.2, 776.2, 1023.5, 776.5, 1003.9, 776.5)
|
||||
width = 3.5
|
||||
default_color = Color(0.184,0.435,0.816,1)
|
||||
joint_mode = 2
|
||||
texture_mode = 1
|
||||
material = SubResource("s17")
|
||||
metadata/motor = "Z"
|
||||
|
||||
[node name="CaboY1" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(1429.2, 396.0, 1429.2, 414.0, 1429.0, 415.8, 1428.2, 417.0, 1427.0, 417.8, 1425.2, 418.0, 1166.0, 418.0, 1164.2, 418.2, 1163.0, 419.0, 1162.2, 420.2, 1162.0, 422.0, 1162.0, 548.1, 1161.8, 549.9, 1161.0, 551.1, 1159.8, 551.9, 1158.0, 552.1, 1151.4, 552.1)
|
||||
width = 3.5
|
||||
default_color = Color(0.059,0.059,0.059,1)
|
||||
joint_mode = 2
|
||||
texture_mode = 1
|
||||
material = SubResource("s18")
|
||||
metadata/motor = "Y"
|
||||
|
||||
[node name="CaboY2" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(1436.4, 396.0, 1436.4, 418.5, 1436.2, 420.2, 1435.4, 421.5, 1434.2, 422.2, 1432.4, 422.5, 1170.5, 422.5, 1168.8, 422.8, 1167.5, 423.5, 1166.8, 424.8, 1166.5, 426.5, 1166.5, 566.0, 1166.2, 567.8, 1165.5, 569.0, 1164.2, 569.8, 1162.5, 570.0, 1151.4, 570.0)
|
||||
width = 3.5
|
||||
default_color = Color(0.122,0.541,0.298,1)
|
||||
joint_mode = 2
|
||||
texture_mode = 1
|
||||
material = SubResource("s19")
|
||||
metadata/motor = "Y"
|
||||
|
||||
[node name="CaboY3" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(1443.6, 396.0, 1443.6, 423.0, 1443.3, 424.8, 1442.6, 426.0, 1441.3, 426.8, 1439.6, 427.0, 1175.0, 427.0, 1173.2, 427.2, 1172.0, 428.0, 1171.2, 429.2, 1171.0, 431.0, 1171.0, 583.9, 1170.8, 585.6, 1170.0, 586.9, 1168.8, 587.6, 1167.0, 587.9, 1151.4, 587.9)
|
||||
width = 3.5
|
||||
default_color = Color(0.843,0.188,0.122,1)
|
||||
joint_mode = 2
|
||||
texture_mode = 1
|
||||
material = SubResource("s20")
|
||||
metadata/motor = "Y"
|
||||
|
||||
[node name="CaboY4" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(1450.8, 396.0, 1450.8, 427.5, 1450.5, 429.2, 1449.8, 430.5, 1448.5, 431.2, 1446.8, 431.5, 1179.5, 431.5, 1177.8, 431.8, 1176.5, 432.5, 1175.8, 433.8, 1175.5, 435.5, 1175.5, 601.7, 1175.2, 603.5, 1174.5, 604.7, 1173.2, 605.5, 1171.5, 605.7, 1151.4, 605.7)
|
||||
width = 3.5
|
||||
default_color = Color(0.184,0.435,0.816,1)
|
||||
joint_mode = 2
|
||||
texture_mode = 1
|
||||
material = SubResource("s21")
|
||||
metadata/motor = "Y"
|
||||
|
||||
[node name="CaboA1" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(1679.2, 396.0, 1679.2, 432.0, 1679.0, 433.8, 1678.2, 435.0, 1677.0, 435.8, 1675.2, 436.0, 1184.0, 436.0, 1182.2, 436.2, 1181.0, 437.0, 1180.2, 438.2, 1180.0, 440.0, 1180.0, 651.0, 1179.8, 652.8, 1179.0, 654.0, 1177.8, 654.8, 1176.0, 655.0, 1167.0, 655.0, 1165.2, 655.2, 1164.0, 656.0, 1163.2, 657.2, 1163.0, 659.0, 1163.0, 718.2, 1162.8, 720.0, 1162.0, 721.2, 1160.8, 722.0, 1159.0, 722.2, 1152.9, 722.2)
|
||||
width = 3.5
|
||||
default_color = Color(0.059,0.059,0.059,1)
|
||||
joint_mode = 2
|
||||
texture_mode = 1
|
||||
material = SubResource("s22")
|
||||
metadata/motor = "A"
|
||||
|
||||
[node name="CaboA2" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(1686.4, 396.0, 1686.4, 436.5, 1686.2, 438.2, 1685.4, 439.5, 1684.2, 440.2, 1682.4, 440.5, 1188.5, 440.5, 1186.8, 440.8, 1185.5, 441.5, 1184.8, 442.8, 1184.5, 444.5, 1184.5, 655.5, 1184.2, 657.2, 1183.5, 658.5, 1182.2, 659.2, 1180.5, 659.5, 1171.5, 659.5, 1169.8, 659.8, 1168.5, 660.5, 1167.8, 661.8, 1167.5, 663.5, 1167.5, 736.1, 1167.2, 737.9, 1166.5, 739.1, 1165.2, 739.9, 1163.5, 740.1, 1152.9, 740.1)
|
||||
width = 3.5
|
||||
default_color = Color(0.122,0.541,0.298,1)
|
||||
joint_mode = 2
|
||||
texture_mode = 1
|
||||
material = SubResource("s23")
|
||||
metadata/motor = "A"
|
||||
|
||||
[node name="CaboA3" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(1693.6, 396.0, 1693.6, 441.0, 1693.3, 442.8, 1692.6, 444.0, 1691.3, 444.8, 1689.6, 445.0, 1193.0, 445.0, 1191.2, 445.2, 1190.0, 446.0, 1189.2, 447.2, 1189.0, 449.0, 1189.0, 660.0, 1188.8, 661.8, 1188.0, 663.0, 1186.8, 663.8, 1185.0, 664.0, 1176.0, 664.0, 1174.2, 664.2, 1173.0, 665.0, 1172.2, 666.2, 1172.0, 668.0, 1172.0, 753.9, 1171.8, 755.6, 1171.0, 756.9, 1169.8, 757.6, 1168.0, 757.9, 1152.9, 757.9)
|
||||
width = 3.5
|
||||
default_color = Color(0.843,0.188,0.122,1)
|
||||
joint_mode = 2
|
||||
texture_mode = 1
|
||||
material = SubResource("s24")
|
||||
metadata/motor = "A"
|
||||
|
||||
[node name="CaboA4" type="Line2D" parent="Fios"]
|
||||
points = PackedVector2Array(1700.8, 396.0, 1700.8, 445.5, 1700.5, 447.2, 1699.8, 448.5, 1698.5, 449.2, 1696.8, 449.5, 1197.5, 449.5, 1195.8, 449.8, 1194.5, 450.5, 1193.8, 451.8, 1193.5, 453.5, 1193.5, 664.5, 1193.2, 666.2, 1192.5, 667.5, 1191.2, 668.2, 1189.5, 668.5, 1180.5, 668.5, 1178.8, 668.8, 1177.5, 669.5, 1176.8, 670.8, 1176.5, 672.5, 1176.5, 771.8, 1176.2, 773.5, 1175.5, 774.8, 1174.2, 775.5, 1172.5, 775.8, 1152.9, 775.8)
|
||||
width = 3.5
|
||||
default_color = Color(0.184,0.435,0.816,1)
|
||||
joint_mode = 2
|
||||
texture_mode = 1
|
||||
material = SubResource("s25")
|
||||
metadata/motor = "A"
|
||||
|
||||
[node name="RotuloBateria" type="Label" parent="Info"]
|
||||
offset_left = 113.0
|
||||
offset_top = 656
|
||||
offset_right = 233.0
|
||||
offset_bottom = 717
|
||||
mouse_filter = 2
|
||||
text = "4S"
|
||||
label_settings = SubResource("s26")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="RotuloServidor" type="Label" parent="Info"]
|
||||
offset_left = 1300.0
|
||||
offset_top = 668
|
||||
offset_right = 1530.0
|
||||
offset_bottom = 715
|
||||
mouse_filter = 2
|
||||
text = "SERVIDOR"
|
||||
label_settings = SubResource("s27")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="EixoX" type="Label" parent="Info"]
|
||||
offset_left = 1012
|
||||
offset_top = 214
|
||||
offset_right = 1082
|
||||
offset_bottom = 292
|
||||
mouse_filter = 2
|
||||
text = "X"
|
||||
label_settings = SubResource("s28")
|
||||
horizontal_alignment = 0
|
||||
|
||||
[node name="SentidoX" type="Label" parent="Info"]
|
||||
offset_left = 1012
|
||||
offset_top = 310
|
||||
offset_right = 1082
|
||||
offset_bottom = 394
|
||||
mouse_filter = 2
|
||||
text = ""
|
||||
label_settings = SubResource("s29")
|
||||
horizontal_alignment = 0
|
||||
|
||||
[node name="EixoZ" type="Label" parent="Info"]
|
||||
offset_left = 1262
|
||||
offset_top = 214
|
||||
offset_right = 1332
|
||||
offset_bottom = 292
|
||||
mouse_filter = 2
|
||||
text = "Z"
|
||||
label_settings = SubResource("s28")
|
||||
horizontal_alignment = 0
|
||||
|
||||
[node name="SentidoZ" type="Label" parent="Info"]
|
||||
offset_left = 1262
|
||||
offset_top = 310
|
||||
offset_right = 1332
|
||||
offset_bottom = 394
|
||||
mouse_filter = 2
|
||||
text = ""
|
||||
label_settings = SubResource("s29")
|
||||
horizontal_alignment = 0
|
||||
|
||||
[node name="EixoY" type="Label" parent="Info"]
|
||||
offset_left = 1512
|
||||
offset_top = 214
|
||||
offset_right = 1582
|
||||
offset_bottom = 292
|
||||
mouse_filter = 2
|
||||
text = "Y"
|
||||
label_settings = SubResource("s28")
|
||||
horizontal_alignment = 0
|
||||
|
||||
[node name="SentidoY" type="Label" parent="Info"]
|
||||
offset_left = 1512
|
||||
offset_top = 310
|
||||
offset_right = 1582
|
||||
offset_bottom = 394
|
||||
mouse_filter = 2
|
||||
text = ""
|
||||
label_settings = SubResource("s29")
|
||||
horizontal_alignment = 0
|
||||
|
||||
[node name="EixoA" type="Label" parent="Info"]
|
||||
offset_left = 1762
|
||||
offset_top = 214
|
||||
offset_right = 1832
|
||||
offset_bottom = 292
|
||||
mouse_filter = 2
|
||||
text = "A"
|
||||
label_settings = SubResource("s28")
|
||||
horizontal_alignment = 0
|
||||
|
||||
[node name="SentidoA" type="Label" parent="Info"]
|
||||
offset_left = 1762
|
||||
offset_top = 310
|
||||
offset_right = 1832
|
||||
offset_bottom = 394
|
||||
mouse_filter = 2
|
||||
text = ""
|
||||
label_settings = SubResource("s29")
|
||||
horizontal_alignment = 0
|
||||
|
||||
[node name="Resistor1k" type="TextureRect" parent="Info"]
|
||||
offset_left = 1490
|
||||
offset_top = 744.4
|
||||
offset_right = 1562
|
||||
offset_bottom = 760.4
|
||||
mouse_filter = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 0
|
||||
texture = ExtResource("r16")
|
||||
|
||||
[node name="Resistor2k" type="TextureRect" parent="Info"]
|
||||
offset_left = 1766
|
||||
offset_top = 642
|
||||
offset_right = 1834
|
||||
offset_bottom = 658
|
||||
mouse_filter = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 0
|
||||
texture = ExtResource("r17")
|
||||
|
||||
[node name="RodaX" type="Control" parent="Info"]
|
||||
offset_left = 940
|
||||
offset_top = 163
|
||||
offset_right = 941
|
||||
offset_bottom = 164
|
||||
mouse_filter = 2
|
||||
script = ExtResource("r18")
|
||||
mao = 1
|
||||
|
||||
[node name="RodaZ" type="Control" parent="Info"]
|
||||
offset_left = 1190
|
||||
offset_top = 163
|
||||
offset_right = 1191
|
||||
offset_bottom = 164
|
||||
mouse_filter = 2
|
||||
script = ExtResource("r18")
|
||||
mao = -1
|
||||
|
||||
[node name="RodaY" type="Control" parent="Info"]
|
||||
offset_left = 1440
|
||||
offset_top = 163
|
||||
offset_right = 1441
|
||||
offset_bottom = 164
|
||||
mouse_filter = 2
|
||||
script = ExtResource("r18")
|
||||
mao = -1
|
||||
|
||||
[node name="RodaA" type="Control" parent="Info"]
|
||||
offset_left = 1690
|
||||
offset_top = 163
|
||||
offset_right = 1691
|
||||
offset_bottom = 164
|
||||
mouse_filter = 2
|
||||
script = ExtResource("r18")
|
||||
mao = 1
|
||||
|
After Width: | Height: | Size: 14 KiB |
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bm2fb37h4y6im"
|
||||
path="res://.godot/imported/a4988.png-9d549c82dfc26b83ad64151a004ca4a1.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://interface/circuito/a4988.png"
|
||||
dest_files=["res://.godot/imported/a4988.png-9d549c82dfc26b83ad64151a004ca4a1.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
|
After Width: | Height: | Size: 16 KiB |
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://fviv5pxfpblc"
|
||||
path="res://.godot/imported/bateria.png-ae94ca847a6175e94257eaf502967204.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://interface/circuito/bateria.png"
|
||||
dest_files=["res://.godot/imported/bateria.png-ae94ca847a6175e94257eaf502967204.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://blcd577j0npew"
|
||||
path="res://.godot/imported/chave.png-d67e5c0a9b7fd4771d59d421c341a075.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://interface/circuito/chave.png"
|
||||
dest_files=["res://.godot/imported/chave.png-d67e5c0a9b7fd4771d59d421c341a075.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
|
After Width: | Height: | Size: 187 KiB |
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b4fgsroaq750c"
|
||||
path="res://.godot/imported/cnc.png-ef35f15af5d5c213cd21b37de3e673f4.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://interface/circuito/cnc.png"
|
||||
dest_files=["res://.godot/imported/cnc.png-ef35f15af5d5c213cd21b37de3e673f4.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
|
After Width: | Height: | Size: 35 KiB |
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cdllx8pkbw2a"
|
||||
path="res://.godot/imported/esp32cam.png-a8a11a658eeef732bdbf7c2dfb368e07.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://interface/circuito/esp32cam.png"
|
||||
dest_files=["res://.godot/imported/esp32cam.png-a8a11a658eeef732bdbf7c2dfb368e07.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
@@ -0,0 +1,16 @@
|
||||
// Fio do painel do circuito: cinza quando sem energia; com energia, traços claros correm pelo fio.
|
||||
shader_type canvas_item;
|
||||
|
||||
uniform vec3 cor = vec3(0.0);
|
||||
uniform float ligado = 1.0;
|
||||
uniform float animado = 1.0;
|
||||
uniform float fase = 0.0;
|
||||
uniform float periodo = 4.6;
|
||||
|
||||
void fragment() {
|
||||
vec3 c = mix(vec3(0.74, 0.71, 0.63), cor, ligado);
|
||||
if (ligado > 0.5 && animado > 0.5 && fract(UV.x / periodo - fase) < 0.22) {
|
||||
c = vec3(0.937, 0.914, 0.851);
|
||||
}
|
||||
COLOR.rgb = c;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
uid://b4ue7nk1u18p2
|
||||
@@ -0,0 +1,36 @@
|
||||
[remap]
|
||||
|
||||
importer="font_data_dynamic"
|
||||
type="FontFile"
|
||||
uid="uid://cdvncgs4r565o"
|
||||
path="res://.godot/imported/ArchivoBlack.ttf-fb8c20beb1f2946442c745851b376447.fontdata"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://interface/circuito/fontes/ArchivoBlack.ttf"
|
||||
dest_files=["res://.godot/imported/ArchivoBlack.ttf-fb8c20beb1f2946442c745851b376447.fontdata"]
|
||||
|
||||
[params]
|
||||
|
||||
Rendering=null
|
||||
antialiasing=1
|
||||
generate_mipmaps=false
|
||||
disable_embedded_bitmaps=true
|
||||
multichannel_signed_distance_field=false
|
||||
msdf_pixel_range=8
|
||||
msdf_size=48
|
||||
allow_system_fallback=true
|
||||
force_autohinter=false
|
||||
modulate_color_glyphs=false
|
||||
hinting=3
|
||||
subpixel_positioning=4
|
||||
keep_rounding_remainders=true
|
||||
oversampling=0.0
|
||||
Fallbacks=null
|
||||
fallbacks=[]
|
||||
Compress=null
|
||||
compress=true
|
||||
preload=[]
|
||||
language_support={}
|
||||
script_support={}
|
||||
opentype_features={}
|
||||
@@ -0,0 +1,36 @@
|
||||
[remap]
|
||||
|
||||
importer="font_data_dynamic"
|
||||
type="FontFile"
|
||||
uid="uid://dwf1h5gkwp8nq"
|
||||
path="res://.godot/imported/JetBrainsMono.ttf-2a5e5ea021ec9ba3ea3c44cc98cec12f.fontdata"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://interface/circuito/fontes/JetBrainsMono.ttf"
|
||||
dest_files=["res://.godot/imported/JetBrainsMono.ttf-2a5e5ea021ec9ba3ea3c44cc98cec12f.fontdata"]
|
||||
|
||||
[params]
|
||||
|
||||
Rendering=null
|
||||
antialiasing=1
|
||||
generate_mipmaps=false
|
||||
disable_embedded_bitmaps=true
|
||||
multichannel_signed_distance_field=false
|
||||
msdf_pixel_range=8
|
||||
msdf_size=48
|
||||
allow_system_fallback=true
|
||||
force_autohinter=false
|
||||
modulate_color_glyphs=false
|
||||
hinting=3
|
||||
subpixel_positioning=4
|
||||
keep_rounding_remainders=true
|
||||
oversampling=0.0
|
||||
Fallbacks=null
|
||||
fallbacks=[]
|
||||
Compress=null
|
||||
compress=true
|
||||
preload=[]
|
||||
language_support={}
|
||||
script_support={}
|
||||
opentype_features={}
|
||||
@@ -0,0 +1,36 @@
|
||||
[remap]
|
||||
|
||||
importer="font_data_dynamic"
|
||||
type="FontFile"
|
||||
uid="uid://dlb85bsc2nkxy"
|
||||
path="res://.godot/imported/SpaceGrotesk.ttf-626f0155c669013dfb7db6084791d989.fontdata"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://interface/circuito/fontes/SpaceGrotesk.ttf"
|
||||
dest_files=["res://.godot/imported/SpaceGrotesk.ttf-626f0155c669013dfb7db6084791d989.fontdata"]
|
||||
|
||||
[params]
|
||||
|
||||
Rendering=null
|
||||
antialiasing=1
|
||||
generate_mipmaps=false
|
||||
disable_embedded_bitmaps=true
|
||||
multichannel_signed_distance_field=false
|
||||
msdf_pixel_range=8
|
||||
msdf_size=48
|
||||
allow_system_fallback=true
|
||||
force_autohinter=false
|
||||
modulate_color_glyphs=false
|
||||
hinting=3
|
||||
subpixel_positioning=4
|
||||
keep_rounding_remainders=true
|
||||
oversampling=0.0
|
||||
Fallbacks=null
|
||||
fallbacks=[]
|
||||
Compress=null
|
||||
compress=true
|
||||
preload=[]
|
||||
language_support={}
|
||||
script_support={}
|
||||
opentype_features={}
|
||||
|
After Width: | Height: | Size: 3.3 KiB |
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://wug3t7i2f2pa"
|
||||
path="res://.godot/imported/fusivel.png-554d022e32cba5208b548df483c15284.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://interface/circuito/fusivel.png"
|
||||
dest_files=["res://.godot/imported/fusivel.png-554d022e32cba5208b548df483c15284.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
|
After Width: | Height: | Size: 26 KiB |
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c5261hxjlfths"
|
||||
path="res://.godot/imported/lm2596.png-e103caa4ce7fcbc7d5d11c0321e9ccbf.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://interface/circuito/lm2596.png"
|
||||
dest_files=["res://.godot/imported/lm2596.png-e103caa4ce7fcbc7d5d11c0321e9ccbf.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
|
After Width: | Height: | Size: 16 KiB |
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://ddy11dhakx8n0"
|
||||
path="res://.godot/imported/motor.png-595fa5c8d2148b4c44ad770f73850391.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://interface/circuito/motor.png"
|
||||
dest_files=["res://.godot/imported/motor.png-595fa5c8d2148b4c44ad770f73850391.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
|
After Width: | Height: | Size: 44 KiB |
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bt52awv3q3uhf"
|
||||
path="res://.godot/imported/placa_uno_wifi.jpg-06ad1f1bef5745778c266430e4ea8735.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://interface/circuito/placa_uno_wifi.jpg"
|
||||
dest_files=["res://.godot/imported/placa_uno_wifi.jpg-06ad1f1bef5745778c266430e4ea8735.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
|
After Width: | Height: | Size: 1.9 KiB |
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://4bgsgl86ijei"
|
||||
path="res://.godot/imported/resistor.png-249163efb139bdddf5457124a8fb5aed.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://interface/circuito/resistor.png"
|
||||
dest_files=["res://.godot/imported/resistor.png-249163efb139bdddf5457124a8fb5aed.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
@@ -20,6 +20,10 @@ config/icon="res://icon.svg"
|
||||
window/stretch/mode="canvas_items"
|
||||
window/stretch/aspect="expand"
|
||||
|
||||
[editor_plugins]
|
||||
|
||||
enabled=PackedStringArray("res://addons/claude_godot/plugin.cfg")
|
||||
|
||||
[physics]
|
||||
|
||||
3d/physics_engine="Jolt Physics"
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
extends SpringArm3D
|
||||
## Câmera em terceira pessoa orbitando o robô: mover o mouse gira, a roda do mouse aproxima ou afasta.
|
||||
## O clique prende o cursor, para girar sem bater na borda da janela; Esc solta.
|
||||
## O braço é filho do robô, então a câmera também acompanha o giro dele.
|
||||
|
||||
@export var sensibilidade := 0.005
|
||||
@export_range(-89.0, 0.0) var inclinacao_min := -85.0 ## de cima
|
||||
@export_range(-89.0, 0.0) var inclinacao_max := -3.0 ## quase rente ao chão
|
||||
@export var distancia_min := 0.5
|
||||
@export var distancia_max := 5.0
|
||||
@export var passo_zoom := 0.25
|
||||
|
||||
@export var altura_teto := 2.7 ## acima disto a câmera deixa de desenhar o teto
|
||||
|
||||
const CAMADA_TETO := 2 # camada do teto em unicap_cenario.tscn
|
||||
|
||||
var _guinada := 0.0
|
||||
var _inclinacao := 0.0
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
_guinada = rotation.y
|
||||
_inclinacao = rotation.x
|
||||
|
||||
|
||||
func _process(_dt: float) -> void:
|
||||
var camera := get_node_or_null("CameraTerceiraPessoa") as Camera3D
|
||||
if camera:
|
||||
camera.set_cull_mask_value(CAMADA_TETO, camera.global_position.y < altura_teto)
|
||||
|
||||
|
||||
func _input(e: InputEvent) -> void:
|
||||
if e is InputEventMouseMotion:
|
||||
_guinada -= e.relative.x * sensibilidade
|
||||
_inclinacao = clampf(_inclinacao - e.relative.y * sensibilidade,
|
||||
deg_to_rad(inclinacao_min), deg_to_rad(inclinacao_max))
|
||||
rotation = Vector3(_inclinacao, _guinada, 0.0)
|
||||
elif e is InputEventMouseButton and e.pressed:
|
||||
match e.button_index:
|
||||
MOUSE_BUTTON_WHEEL_UP:
|
||||
spring_length = maxf(spring_length - passo_zoom, distancia_min)
|
||||
MOUSE_BUTTON_WHEEL_DOWN:
|
||||
spring_length = minf(spring_length + passo_zoom, distancia_max)
|
||||
MOUSE_BUTTON_LEFT:
|
||||
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
|
||||
elif e is InputEventKey and e.pressed and e.keycode == KEY_ESCAPE:
|
||||
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
|
||||
@@ -0,0 +1 @@
|
||||
uid://c1f6v1d11hqan
|
||||
@@ -0,0 +1,108 @@
|
||||
extends Control
|
||||
## Esquemático do circuito no canto da tela. Responde ao controle do simulador: lê o movimento do robô e aplica a
|
||||
## mesma conta do software/firmware/base_movel/base_movel.ino (cinemática, limite e rampa). Com o robô parado, tudo
|
||||
## fica parado. É um cálculo a partir da simulação, não uma medição do robô real. Tecla C: mostra ou esconde.
|
||||
|
||||
@export var robo: Node3D
|
||||
@export var conexao: Node
|
||||
@export var largura_na_tela := 500.0
|
||||
|
||||
const STEPS_MM := 3200.0 / (TAU * 30.0)
|
||||
const ACCEL := 6000.0
|
||||
const LIMITE_MM_S := 500.0
|
||||
const K := 110.0 + 160.0 # meio entre-eixos + meia bitola da 35x35 (mm)
|
||||
const INVERT := [false, true, false, true]
|
||||
const EIXOS := {"A": 0, "Y": 1, "Z": 2, "X": 3} # índice FL, FR, RL, RR
|
||||
const REGIAO := Rect2(60, 130, 1800, 720) # parte da tela de 1920x1080 ocupada pelo esquemático
|
||||
const FRENTE := Color("1F8A4C")
|
||||
const TRAS := Color("E85A1F")
|
||||
|
||||
var passos := [0.0, 0.0, 0.0, 0.0] # passos/s com sinal
|
||||
var fases := [0.0, 0.0, 0.0, 0.0] # passos acumulados
|
||||
var _redes := {}
|
||||
var _cabos := {"X": [], "Y": [], "Z": [], "A": []}
|
||||
var _fase_energia := 0.0
|
||||
var _fase_serial := 0.0
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
for f in $Fios.get_children():
|
||||
if f.has_meta("rede"):
|
||||
_redes[f.get_meta("rede")] = f.material
|
||||
elif f.has_meta("motor"):
|
||||
_cabos[f.get_meta("motor")].append(f.material)
|
||||
get_viewport().size_changed.connect(_encaixar)
|
||||
_encaixar()
|
||||
|
||||
|
||||
func _unhandled_key_input(e: InputEvent) -> void:
|
||||
if e.pressed and not e.echo and e.keycode == KEY_C:
|
||||
visible = not visible
|
||||
|
||||
|
||||
func _encaixar() -> void:
|
||||
var s := largura_na_tela / REGIAO.size.x
|
||||
scale = Vector2(s, s)
|
||||
var tela := get_viewport_rect().size
|
||||
position = Vector2(12.0, tela.y - 12.0 - REGIAO.size.y * s) - REGIAO.position * s
|
||||
|
||||
|
||||
func _physics_process(dt: float) -> void:
|
||||
if robo == null or not "velocidade_local" in robo:
|
||||
return
|
||||
var v: Vector3 = robo.velocidade_local
|
||||
var vx := v.x * 1000.0
|
||||
var vy := v.y * 1000.0
|
||||
var linear := sqrt(vx * vx + vy * vy)
|
||||
if linear > LIMITE_MM_S:
|
||||
vx *= LIMITE_MM_S / linear
|
||||
vy *= LIMITE_MM_S / linear
|
||||
var rodas := [vx - vy - K * v.z, vx + vy + K * v.z, vx + vy - K * v.z, vx - vy + K * v.z]
|
||||
var pico := 0.0
|
||||
for m in rodas:
|
||||
pico = maxf(pico, absf(m))
|
||||
var esc := LIMITE_MM_S / pico if pico > LIMITE_MM_S else 1.0
|
||||
var max_delta := ACCEL * dt
|
||||
for i in 4:
|
||||
var d: float = clampf(rodas[i] * esc * STEPS_MM - passos[i], -max_delta, max_delta)
|
||||
if passos[i] != 0.0 and (passos[i] + d) * passos[i] < 0.0:
|
||||
passos[i] = 0.0
|
||||
else:
|
||||
passos[i] += d
|
||||
fases[i] += passos[i] * dt
|
||||
|
||||
|
||||
func _process(dt: float) -> void:
|
||||
var online: bool = conexao != null and conexao.has_method("conectado") and conexao.conectado()
|
||||
var carga := 0.0
|
||||
for s in passos:
|
||||
carga = maxf(carga, absf(s))
|
||||
var andando := carga > 1.0
|
||||
_fase_energia += dt * carga / 3000.0
|
||||
_fase_serial += dt * (2.0 if andando else 0.0)
|
||||
_rede("p148", true, andando, _fase_energia)
|
||||
_rede("p5", true, false, 0.0)
|
||||
_rede("wifi", online, false, 0.0)
|
||||
_rede("tx", online, false, 0.0)
|
||||
_rede("rx", online, andando, -_fase_serial)
|
||||
$Componentes/Servidor.color = Color("F5C518") if online else Color("E4DCC4")
|
||||
|
||||
for eixo in EIXOS:
|
||||
var i: int = EIXOS[eixo]
|
||||
var s: float = passos[i]
|
||||
var gira := absf(s) > 1.0
|
||||
for mat in _cabos[eixo]:
|
||||
mat.set_shader_parameter("animado", 1.0 if gira else 0.0)
|
||||
mat.set_shader_parameter("fase", fases[i] / 3200.0)
|
||||
var seta: Label = get_node("Info/Sentido" + eixo)
|
||||
seta.text = "" if not gira else ("▲" if s > 0.0 else "▼")
|
||||
seta.modulate = FRENTE if s > 0.0 else TRAS
|
||||
get_node("Info/Roda" + eixo).phi = (-1.0 if INVERT[i] else 1.0) * fases[i] / 3200.0 * 0.5 * TAU
|
||||
|
||||
|
||||
func _rede(nome: String, liga: bool, anima: bool, fase: float) -> void:
|
||||
var mat: ShaderMaterial = _redes.get(nome)
|
||||
if mat:
|
||||
mat.set_shader_parameter("ligado", 1.0 if liga else 0.0)
|
||||
mat.set_shader_parameter("animado", 1.0 if anima else 0.0)
|
||||
mat.set_shader_parameter("fase", fase)
|
||||
@@ -0,0 +1 @@
|
||||
uid://c6o5jbyf0qg0o
|
||||
@@ -0,0 +1,73 @@
|
||||
extends Control
|
||||
## Roda mecanum Ø60 na mesma perspectiva dos motores do Fritzing (eixo vertical, achatamento 0,5).
|
||||
## A origem deste nó é o centro do flange de cima.
|
||||
|
||||
@export var mao := 1
|
||||
var phi := 0.0:
|
||||
set(valor):
|
||||
if valor != phi:
|
||||
phi = valor
|
||||
queue_redraw()
|
||||
|
||||
const KY := 0.5
|
||||
const ALTURA := 52.0
|
||||
const LOBOS := 10
|
||||
const ROLOS := 10
|
||||
const AMARELO := Color("F5C518")
|
||||
const AMARELO_ESCURO := Color("C99B00")
|
||||
const TINTA := Color("0F0F0F")
|
||||
const BORRACHA := Color("242424")
|
||||
|
||||
|
||||
func _contorno(y: float) -> PackedVector2Array:
|
||||
var l := PackedVector2Array()
|
||||
for i in 96:
|
||||
var t := float(i) / 96.0 * TAU
|
||||
var r := 76.0 + 8.0 * cos(LOBOS * t)
|
||||
l.append(Vector2(r * cos(t + phi), y + KY * r * sin(t + phi)))
|
||||
return l
|
||||
|
||||
|
||||
func _flange(y: float, cor: Color) -> void:
|
||||
var l := _contorno(y)
|
||||
draw_colored_polygon(l, cor)
|
||||
l.append(l[0])
|
||||
draw_polyline(l, TINTA, 2.0, true)
|
||||
|
||||
|
||||
func _rolo(a: Vector2, b: Vector2, largura: float, cor: Color) -> void:
|
||||
draw_line(a, b, cor, largura, true)
|
||||
draw_circle(a, largura / 2.0, cor)
|
||||
draw_circle(b, largura / 2.0, cor)
|
||||
|
||||
|
||||
func _draw() -> void:
|
||||
_flange(ALTURA, AMARELO_ESCURO)
|
||||
var angulos := []
|
||||
for i in ROLOS:
|
||||
angulos.append(phi + (i + 0.5) * TAU / ROLOS)
|
||||
angulos.sort_custom(func(p, q): return sin(p) < sin(q))
|
||||
var d := 0.3 * mao
|
||||
for t in angulos:
|
||||
var a := Vector2(76.0 * cos(t - d), 8.0 + KY * 76.0 * sin(t - d))
|
||||
var b := Vector2(76.0 * cos(t + d), ALTURA - 14.0 + KY * 76.0 * sin(t + d))
|
||||
_rolo(a, b, 25.0, TINTA)
|
||||
_rolo(a, b, 20.0, BORRACHA)
|
||||
_rolo(a + Vector2(-4, -2), b + Vector2(-4, -2), 4.0, Color("565656"))
|
||||
for e in range(7, 0, -1):
|
||||
draw_colored_polygon(_contorno(float(e)), AMARELO_ESCURO)
|
||||
_flange(0.0, AMARELO)
|
||||
_elipse(Vector2(0, 2), 33.0, TINTA)
|
||||
_elipse(Vector2.ZERO, 33.0, BORRACHA)
|
||||
_elipse(Vector2.ZERO, 11.0, TINTA)
|
||||
for i in 6:
|
||||
var t := phi + i * PI / 3.0
|
||||
_elipse(Vector2(22.0 * cos(t), 11.0 * sin(t)), 3.4, AMARELO if i == 0 else Color("B8B8B8"))
|
||||
|
||||
|
||||
func _elipse(c: Vector2, rx: float, cor: Color) -> void:
|
||||
var l := PackedVector2Array()
|
||||
for i in 32:
|
||||
var t := float(i) / 32.0 * TAU
|
||||
l.append(c + Vector2(rx * cos(t), rx * KY * sin(t)))
|
||||
draw_colored_polygon(l, cor)
|
||||
@@ -0,0 +1 @@
|
||||
uid://3t18w42w13sr
|
||||
@@ -36,6 +36,10 @@ func _ready() -> void:
|
||||
_conectar()
|
||||
|
||||
|
||||
func conectado() -> bool:
|
||||
return _ws.get_ready_state() == WebSocketPeer.STATE_OPEN
|
||||
|
||||
|
||||
func _conectar() -> void:
|
||||
_ws = WebSocketPeer.new()
|
||||
_ws.inbound_buffer_size = 4 << 20
|
||||
|
||||
@@ -16,6 +16,7 @@ const VEL := 1.6 # m/s
|
||||
const VEL_GIRO := 3.5 # rad/s
|
||||
const CHEGADA := 0.12 # m
|
||||
const RAIO_RODA := 0.03 # m
|
||||
const K_GIRO := 0.185 + 0.232 # m: meio entre-eixos + meia bitola do modelo (ossos das rodas)
|
||||
const GRAVIDADE := 9.8 # m/s²
|
||||
const VEL_QUEDA_MAX := 3.0 # m/s (terminal, só para a queda não teletransportar)
|
||||
const SONDA_CHAO := 0.06 # m: o quanto ele procura chão abaixo para continuar apoiado
|
||||
@@ -25,6 +26,7 @@ var camera: Camera3D
|
||||
var _skel: Skeleton3D
|
||||
var _bones := {}
|
||||
var _fases := {}
|
||||
var _repouso := {} # rotação de repouso de cada osso de roda (o eixo da roda é o Y local)
|
||||
var _rota: Array = []
|
||||
var _idx := 0
|
||||
var _fase := "mover" # mover | esperar
|
||||
@@ -38,6 +40,8 @@ var _no_chao := true
|
||||
## não a posição real, então erra quando o robô patina ou empurra uma parede. Frame próprio, começando em
|
||||
## (0, 0, 0): x = direita, z = frente, rumo em rad com + = giro para a direita.
|
||||
var _odom := Vector3.ZERO
|
||||
## Movimento real do corpo no referencial do robô: x = frente (m/s), y = esquerda (m/s), z = giro anti-horário (rad/s).
|
||||
var velocidade_local := Vector3.ZERO
|
||||
|
||||
func _ready() -> void:
|
||||
_skel = _achar(self, "Skeleton3D")
|
||||
@@ -47,6 +51,7 @@ func _ready() -> void:
|
||||
if i >= 0:
|
||||
_bones[n] = i
|
||||
_fases[n] = 0.0
|
||||
_repouso[n] = _skel.get_bone_rest(i).basis.get_rotation_quaternion()
|
||||
_criar_corpo()
|
||||
_criar_camera()
|
||||
_emitir()
|
||||
@@ -110,7 +115,9 @@ func _manual(delta: float) -> void:
|
||||
mov = mov.slide(col.get_normal())
|
||||
global_position += mov
|
||||
_vertical(delta)
|
||||
_girar_rodas(global_transform.basis.inverse() * (mov / maxf(delta, 1e-6)), delta)
|
||||
var lv := global_transform.basis.inverse() * (mov / maxf(delta, 1e-6))
|
||||
velocidade_local = Vector3(-lv.z, -lv.x, _joy.z * VEL_GIRO * 0.6)
|
||||
_girar_rodas(delta)
|
||||
|
||||
|
||||
## Gravidade e apoio: mantém o robô colado no piso enquanto houver piso logo abaixo e o deixa cair
|
||||
@@ -147,13 +154,21 @@ func _physics_process(delta: float) -> void:
|
||||
if modo == "manual" or modo == "modelo" or modo == "s2e":
|
||||
_manual(delta)
|
||||
|
||||
func _girar_rodas(lv: Vector3, delta: float) -> void:
|
||||
## Mesma cinemática mecanum do firmware (updateTargets em base_movel.ino): cada roda soma frente, lateral e giro.
|
||||
## O eixo dos ossos aponta para +X em todas as rodas, então rodar para a frente é ângulo negativo.
|
||||
func _girar_rodas(delta: float) -> void:
|
||||
if _skel == null:
|
||||
return
|
||||
var v := velocidade_local
|
||||
var velocidades := {
|
||||
"Roda_EF": v.x - v.y - K_GIRO * v.z,
|
||||
"Roda_DF": v.x + v.y + K_GIRO * v.z,
|
||||
"Roda_ET": v.x + v.y - K_GIRO * v.z,
|
||||
"Roda_DT": v.x - v.y + K_GIRO * v.z,
|
||||
}
|
||||
for n in _bones:
|
||||
var lado := 1.0 if (n == "Roda_DF" or n == "Roda_ET") else -1.0
|
||||
_fases[n] += (lv.z + lado * lv.x * 0.7) / RAIO_RODA * delta
|
||||
_skel.set_bone_pose_rotation(_bones[n], Quaternion(Vector3(0, 1, 0), _fases[n]))
|
||||
_fases[n] -= velocidades[n] / RAIO_RODA * delta
|
||||
_skel.set_bone_pose_rotation(_bones[n], _repouso[n] * Quaternion(Vector3(0, 1, 0), _fases[n]))
|
||||
|
||||
func _criar_corpo() -> void:
|
||||
# Corpo cinemático (nó Robo/Corpo da cena, grupo "robo", camada 2): abre as portas e empurra/derruba
|
||||
|
||||
@@ -0,0 +1,222 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Gera cenas/painel_circuito.tscn: o circuito do robô feito de nós de interface.
|
||||
|
||||
python3 tools/gerar_painel_circuito.py
|
||||
|
||||
Ligações: documentacao/ESPECIFICACOES.md, seção 4. Coordenadas dos pinos: arquivos de peça do Fritzing.
|
||||
O comportamento fica em scripts/circuito/; aqui só se monta a árvore de nós, em uma tela de 1920x1080.
|
||||
"""
|
||||
import math
|
||||
import pathlib
|
||||
|
||||
RAIZ = pathlib.Path(__file__).resolve().parent.parent
|
||||
CREME, CREME2, TINTA = "0.937,0.914,0.851,1", "0.894,0.863,0.769,1", "0.059,0.059,0.059,1"
|
||||
LARANJA, ROSA, VERDE = (0.91, 0.353, 0.122), (0.941, 0.424, 0.659), (0.122, 0.541, 0.298)
|
||||
PRETO = (0.059, 0.059, 0.059)
|
||||
|
||||
recursos, subs, nos = [], [], []
|
||||
|
||||
|
||||
def ext(tipo, caminho):
|
||||
rid = f"r{len(recursos)}"
|
||||
recursos.append(f'[ext_resource type="{tipo}" path="{caminho}" id="{rid}"]')
|
||||
return f'ExtResource("{rid}")'
|
||||
|
||||
|
||||
FONTES = {k: ext("FontFile", f"res://interface/circuito/fontes/{v}.ttf")
|
||||
for k, v in {"disp": "ArchivoBlack", "mono": "JetBrainsMono", "corpo": "SpaceGrotesk"}.items()}
|
||||
SHADER = ext("Shader", "res://interface/circuito/fio.gdshader")
|
||||
_estilos = {}
|
||||
|
||||
|
||||
def sub(tipo, *linhas):
|
||||
sid = f"s{len(subs)}"
|
||||
subs.append(f'[sub_resource type="{tipo}" id="{sid}"]\n' + "\n".join(linhas))
|
||||
return f'SubResource("{sid}")'
|
||||
|
||||
|
||||
def estilo(fonte, tam, cor=TINTA):
|
||||
k = (fonte, tam, cor)
|
||||
if k not in _estilos:
|
||||
_estilos[k] = sub("LabelSettings", f"font = {FONTES[fonte]}", f"font_size = {tam}", f"font_color = Color({cor})",
|
||||
"outline_size = 10", "outline_color = Color(0.937,0.914,0.851,1)")
|
||||
return _estilos[k]
|
||||
|
||||
|
||||
def no(nome, tipo, pai=".", **props):
|
||||
corpo = "\n".join(f"{k.replace('__', '/')} = {v}" for k, v in props.items())
|
||||
nos.append(f'[node name="{nome}" type="{tipo}" parent="{pai}"]\n{corpo}')
|
||||
|
||||
|
||||
def caixa(x, y, w, h):
|
||||
return dict(offset_left=x, offset_top=y, offset_right=x + w, offset_bottom=y + h, mouse_filter=2)
|
||||
|
||||
|
||||
def ret(nome, x, y, w, h, cor, pai="."):
|
||||
no(nome, "ColorRect", pai, **caixa(x, y, w, h), color=f"Color({cor})")
|
||||
|
||||
|
||||
def img(nome, arq, x, y, w, h, pai="Componentes"):
|
||||
no(nome, "TextureRect", pai, **caixa(x, y, w, h), expand_mode=1, stretch_mode=0,
|
||||
texture=ext("Texture2D", f"res://interface/circuito/{arq}"))
|
||||
|
||||
|
||||
def texto(nome, s, x, y, fonte, tam, pai="Info", w=500, centro=False, cor=TINTA):
|
||||
if fonte != "corpo":
|
||||
s = s.upper()
|
||||
h = int(tam * 1.4)
|
||||
if centro:
|
||||
x -= w / 2
|
||||
no(nome, "Label", pai, **caixa(x, y - tam, w, h), text=f'"{s}"', label_settings=estilo(fonte, tam, cor),
|
||||
horizontal_alignment=1 if centro else 0)
|
||||
|
||||
|
||||
def rota(lista, raio=6.0):
|
||||
"""Polilinha com os cantos levemente arredondados."""
|
||||
l = [q for i, q in enumerate(lista) if i == 0 or q != lista[i - 1]]
|
||||
out = [l[0]]
|
||||
for i in range(1, len(l) - 1):
|
||||
a, b, e = l[i - 1], l[i], l[i + 1]
|
||||
da, de = math.dist(a, b), math.dist(e, b)
|
||||
r = min(raio, da / 2, de / 2)
|
||||
p = (b[0] + (a[0] - b[0]) * r / da, b[1] + (a[1] - b[1]) * r / da)
|
||||
q = (b[0] + (e[0] - b[0]) * r / de, b[1] + (e[1] - b[1]) * r / de)
|
||||
for k in range(5):
|
||||
t = k / 4
|
||||
out.append(((1 - t) ** 2 * p[0] + 2 * t * (1 - t) * b[0] + t * t * q[0],
|
||||
(1 - t) ** 2 * p[1] + 2 * t * (1 - t) * b[1] + t * t * q[1]))
|
||||
out.append(l[-1])
|
||||
return out
|
||||
|
||||
|
||||
_materiais, _contador = {}, {}
|
||||
|
||||
|
||||
def material(rede, cor, periodo):
|
||||
if rede not in _materiais:
|
||||
c = ", ".join(f"{v:.3f}" for v in cor)
|
||||
_materiais[rede] = sub("ShaderMaterial", f"shader = {SHADER}", f"shader_parameter/cor = Vector3({c})",
|
||||
f"shader_parameter/periodo = {periodo:.2f}")
|
||||
return _materiais[rede]
|
||||
|
||||
|
||||
def fio(rede, lista, cor, larg=6, raio=6.0):
|
||||
_contador[rede] = _contador.get(rede, 0) + 1
|
||||
pts = ", ".join(f"{x:.1f}, {y:.1f}" for x, y in rota(lista, raio))
|
||||
no(f"{rede}_{_contador[rede]}", "Line2D", "Fios", points=f"PackedVector2Array({pts})", width=larg,
|
||||
default_color=f"Color({','.join(map(str, cor))},1)", joint_mode=2, begin_cap_mode=2, end_cap_mode=2,
|
||||
texture_mode=1, material=material(rede, cor, 28 / larg), metadata__rede=f'"{rede}"')
|
||||
|
||||
|
||||
def terra(lista):
|
||||
_contador["gnd"] = _contador.get("gnd", 0) + 1
|
||||
pts = ", ".join(f"{x:.1f}, {y:.1f}" for x, y in rota(lista))
|
||||
no(f"gnd_{_contador['gnd']}", "Line2D", "Fios", points=f"PackedVector2Array({pts})", width=4,
|
||||
default_color=f"Color({TINTA})", joint_mode=2, begin_cap_mode=2, end_cap_mode=2)
|
||||
|
||||
|
||||
def ponto(nome, x, y, cor, pai="Fios"):
|
||||
st = sub("StyleBoxFlat", f"bg_color = Color({cor})", "corner_radius_top_left = 7", "corner_radius_top_right = 7",
|
||||
"corner_radius_bottom_right = 7", "corner_radius_bottom_left = 7", f"border_color = Color({TINTA})",
|
||||
"border_width_left = 2", "border_width_top = 2", "border_width_right = 2", "border_width_bottom = 2")
|
||||
no(nome, "Panel", pai, **caixa(x - 6, y - 6, 12, 12), theme_override_styles__panel=st)
|
||||
|
||||
|
||||
# ------------------------------------------------------------------ tela
|
||||
no("Componentes", "Control", **caixa(0, 0, 1920, 1080))
|
||||
no("Fios", "Node2D")
|
||||
no("Info", "Control", **caixa(0, 0, 1920, 1080))
|
||||
|
||||
# componentes
|
||||
img("Bateria", "bateria.png", 70, 560, 200, 218)
|
||||
ret("BateriaEtiqueta", 112, 622, 122, 128, CREME2, "Componentes")
|
||||
img("Fusivel", "fusivel.png", 300, 598, 120, 47)
|
||||
img("Chave", "chave.png", 452, 587, 70, 71)
|
||||
img("LM2596", "lm2596.png", 312, 402, 258, 124)
|
||||
img("CNCShield", "cnc.png", 770, 475, 482, 375)
|
||||
img("DriverA", "a4988.png", 1026.4, 679.4, 105, 140)
|
||||
img("PlacaUnoWiFi", "placa_uno_wifi.jpg", 1290, 475, 250, 150)
|
||||
ret("PlacaEncaixe", 1252, 545, 38, 10, TINTA, "Componentes")
|
||||
img("ESP32CAM", "esp32cam.png", 1590, 468, 150, 226)
|
||||
ret("ServidorBorda", 1290, 640, 250, 92, TINTA, "Componentes")
|
||||
ret("Servidor", 1296, 646, 238, 80, CREME2, "Componentes")
|
||||
for eixo, cx in [("X", 940), ("Z", 1190), ("Y", 1440), ("A", 1690)]:
|
||||
img(f"Motor{eixo}", "motor.png", cx - 61, 200, 122, 200)
|
||||
|
||||
# fios: cada ponta nasce no pino da peça
|
||||
P = dict(batP=(262.6, 584.6), batN=(262.6, 593), fus1=(302.1, 621.5), fus2=(417.9, 621.5), chCom=(484.7, 649.4),
|
||||
chL2=(503.6, 649.4), lmInP=(320.3, 410.4), lmInN=(320.4, 517.1), lmOutP=(561.8, 410.5), lmOutN=(561.8, 517.5),
|
||||
shP=(825.4, 748), shN=(790.2, 748), sh5V=(847, 635.2), shGND=(865.9, 634.5), shA0=(1218.3, 752.4),
|
||||
shA1=(1218.3, 770.3), esp5V=(1601.3, 495.9), espGND=(1601.3, 510.2), espU0R=(1728.7, 567.2),
|
||||
espU0T=(1728.7, 581.4), espGND2=(1728.7, 538.7))
|
||||
R148, CINCO, GX = 600, 700, 690
|
||||
fio("p148", [P["batP"], (300, P["batP"][1]), (300, P["fus1"][1]), P["fus1"]], LARANJA)
|
||||
fio("p148", [P["fus2"], (440, P["fus2"][1]), (440, 664), (P["chCom"][0], 664), P["chCom"]], LARANJA)
|
||||
fio("p148", [P["chL2"], (P["chL2"][0], 664), (540, 664), (540, 622), (R148, 622)], LARANJA)
|
||||
fio("p148", [(R148, 622), (R148, 722), (P["shP"][0], 722), P["shP"]], LARANJA)
|
||||
fio("p148", [(R148, 622), (R148, 548), (286, 548), (286, P["lmInP"][1]), P["lmInP"]], LARANJA)
|
||||
fio("p5", [P["lmOutP"], (CINCO, P["lmOutP"][1]), (CINCO, P["sh5V"][1]), P["sh5V"]], ROSA)
|
||||
fio("p5", [(CINCO, 464), (1566, 464), (1566, P["esp5V"][1]), P["esp5V"]], ROSA)
|
||||
fio("tx", [P["shA0"], (1760, P["shA0"][1]), (1760, P["espU0R"][1]), P["espU0R"]], VERDE, 5)
|
||||
fio("tx", [(1760, 650), (1840, 650)], VERDE, 5)
|
||||
fio("rx", [P["shA1"], (1745, P["shA1"][1]), (1745, P["espU0T"][1]), P["espU0T"]], VERDE, 5)
|
||||
fio("wifi", [(1590, 640), (1566, 640), (1566, 682), (1540, 682)], PRETO, 5)
|
||||
terra([P["batN"], (282, P["batN"][1]), (282, 700), (586, 700), (586, 790), (P["shN"][0], 790), P["shN"]])
|
||||
terra([(586, 700), (586, 535), (300, 535), (300, P["lmInN"][1]), P["lmInN"]])
|
||||
terra([P["lmOutN"], (GX, P["lmOutN"][1]), (GX, 650), (P["shGND"][0], 650), P["shGND"]])
|
||||
terra([(GX, P["lmOutN"][1]), (GX, 472), (1558, 472), (1558, P["espGND"][1]), P["espGND"]])
|
||||
terra([(1840, 650), (1840, P["espGND2"][1]), P["espGND2"]])
|
||||
ponto("NoGND1", 586, 700, TINTA)
|
||||
ponto("NoGND2", GX, P["lmOutN"][1], TINTA)
|
||||
ponto("No148", R148, 622, "0.91,0.353,0.122,1")
|
||||
ponto("No5V", CINCO, 464, "0.941,0.424,0.659,1")
|
||||
ponto("NoSerial", 1760, 650, "0.122,0.541,0.298,1")
|
||||
|
||||
# cabos dos motores até os 4 pinos de cada conector
|
||||
PINOS = {"X": [(1003.2, 551.4), (1003.2, 569.3), (1003.2, 587.1), (1003.2, 605)],
|
||||
"Z": [(1003.9, 722.9), (1003.9, 740.8), (1003.9, 758.6), (1003.9, 776.5)],
|
||||
"Y": [(1151.4, 552.1), (1151.4, 570), (1151.4, 587.9), (1151.4, 605.7)],
|
||||
"A": [(1152.9, 722.2), (1152.9, 740.1), (1152.9, 757.9), (1152.9, 775.8)]}
|
||||
MOT = [("X", 940, 402, 1014, True, None), ("Z", 1190, 402, 1031, False, 1014),
|
||||
("Y", 1440, 418, 1162, False, None), ("A", 1690, 436, 1180, False, 1163)]
|
||||
CORES = [PRETO, VERDE, (0.843, 0.188, 0.122), (0.184, 0.435, 0.816)]
|
||||
for eixo, cx, trilha, col, direita, desvio in MOT:
|
||||
for k, cor in enumerate(CORES):
|
||||
d, pino, cc = (k - 1.5) * 7.2, PINOS[eixo][k], col + k * 4.5
|
||||
y = trilha + (3 - k if direita else k) * 4.5
|
||||
l = [(cx + d, 396), (cx + d, y), (cc, y)]
|
||||
if desvio:
|
||||
yd, c2 = 655 + k * 4.5, desvio + k * 4.5
|
||||
l += [(cc, yd), (c2, yd), (c2, pino[1]), pino]
|
||||
else:
|
||||
l += [(cc, pino[1]), pino]
|
||||
pts = ", ".join(f"{x:.1f}, {yy:.1f}" for x, yy in rota(l, 4))
|
||||
no(f"Cabo{eixo}{k + 1}", "Line2D", "Fios", points=f"PackedVector2Array({pts})", width=3.5,
|
||||
default_color=f"Color({','.join(map(str, cor))},1)", joint_mode=2, texture_mode=1,
|
||||
material=sub("ShaderMaterial", f"shader = {SHADER}",
|
||||
f"shader_parameter/cor = Vector3({cor[0]},{cor[1]},{cor[2]})",
|
||||
"shader_parameter/periodo = 8.6"),
|
||||
metadata__motor=f'"{eixo}"')
|
||||
|
||||
# rótulos: só o que se lê no tamanho pequeno
|
||||
texto("RotuloBateria", "4S", 173, 700, "disp", 44, w=120, centro=True)
|
||||
texto("RotuloServidor", "Servidor", 1415, 702, "disp", 34, w=230, centro=True)
|
||||
for eixo, cx, *_ in MOT:
|
||||
texto(f"Eixo{eixo}", eixo, cx + 72, 270, "disp", 56, w=70)
|
||||
texto(f"Sentido{eixo}", "", cx + 72, 370, "disp", 60, w=70, cor="1,1,1,1")
|
||||
img("Resistor1k", "resistor.png", 1490, 744.4, 72, 16, "Info")
|
||||
img("Resistor2k", "resistor.png", 1766, 642, 68, 16, "Info")
|
||||
|
||||
# rodas: desenho próprio
|
||||
ROD = ext("Script", "res://scripts/circuito/roda_mecanum.gd")
|
||||
for eixo, cx, *_ in MOT:
|
||||
roda = {"X": "RR", "Z": "RL", "Y": "FR", "A": "FL"}[eixo]
|
||||
no(f"Roda{eixo}", "Control", "Info", **caixa(cx, 163, 1, 1), script=ROD, mao=1 if roda in ("FL", "RR") else -1)
|
||||
|
||||
SCRIPT = ext("Script", "res://scripts/circuito/painel_circuito.gd")
|
||||
saida = [f"[gd_scene format=3]\n"] + recursos + [""] + [s + "\n" for s in subs]
|
||||
saida.append(f'[node name="PainelCircuito" type="Control"]\noffset_right = 1920.0\noffset_bottom = 1080.0\n'
|
||||
f'mouse_filter = 2\nscript = {SCRIPT}\n')
|
||||
saida += [n + "\n" for n in nos]
|
||||
(RAIZ / "cenas" / "painel_circuito.tscn").write_text("\n".join(saida))
|
||||
print("nós:", len(nos) + 1)
|
||||