Skip to content
GitLab
About GitLab
GitLab: the DevOps platform
Explore GitLab
Install GitLab
How GitLab compares
Get started
GitLab docs
GitLab Learn
Pricing
Talk to an expert
/
Help
What's new
2
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Projects
Groups
Snippets
Sign up now
Login
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sweet Tech AS
platform
handy-js
Commits
6cd7203d
Verified
Commit
6cd7203d
authored
Dec 07, 2022
by
Leonid Cupikov
Browse files
Add immediateResponse to HDSP methods
parent
0b8bbaff
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
6cd7203d
...
...
@@ -392,6 +392,7 @@ Gets the HSSP loop setting of the device
-
`positionType`
`<'absolute' | 'percent'>`
-
`speedType`
`<'time' | 'absolute' | 'percent'>`
-
`stopOnTarget`
`<boolean>`
-
`immediateResponse`
`<boolean>`
-
**Returns**
`<Promise>`
-
`result`
[
`<HDSPResult>`
](
#hdspresult
)
...
...
examples/index.html
View file @
6cd7203d
...
...
@@ -262,6 +262,19 @@
</label>
</div>
</div>
<div
class=
"col-12"
>
<div
class=
"form-check"
>
<input
class=
"form-check-input"
type=
"checkbox"
name=
"immediateResponse"
id=
"hdspImmediateResponse"
/>
<label
class=
"form-check-label"
for=
"hdspImmediateResponse"
>
Immediate Response
</label>
</div>
</div>
<div
class=
"col-12"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
Apply
</button>
</div>
...
...
src/handy.ts
View file @
6cd7203d
...
...
@@ -605,6 +605,7 @@ export class Handy {
positionType
:
'
absolute
'
|
'
percent
'
,
speedType
:
'
time
'
|
'
absolute
'
|
'
percent
'
,
stopOnTarget
:
boolean
,
immediateResponse
:
boolean
,
)
{
const
connectionKey
=
await
this
.
#
getKey
();
this
.
#
updateRequired
();
...
...
@@ -630,6 +631,7 @@ export class Handy {
if
(
speedType
===
'
time
'
)
{
return
this
.
API
.
put
.
HDSP
.
xat
(
connectionKey
,
{
stopOnTarget
,
immediateResponse
,
position
,
duration
:
speed
,
});
...
...
@@ -637,6 +639,7 @@ export class Handy {
return
this
.
API
.
put
.
HDSP
.
xava
(
connectionKey
,
{
stopOnTarget
,
immediateResponse
,
position
,
velocity
:
speed
,
});
...
...
@@ -652,6 +655,7 @@ export class Handy {
}
return
this
.
API
.
put
.
HDSP
.
xpt
(
connectionKey
,
{
stopOnTarget
,
immediateResponse
,
position
,
duration
:
speed
,
});
...
...
@@ -663,6 +667,7 @@ export class Handy {
}
return
this
.
API
.
put
.
HDSP
.
xpva
(
connectionKey
,
{
stopOnTarget
,
immediateResponse
,
position
,
velocity
:
speed
,
});
...
...
@@ -674,6 +679,7 @@ export class Handy {
return
this
.
API
.
put
.
HDSP
.
xpvp
(
connectionKey
,
{
stopOnTarget
,
immediateResponse
,
position
,
velocity
:
speed
,
});
...
...
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