All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.mrstampy.esp.neurosky.ThinkGearConstants Maven / Gradle / Ivy

Go to download

ESP-ThinkGear - An EEG Signal Processing Library for NeuroSky ThinkGear devices

The newest version!
/*
 * ESP-ThinkGear Copyright (C) 2014 Burton Alexander
 * 
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation; either version 2 of the License, or (at your option) any later
 * version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * this program; if not, write to the Free Software Foundation, Inc., 51
 * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 * 
 */
package com.github.mrstampy.esp.neurosky;

public interface ThinkGearConstants {

	public static final int SAMPLE_RATE = 100;

	public static final int FFT_SIZE = 512;
	
	public static final double LOWEST_SIGNAL_VAL = -32768;
	public static final double HIGHEST_SIGNAL_VAL = 32767;
	
	public static final int NEUROSOCKET_PORT = 13854;

	/**
	 * System property 'acquire.raw.data' to control whether raw data is obtained
	 * from the device. Defaults to false.
	 */
	public static final String RAW_DATA_KEY = "acquire.raw.data";

	public static final String LOCAL_HOST = "127.0.0.1";

	// ESense
	public static final String MEDITATION = "meditation";
	public static final String ATTENTION = "attention";

	// EEG Power
	public static final String HIGH_GAMMA = "highGamma";
	public static final String LOW_GAMMA = "lowGamma";
	public static final String HIGH_BETA = "highBeta";
	public static final String LOW_BETA = "lowBeta";
	public static final String HIGH_ALPHA = "highAlpha";
	public static final String LOW_ALPHA = "lowAlpha";
	public static final String THETA = "theta";
	public static final String DELTA = "delta";
	
	/**
	 * Set this as a system property on startup ie. -Dsend.neurosky.messages=true
	 * to enable remote programs to send messages to the device. Defaults to
	 * false, will cause a disconnection if the attempt is made when false.
	 */
	public static final String SEND_NEUROSKY_MESSAGES = "send.neurosky.messages";

	/**
	 * System property key to control whether broadcasting has been enabled. False
	 * by default. Use '-Dbroadcast.messages=true' to enable socket broadcasting.
	 */
	public static final String BROADCAST_MESSAGES = "broadcast.messages";
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy