Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Norwegian, penlift not working
mike
Newbie
Posts: 5
Permalink
mike
Post Norwegian, penlift not working
on: May 9, 2013, 22:04
Quote

Dear all,

not sure if this is a bug or a feature. However I tried to use the Norwegian function in the roving tab. Put an image on a SD and started the machine. After one line is finished, the machine has to move to the next lines starting point. But the penlift is not activated.

Any Ideas?
Thanks
Mike

Image

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Norwegian, penlift not working
on: May 9, 2013, 22:27
Quote

Hallo! It's been a while since I've used it, but I'm pretty sure it should be doing the pen lifts. The bit that _has_ changed is the pen lift behaviour generally. It looks to me that your lift servo horn is pointing away from the surface entirely - does it move at all?

mike
Newbie
Posts: 5
Permalink
mike
Post Re: Norwegian, penlift not working
on: May 10, 2013, 05:36
Quote

Yes, my servo works fine. I can use it manually or if the controller sends a C13/C14 command. Strange. I will check the controller code...Good to know that it should lift the pen.

mike
Newbie
Posts: 5
Permalink
mike
Post Re: Norwegian, penlift not working
on: May 10, 2013, 05:53
Quote

Quote from mike on May 10, 2013, 05:36
Yes, my servo works fine. I can use it manually or if the controller sends a C13/C14 command. Strange. I will check the controller code...Good to know that it should lift the pen.

Just checked the code of Sandy. And as expected, from a code perspective everything looks fine Herr Doktor 🙂 ! Since my machine is working on a picture right now I have to wait until it finishes. Then I will check why the penlift is not working in my constellation...

AndyB
Beginner
Posts: 28
Permalink
AndyB
Post Re: Norwegian, penlift not working
on: June 23, 2013, 15:52
Quote

Did you figure this out Mike?

I tried fiddling with norwegian for the first time yesterday, everything seems to work fine. Except pen lifts, it rotates the servo 180 degrees instead of 90, dismantling the gondola in the process (servo arm pushes on the back part of the gondola) This was with version 1.61 of the controller, 1.62 won't show up as connected for some reason.

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Norwegian, penlift not working
on: June 23, 2013, 18:04
Quote

Andy, Mike, I've just been having a look at this. Turns out it is to do with the penlift_penup / pendown function being called from within another function. The penlift command has spotted that there are parameters, and thinks they are for it, but of course the parameters belong to the containing function. In this case, "rove_drawNorwegianFromFile".

So that's why it's turning to that weird angle. There's a proper way to fix this, and I'll do that for the next firmware release, but in the meantime, you can get it to behave by adding a line "

noOfParams = 0;

" to the drawNorwegian function code so it looks like:

void rove_drawNorwegianFromFile()
{
  if (useRoveArea)
  {
    // get parameters
    String filename = inParam1;
    int maxAmplitude = multiplier(asInt(inParam2));
    int wavelength = multiplier(asInt(inParam3));
    inNoOfParams = 0;
    ...
AndyB
Beginner
Posts: 28
Permalink
AndyB
Post Re: Norwegian, penlift not working
on: June 24, 2013, 11:17
Quote

Thanks Sandy,

I guess you're talking about editing the processing controller code here? I've been searching trough the entire code and tabs and can't find the section you're describing. In which .pde should it be?

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Norwegian, penlift not working
on: June 24, 2013, 11:38
Quote

Oh right, no it's the arduino firmware code, sorry I didn't actually say that bit!

sn

AndyB
Beginner
Posts: 28
Permalink
AndyB
Post Re: Norwegian, penlift not working
on: June 24, 2013, 15:02
Quote

Hmmf. Edited the code (rove.ino right?) and re-uploaded the firmware via xloader, it still does the 180 deg pen lift. Is it because I used the xloader method to upload the firmware? Also, it did the trace image run with the pen up, is this normal or should it actually draw a bounding box around?

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Norwegian, penlift not working
on: June 24, 2013, 15:56
Quote

You would need to edit the code, then compile it, then either upload using the arduino IDE or find where there hex file has been saved (someplace like C:/Users/<you>/AppData/Local/Tmp) if you wanted to use xloader.

The hex file is not recompiled in the arduino source code folder automatically.

The trace image behaviour is correct, it should move to the extent of the finished image, but not drop the pen to make any marks.

sn

sjpatel199-
2
Newbie
Posts: 5
Permalink
Post Re: Norwegian, penlift not working
on: July 18, 2013, 18:17
Quote

Hey, I edited the code as you said in earlier posts. Now, it is not going to that weird angle, but there is still no pen lift. Any ideas?

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.044 seconds.