Bayley Wang
/
foc-ed_in_the_bot_compact
robot
Diff: BREMS/BREMSConfig.cpp
- Revision:
- 46:748aba7d111d
- Parent:
- 44:3fd6a43b91f0
- Child:
- 47:1c9868e226d0
--- a/BREMS/BREMSConfig.cpp Sun Jan 08 09:07:39 2017 +0000 +++ b/BREMS/BREMSConfig.cpp Tue Jan 10 04:47:38 2017 +0000 @@ -103,7 +103,8 @@ io->pc = new Serial(USBTX, USBRX); io->pc->baud(115200); - + BREMSStartupMsg(read, io->pc); + io->throttle_in = new PwmIn(TH_PIN, TH_LIMIT_LOW, TH_LIMIT_HIGH); io->pos = new PositionSensorEncoder(CPR, 0); @@ -130,5 +131,6 @@ wait_ms(250); BREMSZeroCurrent(read); + io->en->write(1); } \ No newline at end of file