![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
[Ver 1.0] The code was given by Seunghoon shin, used for hydraulic quadrupedal robot. Buyoun Cho will revise the code for Post-LIGHT (the robot name is not determined yet).
Diff: CAN/function_CAN.cpp
- Revision:
- 15:bd0d12728506
- Parent:
- 14:8e7590227d22
- Child:
- 16:903b5a4433b4
--- a/CAN/function_CAN.cpp Thu Aug 29 07:38:00 2019 +0000 +++ b/CAN/function_CAN.cpp Fri Aug 30 02:26:11 2019 +0000 @@ -119,9 +119,9 @@ //pc.printf("can middle %d\n", request_type); // if (flag_data_request[1] == HIGH) SPI_VREF_DAC_WRITE(PRES_A_VREF, PRES_B_VREF, TORQUE_VREF, 0); // set DAC - if (flag_data_request[1] == HIGH) dac_1 = PRES_A_VREF/3.3; + //if (flag_data_request[1] == HIGH) dac_1 = PRES_A_VREF/3.3; // if (flag_data_request[2] == HIGH) SPI_VREF_DAC_WRITE(PRES_A_VREF, PRES_B_VREF, TORQUE_VREF, 0); // set DAC - if (flag_data_request[2] == HIGH) dac_2 = PRES_B_VREF/3.3; + //if (flag_data_request[2] == HIGH) dac_2 = PRES_B_VREF/3.3; break; }