mirror of
https://github.com/eddyem/mmpp.git
synced 2025-12-07 02:55:16 +03:00
Add data to Readme
This commit is contained in:
parent
ff79aa36e3
commit
4e2b821389
@ -5,7 +5,7 @@ BOOTSPEED ?= 115200
|
|||||||
FAMILY = F0
|
FAMILY = F0
|
||||||
# MCU code
|
# MCU code
|
||||||
MCU = F030x4
|
MCU = F030x4
|
||||||
DEFS = -DEBUG
|
#DEFS = -DEBUG
|
||||||
# change this linking script depending on particular MCU model,
|
# change this linking script depending on particular MCU model,
|
||||||
# for example, if you have STM32F103VBT6, you should write:
|
# for example, if you have STM32F103VBT6, you should write:
|
||||||
LDSCRIPT = ld/stm32f030f.ld
|
LDSCRIPT = ld/stm32f030f.ld
|
||||||
|
|||||||
@ -99,21 +99,51 @@ DATAEND
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
* **S** - get *motors' status*, e.g.
|
* **S** - get *motors' status*.
|
||||||
|
|
||||||
|
Values of `MOTORx` (state of given motor) can be one of following:
|
||||||
|
* **ACCEL** - start moving with acceleration
|
||||||
|
* **DECEL** - moving with deceleration
|
||||||
|
* **MOVE** - moving with constant speed
|
||||||
|
* **MOVETO0** - move towards 0 endswitch (negative direction)
|
||||||
|
* **MOVETO1** - move towards 1 endswitch (positive direction)
|
||||||
|
* **MVSLOW** - moving with slowest constant speed
|
||||||
|
* **SLEEP** - don't moving (normal state)
|
||||||
|
* **STOP** - stop motor right now (by demand)
|
||||||
|
* **STOPZERO** - stop motor and zero its position (on end-switch)
|
||||||
|
* **UNKNOWN** - something wrong
|
||||||
|
|
||||||
|
Values of `ESWxy` (state of end-switch `y` of motor `x`) can be:
|
||||||
|
* **BTN** - user button pressed
|
||||||
|
* **ERR** - wrong ADC value
|
||||||
|
* **HALL** - hall switch activated
|
||||||
|
* **RLSD** - no actions
|
||||||
|
|
||||||
|
If reset occurs there's two additional fields on first request after reset:
|
||||||
|
* **WDGRESET=1** - watchdog's reset occured
|
||||||
|
* **SOFTRESET=1** - software (by user's demand) reset occured
|
||||||
|
|
||||||
|
There also two fields:
|
||||||
|
* **POSx** - position of given motor (negative values means that initialisation need)
|
||||||
|
* **STEPSLEFTx** - (only when moving) amount of steps left
|
||||||
|
|
||||||
|
|
||||||
|
E.g.:
|
||||||
```
|
```
|
||||||
SOFTRESET=1
|
SOFTRESET=1
|
||||||
MOTOR0=STOP
|
MOTOR0=SLEEP
|
||||||
POS0=-1
|
POS0=-1
|
||||||
ESW00=ERR
|
ESW00=ERR
|
||||||
ESW01=BTN
|
ESW01=BTN
|
||||||
MOTOR1=STOP
|
MOTOR1=SLEEP
|
||||||
POS1=-1
|
POS1=-1
|
||||||
ESW10=HALL
|
ESW10=HALL
|
||||||
ESW11=HALL
|
ESW11=HALL
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
* **T** - get *MCU temperature*, e.g. `TEMP=365`
|
* **T** - get *MCU temperature*, e.g. `TEMP=365`
|
||||||
|
|
||||||
|
|
||||||
@ -163,3 +193,5 @@ procedure you should reboot it or (if there's only one device on the bus) call i
|
|||||||
The USART speed will be changed after next reset (e.g. by *MCU software reboot* command), so it
|
The USART speed will be changed after next reset (e.g. by *MCU software reboot* command), so it
|
||||||
don't work without storing in the flash. Check it twice before writing as wrong numbers can make device
|
don't work without storing in the flash. Check it twice before writing as wrong numbers can make device
|
||||||
lost until next re-flashing.
|
lost until next re-flashing.
|
||||||
|
|
||||||
|
[//]: # (generate html with command `markdown Readme.md > readme.html)
|
||||||
|
|||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user