|
楼主 |
发表于 2012-8-30 20:18:47
|
显示全部楼层
楼上链接好像不太好连。内容如下:
NXT-G Move Block -- Steering At the Open House, there were a lot of questions. We discussed the new NXT-G software and it's Move block.
The Move block has several settings. The most mysterious is the steering.
The steering slider has something like 16 different positions. It controls two motors at a time. The assumption is that one motor is on each side of the robot. By moving the slider, the robot will spin, pivot, arc, or go straight.
The Move block also has a data plug, which allows even more control of the slider bar by wiring in a number ( -100 to 100).
The mystery? What does it mean to set the duration of the Move block to 1000 degrees and set the steering to -50? Which wheel moves? and how far?
Here's a table created by the NXT running a NXT-G program that shows how far the b and c motors turned (in degrees):
Steering: -100 b:-1047 c: 1000
Steering: -90 b:-1048 c: 1000
Steering: -80 b:-1047 c: 1000
Steering: -70 b:-1020 c: 999
Steering: -60 b: -649 c: 1000
Steering: -50 b: -348 c: 1000
Steering: -40 b: -63 c: 1000
Steering: -30 b: +204 c: 1000
Steering: -20 b: +472 c: 1000
Steering: -10 b: +745 c: 1000
Steering: 0 b: +999 c: 999
Steering: 10 b: +999 c: 747
Steering: 20 b:+1000 c: 467
Steering: 30 b:+1000 c: 215
Steering: 40 b: +999 c: -70
Steering: 50 b: +999 c: -334
Steering: 60 b: +999 c: -631
Steering: 70 b: +999 c:-1004
Steering: 80 b:+1001 c:-1021
Steering: 90 b: +999 c:-1023
Steering: 100 b: +999 c:-1023
Well, it's not a pretty table, but you get the idea. -50 means the motors are going in opposite directions, about 1 backward to 3 forward. I expect at least one team will explain it all by next fall. |
|