Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tammo Jan Dijkema
dt_ctrl
Commits
39587a02
Commit
39587a02
authored
Nov 03, 2022
by
Tammo Jan Dijkema
Browse files
Add slow mode to mech.html
parent
719f52df
Changes
1
Hide whitespace changes
Inline
Side-by-side
console/htdocs/mech.html
View file @
39587a02
...
...
@@ -119,6 +119,17 @@ var azimuth_software = new dt_ui_window_trace("azimuth_software", "Azimuth Softw
is_number
:
false
,
highlight
:
false
,
},
{
name
:
"
azimuth_spg.slow_mode_used
"
,
frequency
:
0
,
label
:
"
Max speed
"
,
true_text
:
"
Reduced max speed
"
,
false_text
:
"
Normal max speed
"
,
func
:
one
,
is_bool
:
true
,
true_color
:
"
orange
"
,
false_color
:
"
lightgreen
"
},
{
name
:
"
Azimuth_Position
"
,
frequency
:
4
,
...
...
@@ -467,6 +478,7 @@ var weather_url = "status.cgi";
var
azimuth_enable_command
=
new
controller_command
(
"
azimuth_servo_state
"
,
"
bool
"
);
var
azimuth_recover_command
=
new
controller_command
(
"
azimuth_recover
"
,
"
bool
"
);
var
azimuth_slow_mode_command
=
new
controller_command
(
"
azimuth_slow_mode
"
,
"
bool
"
);
var
elevation_enable_command
=
new
controller_command
(
"
elevation_servo_state
"
,
"
bool
"
);
var
elevation_recover_command
=
new
controller_command
(
"
elevation_recover
"
,
"
bool
"
);
...
...
@@ -475,10 +487,13 @@ var button_azimuth_enable = new dt_ui_button("button_azimuth_enable");
var
button_azimuth_disable
=
new
dt_ui_button
(
"
button_azimuth_disable
"
);
var
button_azimuth_override
=
new
dt_ui_button
(
"
button_azimuth_override
"
);
var
button_azimuth_normal
=
new
dt_ui_button
(
"
button_azimuth_normal
"
);
var
button_azimuth_normal_speed
=
new
dt_ui_button
(
"
button_azimuth_normal_speed
"
);
var
button_azimuth_reduced_speed
=
new
dt_ui_button
(
"
button_azimuth_reduced_speed
"
);
azimuth_software
.
add
([
button_azimuth_enable
,
button_azimuth_disable
,
button_azimuth_override
,
button_azimuth_normal
,
]);
button_azimuth_override
,
button_azimuth_normal
,
button_azimuth_normal_speed
,
button_azimuth_reduced_speed
,
]);
button_azimuth_enable
.
text_set
(
"
Enable
"
);
button_azimuth_enable
.
color_set
(
"
darkgreen
"
);
...
...
@@ -506,16 +521,28 @@ button_azimuth_override.onclick = function azimuth_override() {
azimuth_recover_command
.
send
(
1
);
}
button_azimuth_normal_speed
.
text_set
(
"
Set normal speed
"
);
button_azimuth_normal_speed
.
color_set
(
"
darkgreen
"
);
button_azimuth_normal_speed
.
onclick
=
function
azimuth_set_normal_speed
()
{
azimuth_slow_mode_command
.
send
(
0
);
}
button_azimuth_reduced_speed
.
text_set
(
"
Set reduced speed
"
);
button_azimuth_reduced_speed
.
color_set
(
"
darkgreen
"
);
button_azimuth_reduced_speed
.
onclick
=
function
azimuth_set_reduced_speed
()
{
azimuth_slow_mode_command
.
send
(
1
);
}
azimuth_software
.
resize_equal
([
button_azimuth_enable
,
button_azimuth_disable
,
button_azimuth_override
,
button_azimuth_normal
,
]);
azimuth_software
.
align_vertical
([
button_azimuth_enable
,
button_azimuth_normal
]);
azimuth_software
.
align_horizontal
([
button_azimuth_enable
,
button_azimuth_disable
]);
azimuth_software
.
align_horizontal
([
button_azimuth_normal
,
button_azimuth_override
]);
azimuth_software
.
align_horizontal
([
button_azimuth_enable
,
button_azimuth_disable
,
button_azimuth_normal_speed
]);
azimuth_software
.
align_horizontal
([
button_azimuth_normal
,
button_azimuth_override
,
button_azimuth_reduced_speed
]);
azimuth_software
.
resize_equal
([
button_azimuth_normal_speed
,
button_azimuth_reduced_speed
]);
azimuth_software
.
align_vertical
([
button_azimuth_normal_speed
,
button_azimuth_reduced_speed
]);
var
button_elevation_enable
=
new
dt_ui_button
(
"
button_elevation_enable
"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment