aboutsummaryrefslogtreecommitdiffstats
path: root/docs/G-Codes.md
diff options
context:
space:
mode:
authorDmitry Butyugin <dmbutyugin@google.com>2021-01-29 19:35:33 +0100
committerKevinOConnor <kevin@koconnor.net>2021-02-02 14:13:24 -0500
commit0fb2449be035efe729d587a3257ac9a9fe8178bc (patch)
tree576b5908f6341be3f811c7ca5808c10ee27542df /docs/G-Codes.md
parent891852ed9c2c4439b5f928faa7a3c01386bec868 (diff)
downloadkutter-0fb2449be035efe729d587a3257ac9a9fe8178bc.tar.gz
kutter-0fb2449be035efe729d587a3257ac9a9fe8178bc.tar.xz
kutter-0fb2449be035efe729d587a3257ac9a9fe8178bc.zip
adxl345: Add accelerometer chip name to the raw data file name
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
Diffstat (limited to 'docs/G-Codes.md')
-rw-r--r--docs/G-Codes.md11
1 files changed, 7 insertions, 4 deletions
diff --git a/docs/G-Codes.md b/docs/G-Codes.md
index c61a6031..c6f99658 100644
--- a/docs/G-Codes.md
+++ b/docs/G-Codes.md
@@ -704,10 +704,13 @@ The following commands are available when an
the first time, it starts the measurements, next execution stops
them. If RATE is not specified, then the default value is used
(either from `printer.cfg` or `3200` default value). The results of
- measurements are written to a file named `/tmp/adxl345-<name>.csv`
- where `<name>` is the optional NAME parameter. If NAME is not
- specified it defaults to the current time in "YYYYMMDD_HHMMSS"
- format.
+ measurements are written to a file named
+ `/tmp/adxl345-<chip>-<name>.csv` where `<chip>` is the name of the
+ accelerometer chip (`my_chip_name` from `[adxl345 my_chip_name]`) and
+ `<name>` is the optional NAME parameter. If NAME is not specified it
+ defaults to the current time in "YYYYMMDD_HHMMSS" format. If the
+ accelerometer does not have a name in its config section (simply
+ `[adxl345]`) <chip> part of the name is not generated.
- `ACCELEROMETER_QUERY [CHIP=<config_name>] [RATE=<value>]`: queries
accelerometer for the current value. If CHIP is not specified it
defaults to "default". If RATE is not specified, the default value