Verified Commit 6cd7203d authored by Leonid Cupikov's avatar Leonid Cupikov
Browse files

Add immediateResponse to HDSP methods

parent 0b8bbaff
......@@ -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)
......
......@@ -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>
......
......@@ -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,
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment