Debian Codegraph @

gui/dialogs/hitch.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2 <!-- Version: 01/2023 -->
3
4 <PropertyList>
5 <name>hitch_dialog</name>
6 <layout>vbox</layout>
7 <default-padding>5</default-padding>
8 <modal>false</modal>
9 <width>500</width>
10
11
12 <nasal>
13 <open><![CDATA[
14 var w_type = props.globals.getNode("/sim/hitches/winch/type", 1);
15 var w_cofo = props.globals.initNode("/sim/hitches/winch/constant-force", 0, "BOOL");
16 var w_cosp = props.globals.initNode("/sim/hitches/winch/constant-speed", 0, "BOOL");
17
18 var w_type_ls = setlistener( w_type, func{
19 if( w_type.getIntValue() == 0 ){
20 w_cofo.setBoolValue( 1 );
21 w_cosp.setBoolValue( 0 );
22 } else {
23 w_cofo.setBoolValue( 0 );
24 w_cosp.setBoolValue( 1 );
25 }
26 });
27
28 var w_cofo_ls = setlistener( w_cofo, func{
29 if( w_cofo.getBoolValue() ){
30 w_type.setIntValue( 0 );
31 } else {
32 w_type.setIntValue( 1 );
33 }
34 });
35
36 var w_cosp_ls = setlistener( w_cosp, func{
37 if( w_cosp.getBoolValue() ){
38 w_type.setIntValue( 1 );
39 } else {
40 w_type.setIntValue( 0 );
41 }
42 });
43
44 if( w_type.getIntValue() == 0 ){
45 w_cofo.setBoolValue( 1 );
46 w_cosp.setBoolValue( 0 );
47 } else {
48 w_cofo.setBoolValue( 0 );
49 w_cosp.setBoolValue( 1 );
50 }
51 ]]>
52 </open>
53 <close>
54 removelistener( w_type_ls );
55 removelistener( w_cofo_ls );
56 removelistener( w_cosp_ls );
57 </close>
58 </nasal>
59
60 <!-- Title Bar -->
61 <group>
62 <layout>hbox</layout>
63 <empty>
64 <stretch>true</stretch>
65 </empty>
66 <text>
67 <label>Hitch Configuration (Aerotow and Winch)</label>
68 </text>
69 <empty>
70 <stretch>true</stretch>
71 </empty>
72 <button>
73 <legend>X</legend>
74 <key>Esc</key>
75 <pref-width>20</pref-width>
76 <pref-height>20</pref-height>
77 <binding>
78 <command>nasal</command>
79 <script>towing.write_config();</script>
80 </binding>
81 <binding>
82 <command>dialog-close</command>
83 </binding>
84 </button>
85 </group>
86
87 <hrule/>
88 <hrule/>
89
90 <group>
91 <layout>hbox</layout>
92 <empty>
93 <stretch>true</stretch>
94 </empty>
95 <text>
96 <label>Aerotow Settings</label>
97 </text>
98 <empty>
99 <stretch>true</stretch>
100 </empty>
101 </group>
102
103 <group>
104 <layout>hbox</layout>
105 <text>
106 <halign>left</halign>
107 <label>Rope Elastic Constant</label>
108 </text>
109 <group>
110 <layout>hbox</layout>
111 <halign>right</halign>
112 <text>
113 <label>100000N</label>
114 <live>true</live>
115 <format>%6dN</format>
116 <property>/sim/hitches/aerotow/tow/elastic-constant</property>
117 <color>
118 <red>0.2</red>
119 <green>0.9</green>
120 <blue>0.2</blue>
121 </color>
122 </text>
123 <empty>
124 <stretch>true</stretch>
125 </empty>
126 <vrule/>
127 <group>
128 <width>60</width>
129 <text>
130 <label>0N</label>
131 </text>
132 </group>
133 <slider>
134 <name>aerotow_elastic_constant</name>
135 <property>/sim/hitches/aerotow/tow/elastic-constant</property>
136 <min>0</min>
137 <max>100000</max>
138 <step>10</step>
139 <binding>
140 <command>dialog-apply</command>
141 </binding>
142 </slider>
143 <group>
144 <width>60</width>
145 <text>
146 <label>100000N</label>
147 </text>
148 </group>
149 </group>
150 </group>
151 <group>
152 <layout>hbox</layout>
153 <text>
154 <halign>left</halign>
155 <label>Weight per Meter</label>
156 </text>
157 <group>
158 <layout>hbox</layout>
159 <halign>right</halign>
160 <text>
161 <label>1.000kg/m</label>
162 <live>true</live>
163 <format>%1.3fkg/m</format>
164 <property>/sim/hitches/aerotow/tow/weight-per-m-kg-m</property>
165 <color>
166 <red>0.2</red>
167 <green>0.9</green>
168 <blue>0.2</blue>
169 </color>
170 </text>
171 <empty>
172 <stretch>true</stretch>
173 </empty>
174 <vrule/>
175 <group>
176 <width>60</width>
177 <text>
178 <label>0.0kg/m</label>
179 </text>
180 </group>
181 <slider>
182 <name>aerotow_weight_m</name>
183 <property>/sim/hitches/aerotow/tow/weight-per-m-kg-m</property>
184 <min>0</min>
185 <max>1</max>
186 <step>0.001</step>
187 <binding>
188 <command>dialog-apply</command>
189 </binding>
190 </slider>
191 <group>
192 <width>60</width>
193 <text>
194 <label>1.0kg/m</label>
195 </text>
196 </group>
197 </group>
198 </group>
199 <group>
200 <layout>hbox</layout>
201 <text>
202 <halign>left</halign>
203 <label>Length</label>
204 </text>
205 <group>
206 <layout>hbox</layout>
207 <halign>right</halign>
208 <text>
209 <label>200m</label>
210 <live>true</live>
211 <format>%3dm </format>
212 <property>sim/hitches/aerotow/tow/length</property>
213 <color>
214 <red>0.2</red>
215 <green>0.9</green>
216 <blue>0.2</blue>
217 </color>
218 </text>
219 <empty>
220 <stretch>true</stretch>
221 </empty>
222 <vrule/>
223 <group>
224 <width>60</width>
225 <text>
226 <label>5m</label>
227 </text>
228 </group>
229 <slider>
230 <name>aerotow_tow_length</name>
231 <property>sim/hitches/aerotow/tow/length</property>
232 <min>5</min>
233 <max>200</max>
234 <step>5</step>
235 <binding>
236 <command>dialog-apply</command>
237 </binding>
238 </slider>
239 <group>
240 <width>60</width>
241 <text>
242 <label>200m</label>
243 </text>
244 </group>
245 </group>
246 </group>
247 <group>
248 <layout>hbox</layout>
249 <text>
250 <halign>left</halign>
251 <label>Rope Diameter</label>
252 </text>
253 <group>
254 <layout>hbox</layout>
255 <halign>right</halign>
256 <text>
257 <label>50.0mm</label>
258 <live>true</live>
259 <format>%3.1fmm</format>
260 <property>/sim/hitches/aerotow/rope/rope-diameter-mm</property>
261 <color>
262 <red>0.2</red>
263 <green>0.9</green>
264 <blue>0.2</blue>
265 </color>
266 </text>
267 <empty>
268 <stretch>true</stretch>
269 </empty>
270 <vrule/>
271 <group>
272 <width>60</width>
273 <text>
274 <label>0.0mm</label>
275 </text>
276 </group>
277 <slider>
278 <name>aerotow_rope_diameter</name>
279 <property>/sim/hitches/aerotow/rope/rope-diameter-mm</property>
280 <min>0</min>
281 <max>50</max>
282 <step>0.5</step>
283 <binding>
284 <command>dialog-apply</command>
285 </binding>
286 </slider>
287 <group>
288 <width>60</width>
289 <text>
290 <label>50.0mm</label>
291 </text>
292 </group>
293 </group>
294 </group>
295
296
297 <hrule/>
298
299 <group>
300 <layout>hbox</layout>
301 <empty>
302 <stretch>true</stretch>
303 </empty>
304 <text>
305 <label>Winch Settings</label>
306 </text>
307 <empty>
308 <stretch>true</stretch>
309 </empty>
310 </group>
311
312 <group>
313 <layout>hbox</layout>
314 <text>
315 <halign>left</halign>
316 <label>Winch Type</label>
317 </text>
318 <group>
319 <layout>hbox</layout>
320 <halign>right</halign>
321 <empty>
322 <stretch>true</stretch>
323 </empty>
324 <checkbox>
325 <name>const_force</name>
326 <label>constant force</label>
327 <live>1</live>
328 <property>/sim/hitches/winch/constant-force</property>
329 <binding>
330 <command>dialog-apply</command>
331 <object-name>const_force</object-name>
332 </binding>
333 </checkbox>
334 <checkbox>
335 <name>const_speed</name>
336 <label>constant speed</label>
337 <live>1</live>
338 <property>/sim/hitches/winch/constant-speed</property>
339 <binding>
340 <command>dialog-apply</command>
341 <object-name>const_speed</object-name>
342 </binding>
343 </checkbox>
344 </group>
345 </group>
346 <group>
347 <layout>hbox</layout>
348 <text>
349 <halign>left</halign>
350 <label>Rope Elastic Constant</label>
351 </text>
352 <group>
353 <layout>hbox</layout>
354 <halign>right</halign>
355 <text>
356 <label>100000N</label>
357 <live>true</live>
358 <format>%6dN</format>
359 <property>/sim/hitches/winch/tow/elastic-constant</property>
360 <color>
361 <red>0.2</red>
362 <green>0.9</green>
363 <blue>0.2</blue>
364 </color>
365 </text>
366 <empty>
367 <stretch>true</stretch>
368 </empty>
369 <vrule/>
370 <group>
371 <width>60</width>
372 <text>
373 <label>0N</label>
374 </text>
375 </group>
376 <slider>
377 <name>winch_elastic_constant</name>
378 <property>/sim/hitches/winch/tow/elastic-constant</property>
379 <min>0</min>
380 <max>100000</max>
381 <step>10</step>
382 <binding>
383 <command>dialog-apply</command>
384 </binding>
385 </slider>
386 <group>
387 <width>60</width>
388 <text>
389 <label>100000N</label>
390 </text>
391 </group>
392 </group>
393 </group>
394 <group>
395 <layout>hbox</layout>
396 <text>
397 <halign>left</halign>
398 <label>Weight per Meter</label>
399 </text>
400 <group>
401 <layout>hbox</layout>
402 <halign>right</halign>
403 <text>
404 <label>1.000kg/m</label>
405 <live>true</live>
406 <format>%1.3fkg/m</format>
407 <property>/sim/hitches/winch/tow/weight-per-m-kg-m</property>
408 <color>
409 <red>0.2</red>
410 <green>0.9</green>
411 <blue>0.2</blue>
412 </color>
413 </text>
414 <empty>
415 <stretch>true</stretch>
416 </empty>
417 <vrule/>
418 <group>
419 <width>60</width>
420 <text>
421 <label>0.0kg/m</label>
422 </text>
423 </group>
424 <slider>
425 <name>winch_weight_m</name>
426 <property>/sim/hitches/winch/tow/weight-per-m-kg-m</property>
427 <min>0</min>
428 <max>1</max>
429 <step>0.001</step>
430 <binding>
431 <command>dialog-apply</command>
432 </binding>
433 </slider>
434 <group>
435 <width>60</width>
436 <text>
437 <label>1.0kg/m</label>
438 </text>
439 </group>
440 </group>
441 </group>
442 <group>
443 <layout>hbox</layout>
444 <text>
445 <halign>left</halign>
446 <label>Initial Length</label>
447 </text>
448 <group>
449 <layout>hbox</layout>
450 <halign>right</halign>
451 <text>
452 <label>2000m</label>
453 <live>true</live>
454 <format>%4.0fm </format>
455 <property>/sim/hitches/winch/winch/initial-tow-length-m</property>
456 <color>
457 <red>0.2</red>
458 <green>0.9</green>
459 <blue>0.2</blue>
460 </color>
461 </text>
462 <empty>
463 <stretch>true</stretch>
464 </empty>
465 <vrule/>
466 <group>
467 <width>60</width>
468 <text>
469 <label>20m</label>
470 </text>
471 </group>
472 <slider>
473 <name>winch_tow_length</name>
474 <property>/sim/hitches/winch/winch/initial-tow-length-m</property>
475 <min>20</min>
476 <max>2000</max>
477 <step>5</step>
478 <binding>
479 <command>dialog-apply</command>
480 </binding>
481 </slider>
482 <group>
483 <width>60</width>
484 <text>
485 <label>2000m</label>
486 </text>
487 </group>
488 </group>
489 </group>
490 <group>
491 <layout>hbox</layout>
492 <text>
493 <halign>left</halign>
494 <label>Rope Diameter</label>
495 </text>
496 <group>
497 <layout>hbox</layout>
498 <halign>right</halign>
499 <text>
500 <label>50.0mm</label>
501 <live>true</live>
502 <format>%2.1fmm</format>
503 <property>/sim/hitches/winch/rope/rope-diameter-mm</property>
504 <color>
505 <red>0.2</red>
506 <green>0.9</green>
507 <blue>0.2</blue>
508 </color>
509 </text>
510 <empty>
511 <stretch>true</stretch>
512 </empty>
513 <vrule/>
514 <group>
515 <width>60</width>
516 <text>
517 <label>0.0mm</label>
518 </text>
519 </group>
520 <slider>
521 <name>winch_rope_diameter</name>
522 <property>/sim/hitches/winch/rope/rope-diameter-mm</property>
523 <min>0</min>
524 <max>50</max>
525 <step>0.5</step>
526 <binding>
527 <command>dialog-apply</command>
528 </binding>
529 </slider>
530 <group>
531 <width>60</width>
532 <text>
533 <label>50.0mm</label>
534 </text>
535 </group>
536 </group>
537 </group>
538 <group>
539 <layout>hbox</layout>
540 <text>
541 <halign>left</halign>
542 <label>Max. Length</label>
543 </text>
544 <group>
545 <layout>hbox</layout>
546 <halign>right</halign>
547 <text>
548 <label>2000m</label>
549 <live>true</live>
550 <format>%4.0fm </format>
551 <property>/sim/hitches/winch/winch/max-tow-length-m</property>
552 <color>
553 <red>0.2</red>
554 <green>0.9</green>
555 <blue>0.2</blue>
556 </color>
557 </text>
558 <empty>
559 <stretch>true</stretch>
560 </empty>
561 <vrule/>
562 <group>
563 <width>60</width>
564 <text>
565 <label>20m</label>
566 </text>
567 </group>
568 <slider>
569 <name>max_tow_length</name>
570 <property>/sim/hitches/winch/winch/max-tow-length-m</property>
571 <min>20</min>
572 <max>2000</max>
573 <step>5</step>
574 <binding>
575 <command>dialog-apply</command>
576 </binding>
577 </slider>
578 <group>
579 <width>60</width>
580 <text>
581 <label>2000m</label>
582 </text>
583 </group>
584 </group>
585 </group>
586 <group>
587 <layout>hbox</layout>
588 <text>
589 <halign>left</halign>
590 <label>Max. Spool Speed</label>
591 </text>
592 <group>
593 <layout>hbox</layout>
594 <halign>right</halign>
595 <text>
596 <label>80 m/s</label>
597 <live>true</live>
598 <format>%2d m/s</format>
599 <property>sim/hitches/winch/winch/max-spool-speed-m-s</property>
600 <color>
601 <red>0.2</red>
602 <green>0.9</green>
603 <blue>0.2</blue>
604 </color>
605 </text>
606 <empty>
607 <stretch>true</stretch>
608 </empty>
609 <vrule/>
610 <group>
611 <width>60</width>
612 <text>
613 <label>5 m/s</label>
614 </text>
615 </group>
616 <slider>
617 <name>max_spool_speed</name>
618 <property>sim/hitches/winch/winch/max-spool-speed-m-s</property>
619 <min>5</min>
620 <max>80</max>
621 <step>5</step>
622 <binding>
623 <command>dialog-apply</command>
624 </binding>
625 </slider>
626 <group>
627 <width>60</width>
628 <text>
629 <label>80 m/s</label>
630 </text>
631 </group>
632 </group>
633 </group>
634 <group>
635 <layout>hbox</layout>
636 <text>
637 <halign>left</halign>
638 <label>Force Acceleration</label>
639 </text>
640 <group>
641 <layout>hbox</layout>
642 <halign>right</halign>
643 <text>
644 <label>5000 N/s</label>
645 <live>true</live>
646 <format>%4d N/s</format>
647 <property>sim/hitches/winch/winch/force-acceleration-N-s</property>
648 <color>
649 <red>0.2</red>
650 <green>0.9</green>
651 <blue>0.2</blue>
652 </color>
653 </text>
654 <empty>
655 <stretch>true</stretch>
656 </empty>
657 <vrule/>
658 <group>
659 <width>60</width>
660 <text>
661 <label>100 N/s</label>
662 </text>
663 </group>
664 <slider>
665 <name>force_accel</name>
666 <property>sim/hitches/winch/winch/force-acceleration-N-s</property>
667 <min>100</min>
668 <max>5000</max>
669 <step>100</step>
670 <binding>
671 <command>dialog-apply</command>
672 </binding>
673 </slider>
674 <group>
675 <width>60</width>
676 <text>
677 <label>5000 N/s</label>
678 </text>
679 </group>
680 </group>
681 </group>
682 <group>
683 <layout>hbox</layout>
684 <text>
685 <halign>left</halign>
686 <label>Spool Acceleration</label>
687 </text>
688 <group>
689 <layout>hbox</layout>
690 <halign>right</halign>
691 <text>
692 <label>50.0 m/s^2</label>
693 <live>true</live>
694 <format>%3.1f m/s^2</format>
695 <property>sim/hitches/winch/winch/spool-acceleration-m-s-s</property>
696 <color>
697 <red>0.2</red>
698 <green>0.9</green>
699 <blue>0.2</blue>
700 </color>
701 </text>
702 <empty>
703 <stretch>true</stretch>
704 </empty>
705 <vrule/>
706 <group>
707 <width>60</width>
708 <text>
709 <label>1.0 m/s^2</label>
710 </text>
711 </group>
712 <slider>
713 <name>spool_accel</name>
714 <property>sim/hitches/winch/winch/spool-acceleration-m-s-s</property>
715 <min>1</min>
716 <max>50</max>
717 <step>1</step>
718 <binding>
719 <command>dialog-apply</command>
720 </binding>
721 </slider>
722 <group>
723 <width>60</width>
724 <text>
725 <label>50.0 m/s^2</label>
726 </text>
727 </group>
728 </group>
729 </group>
730 <group>
731 <layout>hbox</layout>
732 <text>
733 <halign>left</halign>
734 <label>Max. Unspool Speed</label>
735 </text>
736 <group>
737 <layout>hbox</layout>
738 <halign>right</halign>
739 <text>
740 <label>100 m/s</label>
741 <live>true</live>
742 <format>%3d m/s</format>
743 <property>sim/hitches/winch/winch/max-unspool-speed-m-s</property>
744 <color>
745 <red>0.2</red>
746 <green>0.9</green>
747 <blue>0.2</blue>
748 </color>
749 </text>
750 <empty>
751 <stretch>true</stretch>
752 </empty>
753 <vrule/>
754 <group>
755 <width>60</width>
756 <text>
757 <label>5 m/s</label>
758 </text>
759 </group>
760 <slider>
761 <name>max_unspool_speed</name>
762 <property>sim/hitches/winch/winch/max-unspool-speed-m-s</property>
763 <min>0</min>
764 <max>10000</max>
765 <step>100.</step>
766 <binding>
767 <command>dialog-apply</command>
768 </binding>
769 </slider>
770 <group>
771 <width>60</width>
772 <text>
773 <label>100 m/s</label>
774 </text>
775 </group>
776 </group>
777 </group>
778 <group>
779 <layout>hbox</layout>
780 <text>
781 <halign>left</halign>
782 <label>Max. Force</label>
783 </text>
784 <group>
785 <layout>hbox</layout>
786 <halign>right</halign>
787 <text>
788 <label>10000N</label>
789 <live>true</live>
790 <format>%5dN</format>
791 <property>/sim/hitches/winch/winch/max-force-N</property>
792 <color>
793 <red>0.2</red>
794 <green>0.9</green>
795 <blue>0.2</blue>
796 </color>
797 </text>
798 <empty>
799 <stretch>true</stretch>
800 </empty>
801 <vrule/>
802 <group>
803 <width>60</width>
804 <text>
805 <label>0N</label>
806 </text>
807 </group>
808 <slider>
809 <name>max_force</name>
810 <property>/sim/hitches/winch/winch/max-force-N</property>
811 <min>0</min>
812 <max>10000</max>
813 <step>100.</step>
814 <binding>
815 <command>dialog-apply</command>
816 </binding>
817 </slider>
818 <group>
819 <width>60</width>
820 <text>
821 <label>10000N</label>
822 </text>
823 </group>
824 </group>
825 </group>
826 <group>
827 <layout>hbox</layout>
828 <text>
829 <halign>left</halign>
830 <label>Max. Power</label>
831 </text>
832 <group>
833 <layout>hbox</layout>
834 <halign>right</halign>
835 <text>
836 <label>300 kW</label>
837 <live>true</live>
838 <format>%3d kW</format>
839 <property>/sim/hitches/winch/winch/max-power-kW</property>
840 <color>
841 <red>0.2</red>
842 <green>0.9</green>
843 <blue>0.2</blue>
844 </color>
845 </text>
846 <empty>
847 <stretch>true</stretch>
848 </empty>
849 <vrule/>
850 <group>
851 <width>60</width>
852 <text>
853 <label>0 kW</label>
854 </text>
855 </group>
856 <slider>
857 <name>max_power</name>
858 <property>/sim/hitches/winch/winch/max-power-kW</property>
859 <min>0</min>
860 <max>300</max>
861 <step>1</step>
862 <binding>
863 <command>dialog-apply</command>
864 </binding>
865 </slider>
866 <group>
867 <width>60</width>
868 <text>
869 <label>300 kW</label>
870 </text>
871 </group>
872 </group>
873 </group>
874
875
876 <hrule/>
877
878 <group>
879 <layout>hbox</layout>
880 <text>
881 <halign>left</halign>
882 <label>Show winch messages</label>
883 </text>
884 <group>
885 <layout>hbox</layout>
886 <halign>right</halign>
887 <empty>
888 <stretch>true</stretch>
889 </empty>
890 <checkbox>
891 <name>msg_launch_signaller</name>
892 <label>Launch signaller</label>
893 <live>1</live>
894 <property>/sim/hitches/winch/messages/launch-signaller</property>
895 <binding>
896 <command>dialog-apply</command>
897 <object-name>msg_launch_signaller</object-name>
898 </binding>
899 </checkbox>
900 <checkbox>
901 <name>msg_winch_driver</name>
902 <label>Winch driver</label>
903 <live>1</live>
904 <property>/sim/hitches/winch/messages/winch-driver</property>
905 <binding>
906 <command>dialog-apply</command>
907 <object-name>msg_winch_driver</object-name>
908 </binding>
909 </checkbox>
910 </group>
911 </group>
912 <group>
913 <layout>hbox</layout>
914 <halign>right</halign>
915 <empty>
916 <stretch>true</stretch>
917 </empty>
918 <checkbox>
919 <name>msg_pilot</name>
920 <label>Pilot</label>
921 <live>1</live>
922 <property>/sim/hitches/winch/messages/pilot</property>
923 <binding>
924 <command>dialog-apply</command>
925 <object-name>msg_pilot</object-name>
926 </binding>
927 </checkbox>
928 <checkbox>
929 <name>msg_remote_ac</name>
930 <label>Tow Aircraft</label>
931 <live>1</live>
932 <property>/sim/hitches/winch/messages/remote-ac</property>
933 <binding>
934 <command>dialog-apply</command>
935 <object-name>msg_remote_ac</object-name>
936 </binding>
937 </checkbox>
938 </group>
939
940 <hrule/>
941 <hrule/>
942
943 <!-- Bottom Line -->
944 <group>
945 <layout>hbox</layout>
946 <empty>
947 <stretch>true</stretch>
948 </empty>
949 <button>
950 <legend>Close</legend>
951 <binding>
952 <command>nasal</command>
953 <script>towing.write_config();</script>
954 </binding>
955 <binding>
956 <command>dialog-close</command>
957 </binding>
958 </button>
959 <empty>
960 <stretch>true</stretch>
961 </empty>
962 </group>
963
964 </PropertyList>