Close



Results 1 to 10 of 757

Threaded View

  1. #11
    Super Moderator Roxy's Avatar
    Join Date
    Apr 2014
    Location
    Lone Star State
    Posts
    2,182
    Quote Originally Posted by syl20 View Post
    Roxy,
    I have some questions :

    Why do I have some "+-" before some values of the topography ?
    Code:
      --0.22982 +0.00091 +-0.17644
      -0.22815 --0.00807 +-0.13478
      -0.17552 +0.19074 --0.04623
    I have "+", "-", "--", "+-" !!! I see in your code, you add some extra for the font used in pronterface. But what I understand, is that you double the sign, so why do I have many "+-" ?
    Which set of code do you have printing the bed topology? Which #define ORIGIN_???_??? is enabled?

    I looked, and my guess is you have ORIGIN_FRONT_RIGHT defined ???? If so, I think you found a bug. Let's change that code to be:

    Code:
    #ifdef ORIGIN_FRONT_RIGHT
        for(yy=0; yy<n_points; yy++ {
            for(xx=0; xx<n_points; xx++) { 
                SERIAL_PROTOCOLPGM(" ");
                if ( eqnBVector[ (n_points*n_points)-yy-(xx*n_points)-1 ]-mean >= 0.0)
                    SERIAL_PROTOCOLPGM("+");
                else
                    SERIAL_PROTOCOLPGM("-");    // we need this extra - because Proterface uses a preportional
                                    // font and it causes the columns to not line up nice without it.
                SERIAL_PROTOCOL_F( eqnBVector[ (n_points*n_points)-yy-(xx*n_points)-1 ]-mean, 5);
            }
            SERIAL_PROTOCOLPGM(" \n");
        }
    #endif  // ORIGIN_FRONT_RIGHT

    Quote Originally Posted by syl20 View Post
    In addition, I do not understand the values of this matrix ; here are the values :
    Code:
    Bed x: 78.00 y: 71.00 z: 3.21
    Bed x: 101.00 y: 71.00 z: 3.67
    Bed x: 124.00 y: 71.00 z: 3.62
    Bed x: 78.00 y: 97.00 z: 3.44
    Bed x: 101.00 y: 97.00 z: 3.43
    Bed x: 124.00 y: 97.00 z: 3.63
    Bed x: 78.00 y: 123.00 z: 3.27
    Bed x: 101.00 y: 123.00 z: 3.31
    Bed x: 124.00 y: 123.00 z: 3.40
    Eqn coefficients: a: 0.01 b: -0.00 d: 3.24
    Mean of sampled points: 3.442588
    With Libre Office Calc, my matrix is
    -0,232588 -0,002588 -0,172588
    0,227412 -0,012588 -0,132588
    0,177412 0,187412 -0,042588

    Some values mismatch too much with the topography given by the code ... I do not know why ?

    Thanks a lot
    I haven't actually run the ORIGIN_FRONT_RIGHT code. (And that is why it is easy for a bug to sneak in.) I've made those changes but we need to check them out. How about you re-run it with the suggested change. And we will wrestle it to the ground with the new numbers?
    Last edited by Roxy; 10-20-2014 at 04:36 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •