Skip to content

Commit aba4795

Browse files
committed
release
1 parent 43038f0 commit aba4795

File tree

11 files changed

+405
-198
lines changed

11 files changed

+405
-198
lines changed

core/dexter_defaults.js

Lines changed: 127 additions & 128 deletions
Large diffs are not rendered by default.

core/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
global.dde_version = "3.8.14" //require("../package.json").version
2-
global.dde_release_date = "Mar 24, 2022" //require("../package.json").release_date
1+
global.dde_version = "3.8.15" //require("../package.json").version
2+
global.dde_release_date = "Sep 24, 2023" //require("../package.json").release_date
33

44
console.log("dde_version: " + global.dde_version + " dde_release_date: " + global.dde_release_date +
55
"\nRead electron_dde/core/job_engine_doc.txt for how to use the Job Engine.\n")

core/socket.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ var Socket = class Socket{
200200
}
201201

202202
static string_to_array_buffer(str){
203-
var arr_buff = Buffer.alloc(128) //dexter code expecting fixed length buf of 128
203+
var arr_buff = Buffer.alloc(256) //was 128 but no reason not to have it 256
204204
//var view1 = new Uint8Array(arr_buff)
205205
for(var i = 0; i < str.length; i++){
206206
let char = str[i]
@@ -337,6 +337,13 @@ var Socket = class Socket{
337337
Math.round(instruction_array_copy[Instruction.INSTRUCTION_ARG5] * 3600)
338338
return instruction_array_copy
339339
}
340+
else if (name.startsWith("Joint")){ //JointSpeed, JointAcceleration
341+
let instruction_array_copy = instruction_array.slice()
342+
let old_val = instruction_array_copy[Instruction.INSTRUCTION_ARG2]
343+
let new_val = old_val * 3600
344+
instruction_array_copy[Instruction.INSTRUCTION_ARG2] = new_val
345+
return instruction_array_copy
346+
}
340347
else { return instruction_array }
341348
}
342349
else if (oplet == "T") { //move_to_straight
@@ -449,6 +456,13 @@ var Socket = class Socket{
449456
instruction_array_copy[Instruction.INSTRUCTION_ARG5] / 3600 //orig in arcsecs
450457
return instruction_array_copy
451458
}
459+
else if (name.startsWith("Joint")){ //JointSpeed, JointAcceleration
460+
let instruction_array_copy = instruction_array.slice()
461+
let old_val = instruction_array_copy[Instruction.INSTRUCTION_ARG2]
462+
let new_val = old_val / 3600
463+
instruction_array_copy[Instruction.INSTRUCTION_ARG2] = new_val
464+
return instruction_array_copy
465+
}
452466
else { return instruction_array }
453467
}
454468
else if (oplet == "T") { //move_to_straight

doc/guide.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<details class="doc_details"><summary>About</summary>
1010
This is <a href="http://hdrobotic.com/" target="_blank">Dexter</a> Development Environment<br/>
11-
version: <span id="dde_version_id">3.8.14</span><br/>
12-
released: <span id="dde_release_date_id">Mar 24, 2022</span>
11+
version: <span id="dde_version_id">3.8.15</span><br/>
12+
released: <span id="dde_release_date_id">Sep 9, 2023</span>
1313
<p></p>
1414
DDE helps you create, debug, and send software to a Dexter robot.
1515
You can use any JavaScript augmented with DDE-specific functions to help find out about,

doc/release_notes.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@
66
.doc_details summary { font-weight: 600; }
77
</style>
88

9+
<details class="doc_details"><summary>v 3.8.15, Sep 8, 2023</summary>
10+
Highlights: defaults.makeins and Calibrate Dexter dialog improved.
11+
<ul>
12+
<li>Its now possible to close the dde window if you've replace
13+
the whole ui (the body_id dom element).</li>
14+
<li>The packet size for sending instructions to Dexter has been increased from 128 to 256 bytes.</li>
15+
<li> defaults.makeins handling has been improved, including support for
16+
S params: <code>JointSpeed</code>, <code>JointAcceleration</code>,
17+
<code>MotorMode</code>.</li>
18+
<li>Calibrate Dexter dialog has been updated with a new footer legend
19+
and 5 properties across the bottom.</li>
20+
</ul>
21+
</details>
22+
923
<details class="doc_details"><summary>v 3.8.14, Mar 24, 2023</summary>
1024
Highlights mathjs installed, fixes and extensions for class Vector that uses mathjs.
1125
Fix and extension for Defaults.make_ins processing.

doc_code.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,10 @@ function doc_pane_showing(){
245245
}
246246

247247
function output_pane_showing(){
248-
return !$('#left_splitter_id').jqxSplitter('panels')[1].collapsed
248+
if(globalThis.left_splitter_id) {
249+
return !$('#left_splitter_id').jqxSplitter('panels')[1].collapsed
250+
}
251+
else { return false }
249252
}
250253

251254
function misc_pane_showing(){

editor.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,6 @@ handle_open_system_file = function(vals){
672672
else if (vals.clicked_button_value == "show dde_persistent.json"){
673673
let content = read_file("dde_persistent.json")
674674
content = replace_substrings(content, "\n", "<br/>")
675-
out(content)
676675
}
677676
else if (vals.clicked_button_value.endsWith("Defaults.make_ins")){
678677
let path = vals.clicked_button_value.split(" ")[1]

low_level_dexter/ViewEyeRealTime.js

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,50 @@ function display_center_guess(){
201201
append_in_ui("svg_id", thehtml)
202202
}
203203

204+
var old_point_color = "#dedede"
205+
206+
var cal_saved_points_old
207+
208+
function DisplayOldEyePoints(J_num)
209+
{
210+
let thehtml = ""
211+
212+
read_file_async("Dexter.default:/srv/samba/share/cal_data/OldEyeData.json", "utf-8",
213+
function(err, data)
214+
{
215+
if(err) { //only call the callback for the read IF there's a read error.
216+
out("No previous eye to read from! This is normal if this robot is new or was last calibrated before May 5, 2022.")
217+
}
218+
else {
219+
out("DisplayOldEyePoints(): " + data)
220+
if (!data.startsWith("Error"))
221+
{
222+
cal_saved_points_old = JSON.parse(data)
223+
224+
225+
if (cal_saved_points_old) // Noah: Need to officially define cal_saved_points_old from exported file
226+
{
227+
let points_old = cal_saved_points_old[J_num-1]
228+
if (points_old[0]) //Plots old points from last calibration
229+
{
230+
let num_points_old = points_old[0].length
231+
for(let i = 0; i < num_points_old; i++)
232+
{
233+
thehtml = (svg_circle({html_class: "cal_svg_circle", cx: points_old[0][i], cy: flip_point_y(points_old[1][i]), r: 1, border_color: old_point_color, color: old_point_color}))
234+
append_in_ui("svg_id", thehtml)
235+
}
236+
}
237+
}
238+
}
239+
else
240+
{
241+
out("No previous eye to read from! This is normal if this robot is new or was last calibrated before May 5, 2022.")
242+
}
243+
}
244+
}
245+
)
246+
}
247+
204248
function init_view_eye(){
205249
//this table has to be here rather than top level in the file even though it is static,
206250
//because _nbits_cf and the other units cause errors if referenced at top level.
@@ -215,7 +259,13 @@ function init_view_eye(){
215259
new Job({name: "CalSensors", keep_history: true, show_instructions: false,
216260
inter_do_item_dur: .5 * _ms,
217261
robot: cal_get_robot(),
218-
do_list: [ Dexter.move_all_joints(0, 0, 0, 0, 0),
262+
do_list: [
263+
function()
264+
{
265+
let J_num = window.cal_working_axis+1
266+
DisplayOldEyePoints(J_num)
267+
},
268+
Dexter.move_all_joints(0, 0, 0, 0, 0),
219269
Robot.label("loop_start"),
220270
make_ins("w", 42, 64),
221271
make_ins("S", "J1BoundryHigh",648000*_arcsec),
@@ -255,7 +305,8 @@ function init_view_eye(){
255305
let start_button_dom_elt = window["Start_J_" + J_num + "_id"]
256306
start_button_dom_elt.style.backgroundColor = "rgb(230, 179, 255)"
257307
cal_instructions_id.innerHTML =
258-
"Click in the center of the dot_pattern circle.<br/>"}
308+
"Click in the center of the dot_pattern circle."
309+
}
259310
]})
260311
cal_init_view_eye_state = false
261312
}

0 commit comments

Comments
 (0)