loliruyu

Committer:
Osgoth
Date:
Wed Mar 28 16:18:22 2018 +0000
Revision:
0:d7f40a9a9020
edit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Osgoth 0:d7f40a9a9020 1
Osgoth 0:d7f40a9a9020 2 //pin definition
Osgoth 0:d7f40a9a9020 3
Osgoth 0:d7f40a9a9020 4 #define ENA_PIN
Osgoth 0:d7f40a9a9020 5 #define ENB_PIN
Osgoth 0:d7f40a9a9020 6 #define PWM_PIN
Osgoth 0:d7f40a9a9020 7 #define CS_PIN
Osgoth 0:d7f40a9a9020 8
Osgoth 0:d7f40a9a9020 9 //velocity parameters
Osgoth 0:d7f40a9a9020 10
Osgoth 0:d7f40a9a9020 11 #define SPD_PROT 0.6f
Osgoth 0:d7f40a9a9020 12 #define FWB_ACC 1.1f
Osgoth 0:d7f40a9a9020 13 #define BWD_ACC 1.0f
Osgoth 0:d7f40a9a9020 14
Osgoth 0:d7f40a9a9020 15 //frequency
Osgoth 0:d7f40a9a9020 16
Osgoth 0:d7f40a9a9020 17 #define freq 100
Osgoth 0:d7f40a9a9020 18 #define PWM_PERIOD 0.001f