# Holey Webcontrol Testing

**URL:** <https://forums.maslowcnc.com/t/holey-webcontrol-testing/10810>\
**Category:** Software\
**Created:** [August 10, 2019, 9:39pm UTC](https://forums.maslowcnc.com/t/holey-webcontrol-testing/10810 "2019-08-10T21:39:00Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![madgrizzle](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/madgrizzle/32/1372_2.png) [@madgrizzle](https://forums.maslowcnc.com/u/madgrizzle)\
**Post date:** [August 10, 2019, 9:39pm UTC](https://forums.maslowcnc.com/t/holey-webcontrol-testing/10810/1 "2019-08-10T21:39:00Z")

</div>

So as to not muddle up the Holey Calibration thread, I’m making this for those that want to test the holey calibration in webcontrol.

This is for ‘experienced’ users… like @dlang (needed to tag him to this thread)

First, please make a copy of your webcontrol.json file (it’s in .WebControl) as a backup (this is equivalent to groundcontrol.ini)

This doesn’t currently work with webmcp, so you will need to get to a terminal on your RPI and issue:

> docker pull madgrizzle/holeywebcontrol

If all goes well, you should get a digest of:

> sha256:f33c2d9421785cb848cebf900c2172775d74687d48a1937fd0e3724d15413155

to run it, you have to type in this command:

> docker run -it -v $HOME/.WebControl:/root/.WebControl -p 5000:5000 --privileged madgrizzle/holeywebcontrol python main.py

You’ll get the normal warning about groundcontrol version being 101.25, just click close

You will need to update the firmware using Actions-\>Upgrade Holey Firmware. You will still get a warning about groundcontrol vs. firmware versions, just click close.

To calibrate, click Actions-\>Holey Calibration and then click “Cut Holey Calibration Pattern”. Feel free to close off the window at that point so you can see the sled move on the screen. Once done, do the measurements. I’ll update later to include the image file, but here it is:

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/maslowcnc/original/2X/e/e214b3871c46841acdb534634ca7b35171ef57f1.png)

After collecting measurements in millimeters only… MM ONLY!!!, enter them into the corresponding fields… in MM ONLY!. Click Calculate and wait a few seconds. If nothing bad happens, you’ll get optimized values for height of motors, distance between motors, and left & right chain tolerance. You’ll also get a meaningless calibration error value (I think I just hard coded a 1 at this point). The Accept Results button should become enabled. If good, click Accept Results and hopefully they will upload correctly to the controller.

---

<div class="post-metadata">

**Author:** ![madgrizzle](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/madgrizzle/32/1372_2.png) [@madgrizzle](https://forums.maslowcnc.com/u/madgrizzle)\
**Post date:** [August 10, 2019, 9:39pm UTC](https://forums.maslowcnc.com/t/holey-webcontrol-testing/10810/2 "2019-08-10T21:39:56Z")

</div>

Oh, and this firmware is incompatible with @joshua’s ground control branch. I had to move two firmware keys to different positions.

---

<div class="post-metadata">

**Author:** ![Joshua](https://avatars.discourse-cdn.com/v4/letter/j/48db29/32.png) [@Joshua](https://forums.maslowcnc.com/u/Joshua)\
**Post date:** [August 10, 2019, 10:49pm UTC](https://forums.maslowcnc.com/t/holey-webcontrol-testing/10810/3 "2019-08-10T22:49:31Z")

</div>

One question. The optimization uses the kinematics equations from Ground Control (Web Control). Because of this, it has to be the exact same as what is in the firmware. Did you update the kinematics equations?

---

<div class="post-metadata">

**Author:** ![madgrizzle](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/madgrizzle/32/1372_2.png) [@madgrizzle](https://forums.maslowcnc.com/u/madgrizzle)\
**Post date:** [August 10, 2019, 11:29pm UTC](https://forums.maslowcnc.com/t/holey-webcontrol-testing/10810/4 "2019-08-10T23:29:06Z")

</div>

I didn’t change any equations… just changed the firmware keys of 45 and 46 to 75 and 76.

---

<div class="post-metadata">

**Author:** ![dlang](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/dlang/32/859_2.png) [@dlang](https://forums.maslowcnc.com/u/dlang)\
**Post date:** [August 11, 2019, 1:08am UTC](https://forums.maslowcnc.com/t/holey-webcontrol-testing/10810/5 "2019-08-11T01:08:39Z")

</div>

I believe you mean you didn’t change them from what they are in the holey  
branch, correct?

David Lang

---

<div class="post-metadata">

**Author:** ![madgrizzle](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/madgrizzle/32/1372_2.png) [@madgrizzle](https://forums.maslowcnc.com/u/madgrizzle)\
**Post date:** [August 11, 2019, 2:33am UTC](https://forums.maslowcnc.com/t/holey-webcontrol-testing/10810/6 "2019-08-11T02:33:42Z")

</div>

I might not be understanding the question. The only thing different between @joshua’s firmware and the one I made was in settings.cpp, I changed 45 and 46 to 75 and 76. None of the variable names changed. In webcontrol, it sends the sled weight and chain elasticity using $75 and $76. That’s the only difference.

---

<div class="post-metadata">

**Author:** ![Joshua](https://avatars.discourse-cdn.com/v4/letter/j/48db29/32.png) [@Joshua](https://forums.maslowcnc.com/u/Joshua)\
**Post date:** [August 11, 2019, 12:00pm UTC](https://forums.maslowcnc.com/t/holey-webcontrol-testing/10810/7 "2019-08-11T12:00:41Z")

</div>

In Ground Control, there is a file, kinematics.py. did you update that in Web Control?

---

<div class="post-metadata">

**Author:** ![madgrizzle](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/madgrizzle/32/1372_2.png) [@madgrizzle](https://forums.maslowcnc.com/u/madgrizzle)\
**Post date:** [August 11, 2019, 1:46pm UTC](https://forums.maslowcnc.com/t/holey-webcontrol-testing/10810/8 "2019-08-11T13:46:55Z")

</div>

Yes. webcontrol doesn’t have the simulator so I just used your branch to pull that in.

I get the same results as you do running that test file.

---

<div class="post-metadata">

**Author:** ![madgrizzle](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/madgrizzle/32/1372_2.png) [@madgrizzle](https://forums.maslowcnc.com/u/madgrizzle)\
**Post date:** [August 13, 2019, 6:23pm UTC](https://forums.maslowcnc.com/t/holey-webcontrol-testing/10810/9 "2019-08-13T18:23:17Z")

</div>

So it looks like $45 (chain elasticity) and $46 (sled weight) were previously committed to stock firmware as hard coded values with firmware keys. I didn’t realize that to be the case since they aren’t in ground control. So it looks like I have to rework optical calibration. If you test this webcontrol version out, you might have to wipe the eeprom to get it to work. I’ll working on moving things around if you all want to wait (@dlang and @johnboiles)

---

<div class="post-metadata">

**Author:** ![JohnC](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@JohnC](https://forums.maslowcnc.com/u/JohnC)\
**Post date:** [August 16, 2019, 1:15am UTC](https://forums.maslowcnc.com/t/holey-webcontrol-testing/10810/10 "2019-08-16T01:15:52Z")

</div>

I think I want to get in on this. Which firmware is needed and will the holey branch webcontrol send it to the arduino?

---

<div class="post-metadata">

**Author:** ![dlang](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/dlang/32/859_2.png) [@dlang](https://forums.maslowcnc.com/u/dlang)\
**Post date:** [August 16, 2019, 1:32am UTC](https://forums.maslowcnc.com/t/holey-webcontrol-testing/10810/11 "2019-08-16T01:32:05Z")

</div>

WebControl will flash the arduino for you, including fetching it.

David Lang

---

<div class="post-metadata">

**Author:** ![dlang](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/dlang/32/859_2.png) [@dlang](https://forums.maslowcnc.com/u/dlang)\
**Post date:** [August 16, 2019, 1:34am UTC](https://forums.maslowcnc.com/t/holey-webcontrol-testing/10810/12 "2019-08-16T01:34:51Z")

</div>

what sort of ETA are you thinking for the update?

---

<div class="post-metadata">

**Author:** ![madgrizzle](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/madgrizzle/32/1372_2.png) [@madgrizzle](https://forums.maslowcnc.com/u/madgrizzle)\
**Post date:** [August 16, 2019, 10:41am UTC](https://forums.maslowcnc.com/t/holey-webcontrol-testing/10810/13 "2019-08-16T10:41:58Z")

</div>

I’ll try to get it updated tonight, but regardless, what’s there will work… just _might_ have to wipe eeprom at some point once the new firmware keys get incorporated into main branch. Nevertheless, I’ll try to rebuild it tonight.

---

<div class="post-metadata">

**Author:** ![madgrizzle](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/madgrizzle/32/1372_2.png) [@madgrizzle](https://forums.maslowcnc.com/u/madgrizzle)\
**Post date:** [August 16, 2019, 10:44am UTC](https://forums.maslowcnc.com/t/holey-webcontrol-testing/10810/14 "2019-08-16T10:44:47Z")

</div>

> [@dlang](#):
>
> including fetching it.

To be technically correct (the best kind of correct\*), webcontrol has it already compiled and embedded as a file in the docker. So there’s no “fetching” needed.

\*See Futurama episode, S2E14, “Hermes Requisitions His Groove Back”

---

<div class="post-metadata">

**Author:** ![JohnC](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@JohnC](https://forums.maslowcnc.com/u/JohnC)\
**Post date:** [August 16, 2019, 1:39pm UTC](https://forums.maslowcnc.com/t/holey-webcontrol-testing/10810/15 "2019-08-16T13:39:29Z")

</div>

@madgrizzle Just so I’m in the right place, I want to upload the “custom” firmware for WebControl w/holey, right? There are three firmware options.

---

<div class="post-metadata">

**Author:** ![madgrizzle](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/madgrizzle/32/1372_2.png) [@madgrizzle](https://forums.maslowcnc.com/u/madgrizzle)\
**Post date:** [August 16, 2019, 1:42pm UTC](https://forums.maslowcnc.com/t/holey-webcontrol-testing/10810/16 "2019-08-16T13:42:43Z")

</div>

Is there a “Upgrade Holey Firmware” option? if so, that’s the one.

---

<div class="post-metadata">

**Author:** ![JohnC](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@JohnC](https://forums.maslowcnc.com/u/JohnC)\
**Post date:** [August 16, 2019, 1:46pm UTC](https://forums.maslowcnc.com/t/holey-webcontrol-testing/10810/17 "2019-08-16T13:46:11Z")

</div>

Yes, but once the holey firmware is in place it triggers the firmware mismatch message. The “some functions will be disabled” part is why I’m double checking.

---

<div class="post-metadata">

**Author:** ![madgrizzle](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/madgrizzle/32/1372_2.png) [@madgrizzle](https://forums.maslowcnc.com/u/madgrizzle)\
**Post date:** [August 16, 2019, 1:46pm UTC](https://forums.maslowcnc.com/t/holey-webcontrol-testing/10810/18 "2019-08-16T13:46:47Z")

</div>

> [@madgrizzle](#):
>
> You will need to update the firmware using Actions-\>Upgrade Holey Firmware. You will still get a warning about groundcontrol vs. firmware versions, just click close.

🙂

---

<div class="post-metadata">

**Author:** ![madgrizzle](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/madgrizzle/32/1372_2.png) [@madgrizzle](https://forums.maslowcnc.com/u/madgrizzle)\
**Post date:** [August 16, 2019, 1:48pm UTC](https://forums.maslowcnc.com/t/holey-webcontrol-testing/10810/19 "2019-08-16T13:48:56Z")

</div>

Ideally, until holey calibration is incorporated into the stock firmware, it would present a version number different than the stock firmware… But this is for testing purposes… Since I forked the holey firmware repository, I probably will make that change on my own when this gets pushed as an official webcontrol release.

---

<div class="post-metadata">

**Author:** ![madgrizzle](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/madgrizzle/32/1372_2.png) [@madgrizzle](https://forums.maslowcnc.com/u/madgrizzle)\
**Post date:** [August 16, 2019, 10:49pm UTC](https://forums.maslowcnc.com/t/holey-webcontrol-testing/10810/20 "2019-08-16T22:49:19Z")

</div>

I just pushed an update version with firmware keys modified. Let me know if there are any issues.

[Next page](https://forums.maslowcnc.com/t/holey-webcontrol-testing/10810.md?page=2)
