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.
Diff: main.cpp
- Revision:
- 28:2a62d73e3dd0
- Parent:
- 27:a2254a485f23
- Child:
- 29:69f3f5445d6d
diff -r a2254a485f23 -r 2a62d73e3dd0 main.cpp
--- a/main.cpp Tue Oct 01 05:18:16 2019 +0000
+++ b/main.cpp Tue Oct 01 11:52:10 2019 +0000
@@ -139,7 +139,6 @@
MODE_DDV_POS_VS_PWM_ID = 30, //30
MODE_DDV_DEADZONE_AND_CENTER, //31
MODE_DDV_POS_VS_FLOWRATE, //32
- MODE_ROM_RESET, //33
};
int main()
@@ -221,6 +220,7 @@
*************************************/
while(1) {
if(timer_while==1000) {
+ //pc.printf("cmd %d\n ");
//i2c
read_field(i2c_slave_addr1);
if(DIR_VALVE_ENC < 0) value = 1023 - value;
@@ -1596,13 +1596,6 @@
}
break;
}
- case MODE_ROM_RESET: {
- CAN_TX_TORQUE((int16_t) (7));
- ROM_RESET_DATA();
-
- CONTROL_MODE = MODE_NO_ACT;
- break;
- }
default:
break;
@@ -1769,3 +1762,4 @@
}
}
+