Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
cfry committed Sep 3, 2017
1 parent f12ca5a commit d2b1221
Show file tree
Hide file tree
Showing 19 changed files with 825 additions and 467 deletions.
Binary file removed build_dexter.zip
Binary file not shown.
Binary file removed build_dexter/arm_body_subassembly.png
Binary file not shown.
117 changes: 0 additions & 117 deletions build_dexter/build_dexter.html

This file was deleted.

6 changes: 3 additions & 3 deletions dextersim.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,14 @@ DexterSim = class DexterSim{
//we convert from arcseconds to degrees, pass in the angles to preduct,
// which returns a dur in seconds, then convert that to milliseconds
break;
case "b": //move_to xyz
//case "b": //move_to xyz
/*if (!isNaN(instruction_array[2])) robot_status[Dexter.ds_j5_x_index] = instruction_array[2]
if (!isNaN(instruction_array[3])) robot_status[Dexter.ds_j5_y_index] = instruction_array[3]
if (!isNaN(instruction_array[4])) robot_status[Dexter.ds_j5_z_index] = instruction_array[4]
if (!isNaN(instruction_array[5])) robot_status[Dexter.ds_j4_angle_index] = instruction_array[5]
DexterSim.fill_in_robot_status_joint_angles(robot_status)
*/
break;
// break;
// case "B": //move_to_relative xyz
/*if (!isNaN(instruction_array[2])) robot_status[Dexter.ds_j5_x_index] = robot_status[Dexter.ds_j5_x_index] + instruction_array[2]
if (!isNaN(instruction_array[3])) robot_status[Dexter.ds_j5_y_index] = robot_status[Dexter.ds_j5_y_index] + instruction_array[3]
Expand Down Expand Up @@ -261,7 +261,7 @@ DexterSim = class DexterSim{
//For heartbeats, we want to leave in robot_status whatever the last "real" instruction was in there.
// ds_copy[0] = instruction_array[0] //instruction id
//}
if ($("#real_time_sim_checkbox_id").val()){
if (!$("#real_time_sim_checkbox_id").val()){
dur = 0
}
this.ending_time_of_cur_instruction = robot_status[Dexter.START_TIME] + dur
Expand Down
28 changes: 16 additions & 12 deletions doc/guide.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<details class="doc_details"><summary>About</summary>
This is <a href="http://hdrobotic.com/" target="_blank">Dexter</a> Development Environment<br/>
version: <span id="dde_version_id">2.0.14</span><br/>
released: <span id="dde_release_date_id">Aug 30, 2017</span>
version: <span id="dde_version_id">2.0.15</span><br/>
released: <span id="dde_release_date_id">Sep 3, 2017</span>
<p/>
DDE helps you create, debug, and send software to a Dexter robot.
You can use any JavaScript augmented with DDE-specific functions to help find out about,
Expand Down Expand Up @@ -878,17 +878,17 @@ <h4 id="print_statements_doc_id">Print Statements</h4>
pane.
<button>Insert&#9660;</button> <i>Print to output</i> has items that print in a few different colors
so that you can distinquish some outputs from others in a complex debugging session.
See <a href="#" onclick="open_doc(out_doc_id)">out</a></li>
See <a href="#" onclick="open_doc(out_doc_id)">out</a>.</li>

<li><b>Robot.out</b> <code>Robot.out("some data")</code> creates an
instruction in a Job's do_list to print content to the output console
with similar functionality to <code>out</code>
See <a href="#" onclick="open_doc('Robot.out_doc_id')">Robot.out</a></li>
See <a href="#" onclick="open_doc('Robot.out_doc_id')">Robot.out</a>.</li>

<li><b>show_instructions</b> <code title="unEVALable">new Job({show_instructions=some_fn})</code>
lets you call an arbitrary function (with clever defaults) before each
instruction in a Job is run.
<a href="#" onclick="open_doc(new_job_parameters_doc_id)">new Job parameters</a></li>
See <a href="#" onclick="open_doc(new_job_parameters_doc_id)">new Job parameters</a>.</li>

<li><b>inspect</b> <code title="unEVALable"> inspect(some_data) </code>
will print a representation of its argument in the output pane.
Expand All @@ -899,16 +899,20 @@ <h4 id="print_statements_doc_id">Print Statements</h4>
<li><b>clear_output</b> To erase all content in the output pane,
click the <button>Clear</button> button in the Output pane or
Eval <code>clear_output()</code><br/>
See <a href="#" onclick="open_doc(clear_output_doc_id)">clear_output</a></li>
See <a href="#" onclick="open_doc(clear_output_doc_id)">clear_output</a>.</li>
<li><b>speak</b> behaves similarly to <code>out</code> in that it returns its 1st arg.
It can be useful in contexts where you want to know a value but don't
want to look at the screen to find it.
An example of speak is on the Insert menu, under <i>Learn Javascript/debugging</i>.
See also <a href="#" onclick="open_doc(speak_doc_id)">speak doc</a>.</li>
</il>
<li><b>Human.notify</b> is an instruction that you can place ina Job's do_list to pop up a window
and give the user a message.
See <a href="#" onclick="open_doc('Human.notify_doc_id')">Human.notify</a>.</li>
</ul>
<p/>
<b>speak</b> behaves similarly to <code>out</code> in that it returns its 1st arg.
It can be useful in contexts where you want to know a value but don't
want to look at the screen to find it.
speak is on the Insert menu, under <i>Learn Javascript/debugging</i>.
<p/>
Because JavaScript, like all popular textual programming languages, has not been
designed with the "user experience" in mind, it is full of
designed <i>carefully</i> with the "user experience" in mind, it is full of
ideosyncracies that make learning how to use it require remembering a lot
of "gotchas". The web has pages on common JavaScript programming errors.
A good one is: <a href="https://www.w3schools.com/js/js_mistakes.asp">
Expand Down
Loading

0 comments on commit d2b1221

Please sign in to comment.