Offline
Full Member
Karma: 0
Posts: 196
|
 |
« Reply #30 on: February 21, 2012, 03:41:14 pm » |
i have told the code that if the gps starts availablity it moves the car forward if the direction of the destination is on the left the car should move left and so on.... but the GPS is getting available but not moving the car find any thing that i have done wrong in the code thats not working
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 143
Posts: 19370
I don't think you connected the grounds, Dave.
|
 |
« Reply #31 on: February 21, 2012, 03:44:25 pm » |
You could add some debug prints.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 196
|
 |
« Reply #32 on: February 21, 2012, 03:47:39 pm » |
like Serial Print thing
but i dont want it to be printed on serial monitor
|
|
|
|
|
Logged
|
|
|
|
|
Gosport, UK
Offline
Faraday Member
Karma: 19
Posts: 3117
|
 |
« Reply #33 on: February 21, 2012, 03:48:13 pm » |
@cutebuddy6 - Why do make it so hard for people that are trying to help you? AWOL must have the patience of a saint.
We can't replicate your jeep thing. You are the only person to have it. We can't tell what your Arduino is doing. You are the only person that can.
Until you find a way of working out what the code is doing, there is absolutely nothing we can do to help.
The normal way is to Serial.print() debugging messages. Detach the power from the motors, so the jeep can't move, and put some debugging messages into your code to find out what it is doing.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 143
Posts: 19370
I don't think you connected the grounds, Dave.
|
 |
« Reply #34 on: February 21, 2012, 03:50:46 pm » |
AWOL must have the patience of a saint It says St Michael on my underpants, but I'm no saint.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Gosport, UK
Offline
Faraday Member
Karma: 19
Posts: 3117
|
 |
« Reply #35 on: February 21, 2012, 03:57:50 pm » |
Ah. M&S shopper. Must have had them a while, they dropped that brand in 2000.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 196
|
 |
« Reply #36 on: February 21, 2012, 04:04:54 pm » |
where are you both? please help me with the code
|
|
|
|
|
Logged
|
|
|
|
|
Gosport, UK
Offline
Faraday Member
Karma: 19
Posts: 3117
|
 |
« Reply #37 on: February 21, 2012, 04:13:07 pm » |
Did you not read what I said?
Let me repeat it. Until you find a way of working out what the code is doing, there is absolutely nothing we can do to help.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 143
Posts: 19370
I don't think you connected the grounds, Dave.
|
 |
« Reply #38 on: February 21, 2012, 04:14:56 pm » |
What have you done to help yourself since your last post? Here's the seed of a useful technique. It isn't complete, but the thought's there. #define DEBUG
#ifdef DEBUG #define DEBUGPRINT(x) Serial.print(x) #define DEBUGPRINTLN(x) Serial.println(x) #else #define DEBUGPRINT(x) #define DEBUGPRINTLN(x) #endif
|
|
|
|
« Last Edit: February 21, 2012, 04:20:14 pm by AWOL »
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 196
|
 |
« Reply #39 on: February 21, 2012, 04:20:18 pm » |
i have tried My best knowledge to solve this issue but i am unable to do i have tried to check gps with LCD and its working i have tried the car with timings to go forward left and right and so
but when i combine the code into one controller it does nothing... why?
kindly do review the code of GPS navigation i think it has the problem
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 143
Posts: 19370
I don't think you connected the grounds, Dave.
|
 |
« Reply #40 on: February 21, 2012, 04:25:11 pm » |
i think it has the problem I work on embedded processors many, many times more powerful than the Arduino, with thousands of times more memory, and dozens of separate peripherals and subsystems. They're about the size of a credit card or smaller. The code runs to hundreds of thousands, if not millions of lines of C, C++ and assembler (don't worry, I didn't write all of them). Do I have an exotic JTAG debugger? No. I have debug prints. I don't "think" my code has problems - I find out.
|
|
|
|
« Last Edit: February 21, 2012, 04:45:21 pm by AWOL »
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
New Jersey
Online
Edison Member
Karma: 26
Posts: 2454
|
 |
« Reply #41 on: February 21, 2012, 04:28:22 pm » |
The normal way is to Serial.print() debugging messages. Detach the power from the motors, so the jeep can't move, and put some debugging messages into your code to find out what it is doing. Or put it up on blocks so that you can see the wheels spinning on command and put in some strategic prints to help you narrow down the issues. But whichever way, as you're being repeatedly told, you have to learn to debug.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 196
|
 |
« Reply #42 on: February 21, 2012, 04:43:00 pm » |
yeah thats it buddy i am going to try this.... Now
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 143
Posts: 19370
I don't think you connected the grounds, Dave.
|
 |
« Reply #43 on: February 21, 2012, 04:54:20 pm » |
Oh <insert deity of your choice here>, finally
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
|