We have configured the user accounts and IP of the camera. The dashboard is the right one with a compass in the lower right, no thanks to the installer that doesn't work. The Windriver and dashboard PC has 10.xx.yy.6 IP and the driver station is running on the classmate at 10.xx.yy.5, set to remote dashboard at 10.xx.yy.6. We can build CameraToDashboardExample and run it. In the console we have confirmation that the ImageServer is starting (or whatever it is called, I won't be using the cRIO again until Saturday). Tried toggling the green button below the image window in the dashboard. Not a single frame comes through. What to try next? I can post the exact console messages on Saturday.
A separate issue: created a new program that won't compile due to inclusion of AxisCamera.
Code:
class TeamRobot : public IterativeRobot
{
DriverStation *ds;
RobotDrive *drive;
Joystick *TMjoystick;
AxisCamera *camera; // this is line 26
public:
TeamRobot(void)
{
ds = DriverStation::GetInstance();
drive = new RobotDrive(1, 3, 2, 4);
TMjoystick = new Joystick(1); // create the joystick
camera = AxisCamera::getInstance(); // create the camera
camera->writeResolution(k320x240);
camera->writeBrightness(0);
...
The compile error message is
Code:
C:/windriver/workspace/TeamRobot/TeamRobot.cpp:26: error: ISO C++ forbids declaration of `AxisCamera' with no type
C:/windriver/workspace/TeamRobot/TeamRobot.cpp:26: error: expected `;' before '*' token
If I remove all camera lines of code, it compiles fine. Now what?