03-25-2007 11:32 AM
03-26-2007 01:03 AM
Hi Hombre,
I like the map! ... liked it so much I got a "bit" carried-away implementing your idea for steering-wheel orientation. It also seemed like the route-drawing could use mouse events, and the driving/plotting-function could be run as a parallel-task.
There's probably a simpler way to get steering-wheel orientation, but this way produced the "segment" lengths which are convenient for guessing about "braking".
Cheers!
03-27-2007 07:13 AM
Hi tbd
can i just say wow, what you've done is amazing, could i ask if you can add me to your msn list may be cause i need someone to bounce ideas off and if your available i'd like you to help me out with some bits. cheers
hombre
03-27-2007 10:45 PM - edited 03-27-2007 10:45 PM
Hi Hombre!
Let me return the "wow!" - those are the best kudos I ever got.
No "msn list" here - had to google to see what you meant! If you have new LabVIEW-related ideas to bounce, you'll discover some incredibly smart people here, willing to share their thoughts - I'm certainly not the only soul who's caught the programming bug! If you have questions related to this program (or even non-LabVIEW general-programming questions,) just keep replying to this thread!
Cheers!
Message Edited by tbd on 03-27-2007 10:46 PM
03-29-2007 09:44 AM
03-29-2007 12:45 PM
1) i can't seem to get the a little picture of a car to follow the route set2) I can't seem to work out how to add indicators to the vi, so that when wants to turn left, FIRSTLY the indicators come on then the brakes come on then the car slows down.
2) It sounds like, as the car is being placed, you want to indicate what the car is going to do next. To place the car, you're using a set of coordinates from an array. To know what the car will do next, just look-ahead at the next set of coordinates! Play-around with some array examples.
Re: Brakes: There's a concept that I'm not sure about yet: Does the position-data represent the cars position at regular time-intervals? If so, then you can use the distance the car travels between samples to infer whether it's speed has changed from one sample to the next(?) You can anticipate brake activity the same as turn-signals - by looking ahead.
I think it would make life easier to pre-process all the position-data and synthesize the turn-signal/brake states, then supply this info to the loop that plots the car. Why don't you work on building a sub-VI that takes the array of positions as an input parameter, and outputs an array of clusters, where each cluster indicates what the car is doing? (see attached). You should be able to "cannibalize" the existing code to get you started.
Cheers!
03-31-2007 01:41 PM
03-31-2007 02:34 PM
03-31-2007 10:19 PM
Hey Hombre,
The code would have seemed a bit overwhelming for a beginning LabVIEWer - was hoping you'd dig-in, study related examples that ship with LabVIEW - and feel free to ask questions. If it's any encouragement, the program uses basic constructs that are worth learning. The top loop is a very simple "State Machine" (search this Forum) - all it does is wait for a mouse or button "event", jump to a Case for handling the event, then return to a wait-state. Rather than spell it all-out here, I added much comments.
I don't know how you're going to use the GPS data to control the visual-effects you have in mind, and there's a big section of code that needs your attention, but it's been roughed-out and returns values. To now the approach has been: update the GUI once for every GPS point - do you think that will still work?
I appreciate your interest in emailing stuff, though, I hope we can keep working through this board (email at home is not convenient!) Try saving without diagram graphics - if necessary, maybe attach graphics seperately. I just resaved your program this way and its size dropped from 2.3 Mb G to 0.2Mb!
Cheers!