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.
Dependencies: FiniteStateMachine HipControl Knee LinearBlend1 LocalFileSystem_Read dataComm hapticFeedback initExoVars mbed Blend_Generator Brad_poly_gait Gait_Generator MM_gait Encoders IMUdriver
Fork of Motion Control by
dataBedComm.cpp
00001 #include "mbed.h" 00002 #include "initExoVars.h" 00003 00004 //////////////////////////////////////////////////////// 00005 // Databed comm stuff 00006 //////////////////////////////////////////////////////// 00007 00008 short *sendData(short dataOut[], int length, short dataIn[]) 00009 { 00010 for(int ii=0; ii<length; ii++) { 00011 DB_cs=0; 00012 dataIn[ii]=dataBedSPI.write(dataOut[ii]); 00013 DB_cs=1; 00014 wait_us(4); 00015 } 00016 return dataIn; 00017 }
Generated on Wed Jul 13 2022 19:10:15 by
1.7.2
