def __init__(self):
super(CalibrationDialog, self).__init__(None)
self.host = ''
if len(sys.argv) > 1:
self.host = sys.argv[1]
self.client = False
self.compass_calibration_plot = compass_calibration_plot.CompassCalibrationPlot()
self.compass_calibration_glContext = wx.glcanvas.GLContext(self.CompassCalibration)
self.boat_plot = boatplot.BoatPlot()
self.boat_plot_glContext = wx.glcanvas.GLContext(self.BoatPlot)
self.dsServoMaxCurrent.SetIncrement(.1)
self.dsServoMaxCurrent.SetDigits(1)
self.dsServoMaxCurrent.Bind( wx.EVT_SPINCTRLDOUBLE, self.onMaxCurrent )
self.lastmouse = False
self.alignment_count = 0
self.timer = wx.Timer(self, self.ID_MESSAGES)
self.timer.Start(50)
self.Bind(wx.EVT_TIMER, self.receive_messages, id=self.ID_MESSAGES)
self.servo_timer = wx.Timer(self, self.ID_CALIBRATE_SERVO)
self.Bind(wx.EVT_TIMER, self.calibrate_servo_timer, id=self.ID_CALIBRATE_SERVO)
self.servoprocess = False
self.alignmentQ = [1, 0, 0, 0]
self.fusionQPose = [1, 0, 0, 0]
评论列表
文章目录