Keyboard pitch control


#1

hi i need to add control for extra motion…
and i have create a thruster program. then i want to assign keyboard key to ‘pitch’ which is key ‘x’ but it is not working…

i have edited index.js and rovpilot.js and my software version is 30.0.3

=====================
// pitch up
{
name: “rovPilot.movePitchU”,
description: “Pitch the ROV Up.”,
defaults: { keyboard: ‘x’ },
down: function () {
rov.cockpit.emit(‘rovpilot.setPitch’, 1);
},
up: function () {
rov.cockpit.emit(‘rovpilot.setPitch’, 0);
}
},

    // pitch down
    {
      name: "rovPilot.movePitchD",
      description: "Pitch the ROV Up.",
      defaults: { keyboard: 'v' },
      down: function () {
        rov.cockpit.emit('rovpilot.setPitch', -1);
      },
      up: function () {
        rov.cockpit.emit('rovpilot.setPitch', 0);
      }
    },

======================
i though that should done it, but its not working… anywhere else i should modify the code?


#2

@badevguru @charlesdc guys how many files dir needs to be modify to enable extra keyboard controls. the plan for my ROV thrusters to enable 5DOF (thro,yaw,pitch,strafe, lift) …


#3

suddenly i got them to work…