View Single Post
Old 04-14-11, 12:45 AM   #26
MiTon
Sparky
 
Join Date: Apr 2010
Location: Germany
Posts: 157
Downloads: 270
Uploads: 2
Default

Quote:
Originally Posted by jwilliams View Post
I also had problems with any course starting with 2 hundred.

It take a little getting used to but you have to say two twice.
Once for the word TO and again for TWO.

E.G.
"set new course two two four three"

The speech rec. still get it wrong and take a few tries, but it mostly gets it right now.



@ MiTon

The starboard and port are the wrong way.

I ask for 5 degrees to port and it comes up with 5 degrees to starboard.

It's an easy fix in the Speech Recognition.py file. Just though I point it out so it can be fixed in future releases.

Line 122


Just change the 1 (highlighted yellow) to a 0.


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 ...

If it's wrong change the SHSpeech_Commands.xml

Code:
<order><!-- set rudder x degrees to port -->
            ...
            
            <commandText param2="1">Set_rudder</commandText>

to

Code:
<order><!-- set rudder x degrees to port -->
            ...
            
            <commandText>Set_rudder</commandText>
and

Code:
<order><!-- set rudder x degrees to starboard -->
           ...
            <commandText>Set_rudder</commandText>
        </order>
to

Code:
<order><!-- set rudder x degrees to starboard -->
           ...
            <commandText param2="1">Set_rudder</commandText>
        </order>

Will fix it asap!

Last edited by MiTon; 04-14-11 at 02:11 AM.
MiTon is offline   Reply With Quote