View Single Post
Old 04-14-11, 03:16 PM   #346
jwilliams
Ace of the Deep
 
Join Date: Nov 2009
Location: New Zealand
Posts: 1,013
Downloads: 124
Uploads: 0
Default

Quote:
Originally Posted by MiTon View Post
You should not change this, if you do, the script can't know if port or starbord is selected, it takes param2 to decide this. And if it's always 0 ...


Will fix it asap!
It isn't always 0.

Using SHSpeechEngine test ap.
Quote:
rudder 5 degrees to starboard: Set_rudder, param1=5, param2=0
rudder 5 degrees to port: Set_rudder, param1=5, param2=1
So when you say port param2 is 1.
And when you say starboard param2 is 0

Quote:
# if param2 is 0, then 'starboard' was said instead of 'port', so we invert the number of degrees.
If param2 == 0 :param1 *= -1
I've been using the .py file modded as I pointed out for over a month (from the previous release of your mod) without problem. Works as intended.
__________________
Windows 7, 64bit. Phenom II 965BE (OC 4cores @ 3.8 Ghz).
Radeon HD4870 (1gb gddr5). 6gb Ram.

Last edited by jwilliams; 04-14-11 at 03:34 PM.
jwilliams is offline   Reply With Quote