View unanswered posts | View active topics It is currently Tue Oct 22, 2019 9:36 am






Reply to topic  [ 5 posts ] 
Issue with commads 
Author Message
Rookie

Joined: Fri Nov 20, 2015 4:08 pm
Posts: 3
Post Issue with commads
So, I have version 3.65 of RobotC for VeX Cortex. I am attempting to use the "resetMotorEncoder" command and it is not registering as a command. (Black Text) But instead, it works with "nMotorEncoder = #". Is there a way to fix this?


Fri Nov 20, 2015 4:13 pm
Profile
Moderator
Moderator

Joined: Tue May 19, 2015 3:07 pm
Posts: 91
Post Re: Issue with commads
Do you have Natural Language enabled in platform type? Remember resetMotorEncoder is a NL 2.0 command and will not work unless it is selected.


Fri Nov 20, 2015 4:30 pm
Profile
Rookie

Joined: Fri Nov 20, 2015 4:08 pm
Posts: 3
Post Re: Issue with commads
I'm not sure why I never come across that as a solution. But that fixed it. Thank you so much.


Fri Nov 20, 2015 4:32 pm
Profile
Rookie

Joined: Fri Nov 20, 2015 4:08 pm
Posts: 3
Post Re: Issue with commads
So, I thought it had worked, but this was not the issue. It simply tried to correct to a command that i had entered. So it would auto complete like it was an actual command. I still do not have the "resetmotorencoder" command.


Tue Nov 24, 2015 2:26 pm
Profile
Moderator
Moderator

Joined: Tue May 19, 2015 3:07 pm
Posts: 91
Post Re: Issue with commads
So my guess is that this function did not exist in ROBOTC 3.65. If you would prefer to use this function rather than nMotorEncoder you can put this line at the top of your file.

Code:
#define resetMotorEncoder(_port) nMotorEncoder[_port]=0


Wed Nov 25, 2015 1:42 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.