Pages: [1]   Go Down
Author Topic: .  (Read 78 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
.
 Bigger Bigger  Smaller Smaller  Reset Reset

.
« Last Edit: August 12, 2014, 06:35:52 pm by cha cha » Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 632
Posts: 50182
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Code:
pinMode(, OUTPUT); //MOTORS
pinMode(, OUTPUT);
pinMode(, OUTPUT);
pinMode(, OUTPUT);
pinMode(, OUTPUT);
pinMode(, OUTPUT);
What is this mess?

Code:
    case('w'):case('W'):sendCommand();break; // enter values
From this, is appears that sendCommand() takes no arguments.

Code:
void sendCommand(int m1,int m2, int m3, int m4, int m5, int m6, int s1, int s2, int s3, int s4, int chksum)
From this, it appears that the above statement is a crock of shit.

Quote
Am I on the right track?
No, but even if you were, that train is going to get you.

The first thing you need to consider is exactly what this:
Code:
  arduino.write(m1);
sends to the serial port. Does it send one byte, as you seem to expect? Does it send more than one byte because an int is bigger than a byte? Or, does the number of bytes sent depend on the value in the int ('4' is one byte, while '1023' is 4 bytes)?

Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
.
 Bigger Bigger  Smaller Smaller  Reset Reset

.
« Last Edit: August 12, 2014, 06:36:13 pm by cha cha » Logged

Pages: [1]   Go Up
Jump to: