From af38d708cb3fad993422b8cf6bf4880acda568a3 Mon Sep 17 00:00:00 2001 From: Mikkel Schmidt Date: Tue, 24 May 2022 01:56:58 +0200 Subject: adxl345: Support recording data from multiple ADXL345's in one run, and more. (#5224) Add PROBE and CHIP to TEST_RESONANCES Since it's possible to specify more than one chip in TEST_RESONANCES the CHIP parameter has been renamed to CHIPS Signed-off-by: Mikkel Schmidt --- docs/G-Codes.md | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'docs') diff --git a/docs/G-Codes.md b/docs/G-Codes.md index 4dcbe729..eedb84cc 100644 --- a/docs/G-Codes.md +++ b/docs/G-Codes.md @@ -896,23 +896,28 @@ all enabled accelerometer chips. #### TEST_RESONANCES `TEST_RESONANCES AXIS= OUTPUT= [NAME=] [FREQ_START=] [FREQ_END=] -[HZ_PER_SEC=] [INPUT_SHAPING=[<0:1>]]`: Runs the resonance +[HZ_PER_SEC=] [CHIPS=] +[POINT=x,y,z] [INPUT_SHAPING=[<0:1>]]`: Runs the resonance test in all configured probe points for the requested "axis" and measures the acceleration using the accelerometer chips configured for the respective axis. "axis" can either be X or Y, or specify an arbitrary direction as `AXIS=dx,dy`, where dx and dy are floating point numbers defining a direction vector (e.g. `AXIS=X`, `AXIS=Y`, or `AXIS=1,-1` to define a diagonal direction). Note that `AXIS=dx,dy` -and `AXIS=-dx,-dy` is equivalent. If `INPUT_SHAPING=0` or not set -(default), disables input shaping for the resonance testing, because +and `AXIS=-dx,-dy` is equivalent. `adxl345_chip_name` can be one or +more configured adxl345 chip,delimited with comma, for example +`CHIPS="adxl345, adxl345 rpi"`. Note that `adxl345` can be omitted from +named adxl345 chips. If POINT is specified it will override the point(s) +configured in `[resonance_tester]`. If `INPUT_SHAPING=0` or not set(default), +disables input shaping for the resonance testing, because it is not valid to run the resonance testing with the input shaper enabled. `OUTPUT` parameter is a comma-separated list of which outputs will be written. If `raw_data` is requested, then the raw accelerometer data is written into a file or a series of files -`/tmp/raw_data__[_].csv` with (`_` part of -the name generated only if more than 1 probe point is configured). If -`resonances` is specified, the frequency response is calculated -(across all probe points) and written into +`/tmp/raw_data__[_][_].csv` with +(`_` part of the name generated only if more than 1 probe point +is configured or POINT is specified). If `resonances` is specified, the +frequency response is calculated (across all probe points) and written into `/tmp/resonances__.csv` file. If unset, OUTPUT defaults to `resonances`, and NAME defaults to the current time in "YYYYMMDD_HHMMSS" format. -- cgit v1.2.3-70-g09d2