Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
ds4_driver.controller.Controller Class Reference
Inheritance diagram for ds4_driver.controller.Controller:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self)
 
def cleanup_device (self)
 
def control (self, led_red=None, led_green=None, led_blue=None, rumble_small=None, rumble_big=None, flash_on=None, flash_off=None)
 
def exit (self)
 
def fire_event (self, event, args)
 
def read_report (self)
 
def run (self)
 
def setup_device (self, device)
 

Static Public Member Functions

def get_imu_data (report)
 

Public Attributes

 device
 
 loop
 

Static Public Attributes

int BATTERY_FULL_CHARGING = 11
 
int BATTERY_MAX = 8
 
float MAX_VOLTAGE = 3.65
 
int TOUCHPAD_MAX_X = 1919
 
int TOUCHPAD_MAX_Y = 942
 

Private Member Functions

def _control (self, kwargs)
 

Private Attributes

 _led
 
 _led_flash
 

Detailed Description

Definition at line 9 of file controller.py.

Constructor & Destructor Documentation

def ds4_driver.controller.Controller.__init__ (   self)

Definition at line 18 of file controller.py.

Member Function Documentation

def ds4_driver.controller.Controller._control (   self,
  kwargs 
)
private

Definition at line 94 of file controller.py.

def ds4_driver.controller.Controller.cleanup_device (   self)

Definition at line 34 of file controller.py.

def ds4_driver.controller.Controller.control (   self,
  led_red = None,
  led_green = None,
  led_blue = None,
  rumble_small = None,
  rumble_big = None,
  flash_on = None,
  flash_off = None 
)
Similar to DS4Device.control but with None as default values
:param led_red:
:param led_green:
:param led_blue:
:param rumble_small:
:param rumble_big:
:param flash_on:
:param flash_off:
:return:

Definition at line 67 of file controller.py.

def ds4_driver.controller.Controller.exit (   self)

Definition at line 58 of file controller.py.

def ds4_driver.controller.Controller.fire_event (   self,
  event,
  args 
)

Definition at line 26 of file controller.py.

def ds4_driver.controller.Controller.get_imu_data (   report)
static
Sets the correct IMU data in the report
See: https://github.com/chrippa/ds4drv/pull/168
:param report:
:return:

Definition at line 103 of file controller.py.

def ds4_driver.controller.Controller.read_report (   self)

Definition at line 43 of file controller.py.

def ds4_driver.controller.Controller.run (   self)

Definition at line 55 of file controller.py.

def ds4_driver.controller.Controller.setup_device (   self,
  device 
)

Definition at line 29 of file controller.py.

Member Data Documentation

ds4_driver.controller.Controller._led
private

Definition at line 23 of file controller.py.

ds4_driver.controller.Controller._led_flash
private

Definition at line 24 of file controller.py.

int ds4_driver.controller.Controller.BATTERY_FULL_CHARGING = 11
static

Definition at line 15 of file controller.py.

int ds4_driver.controller.Controller.BATTERY_MAX = 8
static

Definition at line 16 of file controller.py.

ds4_driver.controller.Controller.device

Definition at line 20 of file controller.py.

ds4_driver.controller.Controller.loop

Definition at line 21 of file controller.py.

float ds4_driver.controller.Controller.MAX_VOLTAGE = 3.65
static

Definition at line 11 of file controller.py.

int ds4_driver.controller.Controller.TOUCHPAD_MAX_X = 1919
static

Definition at line 13 of file controller.py.

int ds4_driver.controller.Controller.TOUCHPAD_MAX_Y = 942
static

Definition at line 14 of file controller.py.


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


ds4_driver
Author(s): Naoki Mizuno
autogenerated on Fri May 1 2020 03:25:46