Sam
actiondrv.h@2:611a5eb132a1, 2020-09-13 (annotated)
- Committer:
- s0313045
- Date:
- Sun Sep 13 04:30:54 2020 +0000
- Revision:
- 2:611a5eb132a1
- Parent:
- 0:502b364c9f1d
by Sam
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
s0313045 | 0:502b364c9f1d | 1 | #include "mbed.h" |
s0313045 | 0:502b364c9f1d | 2 | |
s0313045 | 0:502b364c9f1d | 3 | class actionDrv |
s0313045 | 0:502b364c9f1d | 4 | { |
s0313045 | 0:502b364c9f1d | 5 | public: |
s0313045 | 0:502b364c9f1d | 6 | actionDrv(int _id); |
s0313045 | 0:502b364c9f1d | 7 | void SetOperationalMode(); |
s0313045 | 0:502b364c9f1d | 8 | void Enable(); |
s0313045 | 0:502b364c9f1d | 9 | void Configvelocity(int acc, int dec); |
s0313045 | 0:502b364c9f1d | 10 | void SetVelocity(int vel); |
s0313045 | 0:502b364c9f1d | 11 | void SetVelocity_mod(int vel); //added |
s0313045 | 0:502b364c9f1d | 12 | void send(char* msg); |
s0313045 | 0:502b364c9f1d | 13 | void send_mod(char* msg); //added |
s0313045 | 0:502b364c9f1d | 14 | void stop(); |
s0313045 | 0:502b364c9f1d | 15 | int id, SDOid; |
s0313045 | 0:502b364c9f1d | 16 | |
s0313045 | 0:502b364c9f1d | 17 | }; |