|
Re: Error: within this context
You've added a data member called camera, of type AxisCamera, no problem there. But the code you've included has a constructor with an initialization list, and you haven't added a value for camera field.
Not being that familiar with the C++ WPI code, the issue is likely that the AxisCamera doesn't have a default constructor or for some other reason, the compiler wants camera to be assigned using the initialization list.
Try putting
camera(???)
after the controller(1) line and before the {. Replace ??? with the parameters required for an AxisCamera object to be initialized.
Gotta love compiler error messages sometimes.
Greg McKaskle
|