De motorcontroller van het TLS2 project.

Dependencies:   mbed PID

Committer:
RichardHoekstra
Date:
Tue Nov 22 22:34:18 2016 +0000
Revision:
9:1bdf5107920f
Parent:
7:ace2a14eff7d
OOP'd this bitch up

Who changed what in which revision?

UserRevisionLine numberNew contents of line
RichardHoekstra 7:ace2a14eff7d 1 #include "mbed.h"
RichardHoekstra 7:ace2a14eff7d 2
RichardHoekstra 7:ace2a14eff7d 3 enum command_t{ //MOTORCONTROLLER COMMANDS
RichardHoekstra 7:ace2a14eff7d 4 SET_MODE = 1,
RichardHoekstra 7:ace2a14eff7d 5 SET_CONSTANT_PRESSURE,
RichardHoekstra 7:ace2a14eff7d 6 SET_CONSTANT_FLOW,
RichardHoekstra 7:ace2a14eff7d 7 SET_CONSTANT_SPEED,
RichardHoekstra 7:ace2a14eff7d 8 SET_MIN,
RichardHoekstra 7:ace2a14eff7d 9 SET_MAX,
RichardHoekstra 7:ace2a14eff7d 10 SET_FREQUENCY,
RichardHoekstra 7:ace2a14eff7d 11 RECEIVE_PRESSURE,
RichardHoekstra 7:ace2a14eff7d 12 RECEIVE_FLOW,
RichardHoekstra 7:ace2a14eff7d 13 //SENSORCONTROLLER COMMANDS
RichardHoekstra 7:ace2a14eff7d 14 //Pressure sensor commands
RichardHoekstra 7:ace2a14eff7d 15 SET_SENSOR_PRESSURE_1_SAMPLE_RATE = 13,
RichardHoekstra 7:ace2a14eff7d 16 SET_SENSOR_PRESSURE_1_MVA,
RichardHoekstra 7:ace2a14eff7d 17 SET_RESPONSE_SENSOR_PRESSURE_1,
RichardHoekstra 7:ace2a14eff7d 18 SET_SENSOR_PRESSURE_2_SAMPLE_RATE,
RichardHoekstra 7:ace2a14eff7d 19 SET_SENSOR_PRESSURE_2_MVA,
RichardHoekstra 7:ace2a14eff7d 20 SET_RESPONSE_SENSOR_PRESSURE_2,
RichardHoekstra 7:ace2a14eff7d 21 //Temperature sensor commands
RichardHoekstra 7:ace2a14eff7d 22 SET_SENSOR_TEMPERATURE_1_SAMPLE_RATE,
RichardHoekstra 7:ace2a14eff7d 23 SET_SENSOR_TEMPERATURE_1_MVA,
RichardHoekstra 7:ace2a14eff7d 24 SET_RESPONSE_SENSOR_TEMPERATURE_1,
RichardHoekstra 7:ace2a14eff7d 25 SET_SENSOR_TEMPERATURE_2_SAMPLE_RATE,
RichardHoekstra 7:ace2a14eff7d 26 SET_SENSOR_TEMPERATURE_2_MVA,
RichardHoekstra 7:ace2a14eff7d 27 SET_RESPONSE_SENSOR_TEMPERATURE_2,
RichardHoekstra 7:ace2a14eff7d 28 //Flow sensor commands
RichardHoekstra 7:ace2a14eff7d 29 SET_SENSOR_FLOW_SAMPLE_RATE,
RichardHoekstra 7:ace2a14eff7d 30 SET_SENSOR_FLOW_MVA,
RichardHoekstra 7:ace2a14eff7d 31 SET_RESPONSE_SENSOR_FLOW,
RichardHoekstra 7:ace2a14eff7d 32 //Motor sensor
RichardHoekstra 7:ace2a14eff7d 33 //Note: currently not used
RichardHoekstra 7:ace2a14eff7d 34 SET_SENSOR_SPEED_SAMPLE_RATE,
RichardHoekstra 7:ace2a14eff7d 35 SET_SENSOR_SPEED_MVA,
RichardHoekstra 7:ace2a14eff7d 36 SET_RESPONSE_SENSOR_SPEED
RichardHoekstra 7:ace2a14eff7d 37 };