05-31-2009, 05:27 PM
|
#1511 (permalink)
|
PaulH
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832
Thanks: 1,362
Thanked 1,202 Times in 765 Posts
|
Those sound like good variable names. I did global for everything at first because I wasn't sure what I wanted to be local, and I didn't want to re-initialize variables each time. It's a practice that old school 3d video game programmers, a la Andree Lamothe, did in the late 80's & early 90s.
I believe the interrupts are re-enabled by resetting the SREG register to what it was before disabling interrupts, rather than using sti(). It works in the simulator, as far as I can tell, but in the car, even the high pedal lockout isn't working! I think there is a fundamental problem with the old hardware from the blown up control section. Voltage spikes are now much worse in the control section than when I first tested it on the first controller that blew up. I really don't think the software is all to blame. I can't really do much until I get a new oscilloscope, which will be very soon, either by a friend that's checking on some for me, or by getting another on Ebay.
|
|
|
Today
|
|
|
Other popular topics in this forum...
|
|
|
05-31-2009, 05:59 PM
|
#1513 (permalink)
|
PaulH
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832
Thanks: 1,362
Thanked 1,202 Times in 765 Posts
|
Hey edown! I WAS thinking of getting a USB oscilloscope... Weird... I wasn't sure how good they are, but I bet they work well.
|
|
|
06-01-2009, 04:47 AM
|
#1514 (permalink)
|
EcoModding Lurker
Join Date: May 2009
Location: Bucharest,RO and Copenhagen,DK
Posts: 42
Thanks: 0
Thanked 1 Time in 1 Post
|
Quote:
Originally Posted by MPaulHolmes
...
EDIT: Hey, I think I sent it! I had to go to REPO BROWSER. Duh! hahaha! Then I dragged and dropped (which I never do, I was desperate) the file onto the REPO BROWSER.
|
Using the REPO BROWSER is the way to work DIRECTLY on the server. You are not supposed to do that normally ...
It sounds like you skipped the first part of the how to I've sent you: SVN CHECKOUT. The option you are looking for (COMMIT) appears only in "special" local directories that you create using checkout. Check this out ![Wink](/forum/images/smilies/wink.gif) :
Last edited by charlie_fd; 06-01-2009 at 04:50 AM..
Reason: minor spelling mistakes
|
|
|
06-02-2009, 01:30 AM
|
#1515 (permalink)
|
PaulH
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832
Thanks: 1,362
Thanked 1,202 Times in 765 Posts
|
Thanks, Charlie. I think I get it now. Before I was checking out, which was making that directory with the little green thing on it, but I wasn't going in there. I was just then trying to send the project from where I was working on it.
Oh the humanity... I soldered on a big capacitor on the output of the DC-DC, which made the signal cleaner. The oscilloscope sort of healed itself, but is still really flickery. It's days may be numbered. The control section had a bad mosfet driver, and now it has other bad stuff too. It's just acting strange. I need a new control section! Fortunately, the 3 control section boards are all done, and are on their way to the engineer for assembly and testing.
|
|
|
06-02-2009, 08:04 AM
|
#1516 (permalink)
|
needs more cowbell
Join Date: Feb 2008
Location: ÿ
Posts: 5,038
Thanks: 158
Thanked 269 Times in 212 Posts
|
Quote:
Originally Posted by MPaulHolmes
I believe the interrupts are re-enabled by resetting the SREG register to what it was before disabling interrupts, rather than using sti().
|
That usually works, but it is only necessary when enabling interrupts from within a function that is going to be called from both interrupt enabled code and interrupt disabled code.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
|
|
|
06-02-2009, 10:45 PM
|
#1517 (permalink)
|
Losing the MISinformation
Join Date: Oct 2008
Location: Southern Missouri
Posts: 393
Thanks: 15
Thanked 3 Times in 3 Posts
|
Quote:
Originally Posted by MPaulHolmes
It's days may be numbered.
|
29... 28... 27...
You guys may as well be working on HAL for all the help I could be. I guess I'll just stay up in the nosebleed section and watch with my binocs... ![Roll Eyes (Sarcastic)](/forum/images/smilies/rolleyes.gif)
__________________
The brake pedal is my enemy. The brake pedal is my enemy. The brake pedal...
|
|
|
06-02-2009, 11:04 PM
|
#1518 (permalink)
|
Deadly Efficient
Join Date: Jun 2008
Location: Goshen, Indiana
Posts: 1,234
Thanks: 134
Thanked 176 Times in 91 Posts
|
There's plenty of room up here for ya, Intrigued.
Come to the nosebleed section... we have peanuts!
__________________
-Terry
|
|
|
06-02-2009, 11:04 PM
|
#1519 (permalink)
|
PaulH
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832
Thanks: 1,362
Thanked 1,202 Times in 765 Posts
|
Speaking of HAL (well, hell. haha!), want to hear a funny story, Intrigued? Our church decided to have another service at a movie theater near my house, so it's easier to go there since it's so close. They have it in the same room that they show "Drag Me To Hell"! haha. So, when people are looking for the right room, the usher people say, "Oh it's in the drag me to hell room"
haha!
|
|
|
06-02-2009, 11:47 PM
|
#1520 (permalink)
|
Losing the MISinformation
Join Date: Oct 2008
Location: Southern Missouri
Posts: 393
Thanks: 15
Thanked 3 Times in 3 Posts
|
LOL! I'd rather they drag me AWAY from hell...
Hey, TC! Thinking about peanuts... back in the '70s when I was helping build our city football stadium we'd stop at the gas station on the way out, and buy a bottle of Pepsi and a bag of Peanuts. Then at break time we'd open the peanuts and pour them into the Pepsi...
...(Homer Simpson voice)... MMMMmmmm.... Peanuts and Pepsi...
__________________
The brake pedal is my enemy. The brake pedal is my enemy. The brake pedal...
|
|
|
|