Basis aansturing projectgroep 3
Dependencies: Biquad HIDScope MODSERIAL QEI mbed
Diff: main.cpp
- Revision:
- 3:93f4ab4a7339
- Parent:
- 2:0954eb04bb4c
--- a/main.cpp Thu Oct 13 11:07:26 2016 +0000 +++ b/main.cpp Fri Oct 14 14:23:50 2016 +0000 @@ -92,15 +92,16 @@ Position_R = Encoder_R.getPulses()*AnglePerPulse+Previous_Position_R; //Speed in RadPers second - Motor_Speed_L = Previous_Position_L - Position_R + //---------------------Sending data--------------------------------------------- scope.set(0,M_L_S); //Sending motor left speed scope.set(1,M_R_S); //sending random value scope.send(); } //-----------------------Encoders----------------------------------------------- -int Get_Phase_L(int Phase){ - Phase = Encoder_L.getCurrentState(); +int Get_Phase_L(){ + int Phase = Encoder_L.getCurrentState(); + return Phase; } int main()