Public Member Functions | Public Attributes | List of all members
key_joystick.stick_state Class Reference
Inheritance diagram for key_joystick.stick_state:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, name, stick, key_up, key_down, spring_back=True, incr_val=0.2)
 
def display (self)
 
def emit (self, device)
 
def keypress_down (self)
 
def keypress_up (self)
 
def release_stick (self)
 
def set_display (self, offset_height, offset_width, horizontal)
 
def update_event (self, event)
 
def update_stick (self, device)
 

Public Attributes

 active
 
 active_down
 
 active_up
 
 display_bar_b
 
 display_bar_g
 
 display_height
 
 display_hor
 
 display_ready
 
 display_width
 
 emit_val
 
 incr_val
 
 key_down
 
 key_up
 
 max_val
 
 min_val
 
 name
 
 spring_back
 
 stick
 
 val
 
 zero
 

Detailed Description

Definition at line 33 of file key_joystick.py.

Constructor & Destructor Documentation

◆ __init__()

def key_joystick.stick_state.__init__ (   self,
  name,
  stick,
  key_up,
  key_down,
  spring_back = True,
  incr_val = 0.2 
)

Definition at line 34 of file key_joystick.py.

Member Function Documentation

◆ display()

def key_joystick.stick_state.display (   self)

Definition at line 109 of file key_joystick.py.

◆ emit()

def key_joystick.stick_state.emit (   self,
  device 
)

Definition at line 85 of file key_joystick.py.

◆ keypress_down()

def key_joystick.stick_state.keypress_down (   self)

Definition at line 66 of file key_joystick.py.

◆ keypress_up()

def key_joystick.stick_state.keypress_up (   self)

Definition at line 58 of file key_joystick.py.

◆ release_stick()

def key_joystick.stick_state.release_stick (   self)

Definition at line 74 of file key_joystick.py.

◆ set_display()

def key_joystick.stick_state.set_display (   self,
  offset_height,
  offset_width,
  horizontal 
)

Definition at line 93 of file key_joystick.py.

◆ update_event()

def key_joystick.stick_state.update_event (   self,
  event 
)

Definition at line 130 of file key_joystick.py.

◆ update_stick()

def key_joystick.stick_state.update_stick (   self,
  device 
)

Definition at line 144 of file key_joystick.py.

Member Data Documentation

◆ active

key_joystick.stick_state.active

Definition at line 138 of file key_joystick.py.

◆ active_down

key_joystick.stick_state.active_down

Definition at line 44 of file key_joystick.py.

◆ active_up

key_joystick.stick_state.active_up

Definition at line 43 of file key_joystick.py.

◆ display_bar_b

key_joystick.stick_state.display_bar_b

Definition at line 56 of file key_joystick.py.

◆ display_bar_g

key_joystick.stick_state.display_bar_g

Definition at line 55 of file key_joystick.py.

◆ display_height

key_joystick.stick_state.display_height

Definition at line 52 of file key_joystick.py.

◆ display_hor

key_joystick.stick_state.display_hor

Definition at line 54 of file key_joystick.py.

◆ display_ready

key_joystick.stick_state.display_ready

Definition at line 51 of file key_joystick.py.

◆ display_width

key_joystick.stick_state.display_width

Definition at line 53 of file key_joystick.py.

◆ emit_val

key_joystick.stick_state.emit_val

Definition at line 50 of file key_joystick.py.

◆ incr_val

key_joystick.stick_state.incr_val

Definition at line 40 of file key_joystick.py.

◆ key_down

key_joystick.stick_state.key_down

Definition at line 38 of file key_joystick.py.

◆ key_up

key_joystick.stick_state.key_up

Definition at line 37 of file key_joystick.py.

◆ max_val

key_joystick.stick_state.max_val

Definition at line 42 of file key_joystick.py.

◆ min_val

key_joystick.stick_state.min_val

Definition at line 41 of file key_joystick.py.

◆ name

key_joystick.stick_state.name

Definition at line 35 of file key_joystick.py.

◆ spring_back

key_joystick.stick_state.spring_back

Definition at line 39 of file key_joystick.py.

◆ stick

key_joystick.stick_state.stick

Definition at line 36 of file key_joystick.py.

◆ val

key_joystick.stick_state.val

Definition at line 49 of file key_joystick.py.

◆ zero

key_joystick.stick_state.zero

Definition at line 46 of file key_joystick.py.


The documentation for this class was generated from the following file:


rotors_joy_interface
Author(s): Fadri Furrer, Michael Burri, Mina Kamel, Janosch Nikolic, Markus Achtelik
autogenerated on Mon Feb 28 2022 23:39:18