Revision 122a57d8 quad2/joystick_node/src/joystick_node.cpp

View differences:

quad2/joystick_node/src/joystick_node.cpp
48 48
  yaw.data = -joy->axes[2];
49 49
  yaw_pub.publish(yaw);
50 50
  
51
  bool alt_en_down = joy->buttons[0];
51
  bool alt_en_down = joy->buttons[10]; // button 11
52 52
  if (alt_en_down && !alt_en_pressed) // toggle altitude control
53 53
  {
54 54
    altitude_enabled = !altitude_enabled;

Also available in: Unified diff