Modifying jog increments on Jog Pane

Hey Marcel,

you could edit /usr/local/lib/python3.5/dist-packages/bbctrl-1.0.9-py3.5.egg/bbctrl/http/index.html

here at this part:

    set_jog_incr: function(newValue) {
      document.getElementById("jog_button_fine").style.fontWeight = 'normal';
      document.getElementById("jog_button_small").style.fontWeight = 'normal';
      document.getElementById("jog_button_medium").style.fontWeight = 'normal';
      document.getElementById("jog_button_large").style.fontWeight = 'normal';

      if (newValue == 'fine') {
        document.getElementById("jog_button_fine").style.fontWeight = 'bold';
        if(this.mach_units == 'METRIC')
          this.jog_incr = 0.1;
        else
          this.jog_incr = 0.005;
      } else if (newValue == 'small') {
        document.getElementById("jog_button_small").style.fontWeight = 'bold';
        if(this.mach_units == 'METRIC')
          this.jog_incr = 1.0;
        else
          this.jog_incr = 0.05;
      } else if (newValue == 'medium') {
        document.getElementById("jog_button_medium").style.fontWeight = 'bold';
        if(this.mach_units == 'METRIC')
          this.jog_incr = 10;
        else
          this.jog_incr = 0.5;
      } else if (newValue == 'large') {
        document.getElementById("jog_button_large").style.fontWeight = 'bold';

        this.jog_incr = (this.mach_units == 'METRIC')
          ? 100
          : 5;
      }
    },

  methods: {
    units_changed : function() {
      if(this.mach_units == 'METRIC') {
        document.getElementById("jog_button_fine").innerHTML = "0.1";
        document.getElementById("jog_button_small").innerHTML = "1.0";
        document.getElementById("jog_button_medium").innerHTML = "10";
        document.getElementById("jog_button_large").innerHTML = "100";
      } else {
        document.getElementById("jog_button_fine").innerHTML = "0.005";
        document.getElementById("jog_button_small").innerHTML = "0.05";
        document.getElementById("jog_button_medium").innerHTML = "0.5";
        document.getElementById("jog_button_large").innerHTML = "5";
      }

      this.set_jog_incr('small');
    },

Note that this shows v1.0.9, later versions may differ.

If you want to change the steps on the gamepad, you can edit

/usr/local/lib/python3.5/dist-packages/bbctrl-1.0.9-py3.5.egg/bbctrl/Jog.py

There, you find:

    def changed(self):
        scale = 1.0
        if self.speed == 1: scale = 1.0 / 128.0
        if self.speed == 2: scale = 1.0 / 32.0
        if self.speed == 3: scale = 1.0 / 4.0
4 Likes