Java Question how to start a class (public void Initialize....)

PABLO2013

Well-Known Member
Licensed User
Longtime User
I have tried to initialize this class but in all cases I get this, how could I do it..tks



B4X:
compilando el código Java generado.    Error
B4A line: 2671
Dim Gymbal As GimbalWrapper
src\com\avalpro\sdk\sample\b4xpage2.java:12762: error: an enclosing instance that contains FlightControllerWrapper.GimbalWrapper is required
_gymbal = new anywheresoftware.b4a.objects.FlightControllerWrapper.GimbalWrapper();
          ^
1 error



B4X:
    @ShortName("GimbalWrapper")

    public class  GimbalWrapper extends  BaseComponentWrapper<Gimbal>{
   
      public void Initialize.... {
      }    

        public Object startCalibration() {
            B4ACompletionCallback cc = new B4ACompletionCallback();
            getObject().startCalibration( cc);
            return cc;
        }    
     
}
 
Top