-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #163 from mcgill-robotics/angular-ui-arm-control-a…
…nd-feedback Angular UI arm control and feedback
- Loading branch information
Showing
10 changed files
with
359 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,76 @@ | ||
<!-- <p>arm-page works! </p> --> | ||
<!-- <div style="display: flex; flex-wrap: wrap;"> --> | ||
<app-generic height="235px" width="640px"> | ||
|
||
<app-generic height="340px" width="500px"> | ||
<div style="display: flex; justify-content: space-between;"> | ||
<div> | ||
Joystick <button (click)="enableGamepad()">On</button> <button (click)="disableGamepad()">Off</button> | ||
</div> | ||
<div>Mode: {{last_arm_control_mode}}</div> | ||
<div>Sensitivity: {{formatNumber(maxVelPercentage / 0.125)}}</div> | ||
</div> | ||
<br/> | ||
<!-- Delta: 10 --> | ||
<div class="arm"> | ||
<!-- to solve button problem, chnaged app.comp.ts and app.module.ts --> | ||
<div id="armInfo" style="height: 235px; width: 645px;"> | ||
<h4>Arm Info</h4> | ||
<div> | ||
<p id="Wrist">Wrist: {{ array[0] }}</p> | ||
<div id="buttons"> | ||
<button id="wrist1" (click)="increment(0)">+</button> | ||
<button id="wrist2" (click)="decrement(0)">-</button> | ||
</div> | ||
</div> | ||
|
||
<div> | ||
<p id="Elbow">Elbow: {{ array[1] }}</p> | ||
<div id="buttons"> | ||
<button (click)="increment(1)">+</button> | ||
<button (click)="decrement(1)">-</button> | ||
</div> | ||
</div> | ||
|
||
<div> | ||
<p id="Shoulder">Shoulder: {{ array[2] }}</p> | ||
<table> | ||
<tr> | ||
<td>Elbow</td> | ||
<td>{{formatNumber(arm_brushless_FB[0])}}</td> | ||
<td style="width: 15%;"> | ||
<div id="buttons"> | ||
<button id="wrist1" (click)="increment(0)">+</button> | ||
<button id="wrist2" (click)="decrement(0)">-</button> | ||
</div> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>Shoulder</td> | ||
<td>{{formatNumber(arm_brushless_FB[1])}}</td> | ||
<td style="width: 15%;"> | ||
<div id="buttons"> | ||
<button (click)="increment(2)">+</button> | ||
<button (click)="decrement(2)">-</button> | ||
</div> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>Tumor</td> | ||
<td>{{formatNumber(arm_brushless_FB[2])}}</td> | ||
<td style="width: 15%;"> | ||
<div id="buttons"> | ||
<button (click)="increment(2)">+</button> | ||
<button (click)="decrement(2)">-</button> | ||
</div> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>Wrist Pitch</td> | ||
<td>{{formatNumber(arm_brushed_FB[2])}}</td> | ||
<td style="width: 15%;"> | ||
<div id="buttons"> | ||
<button (click)="increment(2)">+</button> | ||
<button (click)="decrement(2)">-</button> | ||
</div> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td>Wrist Roll</td> | ||
<td>{{formatNumber(arm_brushed_FB[1])}}</td> | ||
<td style="width: 15%;"> | ||
<div id="buttons"> | ||
<button (click)="increment(2)">+</button> | ||
<button (click)="decrement(2)">-</button> | ||
</div> | ||
</td> | ||
</tr> | ||
<td>End Effector</td> | ||
<td>{{formatNumber(arm_brushed_FB[0])}}</td> | ||
<td style="width: 15%;"> | ||
<div id="buttons"> | ||
<button (click)="increment(2)">+</button> | ||
<button (click)="decrement(2)">-</button> | ||
</div> | ||
</div> | ||
</div> | ||
</td> | ||
</table> | ||
</div> | ||
|
||
<body> | ||
</body> | ||
|
||
</app-generic> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
angular_ui_app/src/app/components/generic/generic.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<div style="border: 1px solid black; background-color: #2A3F47;" [ngStyle]="{ height: height, width: width}"> | ||
<div style="border: 1px solid black; background-color: #2A3F47; margin-bottom: 5px;" [ngStyle]="{ height: height, width: width}"> | ||
<ng-content></ng-content> | ||
</div> |
Oops, something went wrong.