Skip to content

Latest commit

 

History

History

README.md

Python Server

Install

pip install -r requirements.txt

Run

py app.py

Package

pyinstaller server.py --hidden-import engineio.async_drivers.aiohttp --hidden-import engineio.async_aiohttp --onefile --icon=icon.ico --name=synDAQ_server

```

## Request Format
Sensor data should be in raw uint format

```
{
		'leverage': AVG_LEV_OR_LEV_ARRAY,
		'resolution': MAX_ANALOG_VALUE
		'freq': LOG_FREQUENCY_HZ,
		'front_travel': FRONT_SENSOR_TRAVEL_mm,
		'rear_travel': REAR_SENSOR_TRAVEL_mm,
		'zc_threshold': SPEED_ZC_THREHOLD <70>,
		'pos_cutoff': POSITION_LOWPASS_THRESHOLD_HZ <100>,
		'speed_cutoff': SPEED_LOWPASS_THRESHOLD_HZ <10>,
}

```

Leverage should either be a single float value or an array of float values pairs [x_pos, lev_val]

For single value all rear sensor travels will be multiplied by this number

For an array the leverage curve will be integrated and the wheel travel to sensor travel relationship will be mapped. 

ZC threshold is the noise limit for speed zero crossing detection used to find the compression and rebound stroke limits. 
The lowpass thresholds are the target pass freqencies for the butterworth filters on the position and speed filtering. The default values are shown in angled brackets.