Welcome, Guest. Please login or register.

Username: Password:

Author Topic: bug in source code from github?  (Read 3141 times)

grizli21

  • Full Member
  • ***
  • Posts: 28
    • View Profile
bug in source code from github?
« on: November 15, 2015, 23:28:32 »

Hello Thomas,
First congratulation for this awesome project you are kind enough to share with us.
I made an astroEQ based on the mega2560 today , this won't be mine as i already have an azeq6 electronic in my 720:1 losmandy g11 but a friend of my local club.
To make it more conveniant i rerouted some pin when i designed the board .

So i used the source code in github to modify the pinout.
Then when i started to use it, i noticed some freezing as well as unsmooth moving on axis.
To make long story short, after some trying i replaced the original Pinmappings.h and the problem persisted (i can tell it thanks to the status light wich froozen).
Finally i uploaded the hex file that is in the config tool and the status led is no more freezing .

The stock source code firmwire isn't working as expected, but the hex firmwire is working fine.
Should i deduce that the source code published isn't the lastest revision?

All the best
Nicolas
Logged

TCWORLD

  • Administrator
  • *****
  • Posts: 809
    • View Profile
    • AstroEQ
Re: bug in source code from github?
« Reply #1 on: November 17, 2015, 05:27:47 »

What's on the Github is the latest version - and what is compiled in the release .hex files.

The trouble with the source code is that AstroEQ is pushing what the ATMega162 can do to the absolute limit - and in order to get it working you'll notice I had to resort to writing time critical chunks in assembly language amongst other things. It's possible that if you have a different compiler that it may be optimising code differently and either breaking the inline assembly, or making the code to slow to run.

I posted in the other thread about which IDE/compiler I am using at the moment.
Logged
Tom Carpenter (AstroEQ)

grizli21

  • Full Member
  • ***
  • Posts: 28
    • View Profile
Re: bug in source code from github?
« Reply #2 on: November 17, 2015, 18:40:23 »

Hi Thomas,
Excellent advise for the arduino compiler.
I tryed the arduino 1.0.6 and everything run perfectly now.

Your code is really impressive. I have yet a lot more to learn.
Just modified a little bit to get 2 microstep in high speed mode along the 32microstep in tracking. First time i saw the g11 running  5° seconds :-)

Question has been asked but is it worth trying the synscan handpad with ? mine is next to me and it was something i was about to do anyway .
Logged