View: 287|Reply: 3

programming code for RaspTank

[Copy link]

3

Threads

6

Posts

29

Credits

Newbie

Rank: 1

Credits
29
Post time 2020-2-20 05:36:45 | Show all posts |Read mode
Would like to know what python codes are used to operate RaspTank.
Interested is developing a program to make Rasptank do some operation.  Like go 3 feet, turn to right 90 degrees, go 4 feet, turn right 90 degrees and then come back home.
Same thing would apply for all functions of Rasptank.
Just need document that show code for each function RaspTank can perform.

Thanks
Tom


Reply

Use magic Report

0

Threads

69

Posts

412

Credits

Website Editor

Rank: 8Rank: 8

Credits
412
Post time 2020-3-9 10:46:04 | Show all posts
The program we use to control the robot may not be the way you think.   
Assuming you have a certain python foundation:
import move.py #Import the move module under the serve folder
move.setup () #initialize
move.move (100, 'no', 1) # move.move is used to control the wheel. Parameter 1 is the wheel speed. If the setting is too small, the car cannot move. Parameter 2 determines whether to turn, and can be configured as 'left', 'right' or 'no'. Parameter 3 is the steering angle. Setting it too small will cause the steering of the car not apparent.
ime.sleep (5) #Using time.sleep to make the car move for a period of time with the parameters set by move.move
move.motorStop () #Use move.motorStop to stop the car.
move.destroy () #It is best to call move.destroy at the end of the program.
Reply

Use magic Report

3

Threads

6

Posts

29

Credits

Newbie

Rank: 1

Credits
29
 Author| Post time 2020-3-16 20:25:26 | Show all posts
Thanks.  I would like to see a document that explains each thing that can be programmed with RaspTank with examples of coding and explanations of each function and code.  I would like to make a program that would instruct the RaspTank to do things without using the supplied GUI interface.  Trying to get my grandsons into programing.  It would be nice to just write a python program to just move arm and pickup something or program in my first post.  Would be nice to have examples of all functions RaspTank can do so we could figure out how to write our own programs.
Reply

Use magic Report

18

Threads

49

Posts

386

Credits

Intermediate member

Rank: 3Rank: 3

Credits
386
Post time 2020-3-21 17:45:31 | Show all posts
Hello,

Now that we have started writing the relevant courses, please stay tuned to us. Before these courses are released, you can watch these videos to learn:

https://www.adeept.com/video/

Best!
Reply

Use magic Report

You have to log in before you can reply Login | Sign Up

Points Rules