In this programm the motors are not running.
What is wrong im my programm?
Greetigs
Jack.
include "mbed.h"
include "drive.h"
int ML=0, MR=0;
int MaxSpeed=0;
int main() {
while(1){
Drive XBeat(p21,p22);
Left, Right Servo Motor
MaxSpeed = 100;
MR = MaxSpeed;
ML = MaxSpeed;
}
}
Thanks fot the reply, but any help is welcom.
Hallo.
In this programm the motors are not running.
What is wrong im my programm?
Greetigs
Jack.
#include "mbed.h"
#include "drive.h"
int ML=0, MR=0;
int MaxSpeed=0;
int main() {
while(1){
Drive XBeat(p21,p22);
//Left, Right Servo Motor
MaxSpeed = 100;
MR = MaxSpeed;
ML = MaxSpeed;
}
}
... up to the section with the integer declarations, and outside your MAIN function.
FWIW, if you look at the "editing tips" link below the post text entry box, you can see how I have highlighted that line of code to make it easier for everyone to read the code.
Start by moving:
<<code>>
Drive XBeat(p21,p22);
<</code>>
... up to the section with the integer declarations, and outside your MAIN function.
FWIW, if you look at the "editing tips" link below the post text entry box, you can see how I have highlighted that line of code to make it easier for everyone to read the code.
... up to the section with the integer declarations, and outside your MAIN function.
FWIW, if you look at the "editing tips" link below the post text entry box, you can see how I have highlighted that line of code to make it easier for everyone to read the code.
include "mbed.h"
And stil is my motor not running wish this programm.What is a solution?
include "drive.h"
int ML=0, MR=0;
int MaxSpeed=0;
Drive XBeat(p21,p22); Left, Right Servo Motor
int main() {
MaxSpeed = 100;
MR = MaxSpeed;
ML = MaxSpeed;
}
<<quote Jackpo>>
Thanks fot the reply, but any help is welcom.
Hallo.
In this programm the motors are not running.
What is wrong im my programm?
Greetigs
Jack.
#include "mbed.h"
#include "drive.h"
int ML=0, MR=0;
int MaxSpeed=0;
int main() {
while(1){
Drive XBeat(p21,p22);
//Left, Right Servo Motor
MaxSpeed = 100;
MR = MaxSpeed;
ML = MaxSpeed;
}
}
<</quote>>
<<quote scotto>>
Start by moving:
<<code>>
Drive XBeat(p21,p22);
<</code>>
... up to the section with the integer declarations, and outside your MAIN function.
FWIW, if you look at the "editing tips" link below the post text entry box, you can see how I have highlighted that line of code to make it easier for everyone to read the code.
<</quote>>
#include "mbed.h"
And stil is my motor not running wish this programm.What is a solution?
#include "drive.h"
int ML=0, MR=0;
int MaxSpeed=0;
Drive XBeat(p21,p22); //Left, Right Servo Motor
int main() {
MaxSpeed = 100;
MR = MaxSpeed;
ML = MaxSpeed;
}
You havent given any details about "drive.h" so it makes it hard to help you, but the line
Left, Right Servo Motor int main () ....
doesnt look like correct C code to me. What are you trying to achieve on this line?
And once again, if you look at the "editing tips" link below the post text entry box, you can see how to highlight the lines of code to make it easier for everyone to read your code and therefore help you.
You havent given any details about "drive.h" so it makes it hard to help you, but the line
<<code>>
Left, Right Servo Motor int main () ....
<</code>>
doesnt look like correct C code to me. What are you trying to achieve on this line?
And once again, if you look at the "editing tips" link below the post text entry box, you can see how to highlight the lines of code to make it easier for everyone to read your code and therefore help you.
Important Information for this Arm website
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.
Access Warning
You do not have the correct permissions to perform this operation.
Thanks fot the reply, but any help is welcom.
Hallo.
In this programm the motors are not running. What is wrong im my programm?
Greetigs Jack.
int ML=0, MR=0;
int MaxSpeed=0;
int main() {
while(1){
Drive XBeat(p21,p22); Left, Right Servo Motor MaxSpeed = 100;
MR = MaxSpeed;
ML = MaxSpeed;
}
}