Notifications
Clear all

Function arguments

79 Posts
8 Users
12 Likes
2,387 Views
barrie
(@barrie)
Member
Joined: 1 year ago
Posts: 86
Topic starter  

@zander @will

this link should work

https://www.dropbox.com/s/2a46f31d17gv86n/yoyo.MOV?dl=0


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6495
 

@barrie Very nice. Have you replaced your function yoyo with @Wills?

 

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
barrie
(@barrie)
Member
Joined: 1 year ago
Posts: 86
Topic starter  

@zander My only options are 4K and HD on my iPhone. My last link should now be OK. Please let me know


   
ReplyQuote
Will
 Will
(@will)
Member
Joined: 3 years ago
Posts: 2502
 
Posted by: @barrie

@zander @will

this link should work

https://www.dropbox.com/s/2a46f31d17gv86n/yoyo.MOV?dl=0

IT appears to be exactly the same as the previous version. i was able to view it barrie, that's how I was able to list the steps required to make it available to me.

i am, however, astonished that the software change made no difference at all to the motion of the steppers.

I had a psychic girlfriend but she left me before we met.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6495
 

@barrie Yes, it worked, but for future ref get a video file compressor as these things tend to come up on the forum from time to time.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
barrie
(@barrie)
Member
Joined: 1 year ago
Posts: 86
Topic starter  

@robotbuilder Yes they do run simultaneously. I used similar code. If you see the video you will see the problem.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6495
 

@will My money is on Sir Stepper @Will,

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6495
 

@barrie I don't know about everyone else but the video tell me nothing. I have no idea what to expect. Have you fixed the code per @Will 's instructions?

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
barrie
(@barrie)
Member
Joined: 1 year ago
Posts: 86
Topic starter  

@zander Thanks. I'll look for a video compressor.  I tried stuffit but it only shrunk by about 4Meg.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6495
 

@barrie Just repost your code.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6495
 

@barrie Yes, you cannot compress video like text, it's already compressed. You have to convert it from say 4K  to 640 x 480 or 1024 x 768 if file is small enough.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
barrie
(@barrie)
Member
Joined: 1 year ago
Posts: 86
Topic starter  
This post was modified 1 year ago by barrie

   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6495
 

@barrie If I may suggest, delete all the code not needed to do yoyo and try again. This is a standard debugging step.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6495
 

@barrie Another thing to try is to reverse the sign on the MoveTo statements inside yoyo, change the no sign to - and the - to +.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
barrie
(@barrie)
Member
Joined: 1 year ago
Posts: 86
Topic starter  

@will yes I replaced my function with yours. It compiled OK but had zero affect. My version works correctly for individual rotors but I need them both to move at the same time. I knew the  "runToPosition" would block that is why I did not put a while loop in the yoyo function.I also tried the ".run" statement but that did not work. "runToPosition" in my original code would be ideal if the two steppers moved at the same time.


   
ReplyQuote
Page 4 / 6