Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
DATA_COMMAND/data_command.h
- Committer:
- shaorui
- Date:
- 2020-01-07
- Revision:
- 8:95a914f962bd
- Parent:
- 6:aad89fd109c2
- Child:
- 10:f94e325fc1e6
File content as of revision 8:95a914f962bd:
#ifndef _DATA_COMMAND_H
#define _DATA_COMMAND_H
#include "mbed.h"
#include "CAN.h"
#include "used_leg_message.h"
#include "mode.h"
#define REST_MODE 0
#define MOTOR_MODE 1
#define ZERO_MODE 2
#define DUOJI_MODE 3
extern Serial command;
extern DigitalOut sf_m_c;
extern int state;
extern int send_enable;
extern int enabled;
extern int counter;
extern int c_control;
extern int duoji_command;
extern float SP_ef, SP_wf;
void serial_command_isr();
void command_control();
extern char data[2];
extern int data_num;
#endif