Tetrix NatLang servo bug?
Page 1 of 1

Author:  thejerryman [ Fri Jan 27, 2012 5:35 am ]
Post subject:  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:

#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()
    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:
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!

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group