View unanswered posts | View active topics It is currently Fri Nov 21, 2014 3:14 pm






Reply to topic  [ 1 post ] 
Tetrix NatLang servo bug? 
Author Message
Rookie

Joined: Fri Jan 27, 2012 5:28 am
Posts: 1
Post Tetrix NatLang servo bug?
Greetings from new Tetrix RobotC programmers. My team is trying to use Natural Language since we're new at this, but have a problem even starting. Here is our code:

Code:
#pragma config(Hubs,  S1, HTMotor,  HTServo,  none,     none)
#pragma config(Sensor, S1,     ,               sensorI2CMuxController)
#pragma config(Motor,  mtr_S1_C1_1,     motorD,        tmotorNone, openLoop)
#pragma config(Motor,  mtr_S1_C1_2,     motorE,        tmotorNone, openLoop)
#pragma config(Servo,  srvo_S1_C2_1,    servo1,               tServoStandard)
#pragma config(Servo,  srvo_S1_C2_2,    servo2,               tServoNone)
#pragma config(Servo,  srvo_S1_C2_3,    servo3,               tServoNone)
#pragma config(Servo,  srvo_S1_C2_4,    servo4,               tServoNone)
#pragma config(Servo,  srvo_S1_C2_5,    servo5,               tServoNone)
#pragma config(Servo,  srvo_S1_C2_6,    servo6,               tServoNone)
//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//
#include "JoystickDriver.c"
task main()
{
  robotType(ranger);
  while(true)
  {
    getJoystickSettings(joystick);
    motor[motorC] = joystick.joy1_y2;
    motor[motorB] = joystick.joy1_y1;
  }
}


Compiling gives this error message:
**Error**:Undefined variable 'srvo_S1_C2_1'. 'short' assumed.

When I double-click the error, it opens "NatLang_TETRIX.c" and highlights line 100:
Code:
void setServo(TServoIndex servoPort = srvo_S1_C2_1, int position = 0)


Platform Type is set to "Natural Language (TETRIX)"
Compiler Target is set to "Physical Robot"
The robot is not connected, but it should still compile, shouldn't it?

I thought I had the config correct, but maybe not. We'll be grateful for any help!
Thanks,
Jerry


Fri Jan 27, 2012 5:35 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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.