Page 4 of 23 FirstFirst 1234567891011121314 ... LastLast
Results 31 to 40 of 223

Thread: Beginning of an Automatic Climate Control System, all juiced up on Fusion

  1. #31
    FLAC
    Join Date
    Oct 2006
    Location
    Las Vegas
    Posts
    1,286
    Quote Originally Posted by 2k1Toaster View Post
    When you put it in a class, you have to create an instance of it.

    public class Blah {

    public Blah() {
    return;
    }

    public bool BlahThing(bool input) {
    return input;
    }
    }

    then in the main section you need:

    Blah myBlah = new Blah();
    bool returnValue = myBlah.BlahThing(true);

    Thanks a bunch, that worked. I guess I was calling the class.method wrong and not building the instance right.

    That definately helped me a little better than the books I'm using, for some reason.

    All that and I think I have the timer class down a little better, after seeing how you used it.

    I think that flap moving all on it's own is coming sooner than later.

  2. #32
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    Yeah when I first started I had no idea how to use a class. Still to this day though, I dont understand using classes for things a regular method can do. The only time I use them is for obviously different pages, then custom types (like the Digital Outs, Anal. Ins, and Dig. Ins), and things that are the same that would be good to use on different pages (like a dec to binary string converter type thing).

    The 1 class I took in C#, the professor was obsessed with classes. Drove me crazy. Had to make a class just to get/set a variable and add/subtract... Useless. Like Calculator class and then myCalcClass.Subtract(int a, int b)... Why not just a - b. So much simpler. That guy really ****ed me off.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  3. #33
    FLAC
    Join Date
    Oct 2006
    Location
    Las Vegas
    Posts
    1,286
    ***deletes his new calculator class in shame...***

  4. #34
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    Quote Originally Posted by h3rk View Post
    ***deletes his new calculator class in shame...***


    me.Laugh(true);


    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  5. #35
    FLAC
    Join Date
    Oct 2006
    Location
    Las Vegas
    Posts
    1,286
    While working on the heat transfer alg's I had an interesting thought. The OEM's take into account the shell of the car for conduction heat transfer, and the glass area for sun radiated heat transfer to tune their heat balance alg's that determine fan speed and door position. Glass plays a part in both of those factors. both in transparence and in coefficient of heat transfer. One trip to the local tint shop and we screw that all up. With this, we'll be able to tune for it

  6. #36
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    You going to put a photosensor on the inside of the car, and outside and measure the difference to get your tint value? Or just measure from the inside as that is the light coming through?

    EDIT: and you sure are up late!
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  7. #37
    FLAC
    Join Date
    Oct 2006
    Location
    Las Vegas
    Posts
    1,286
    I'm not sure that will allow me to compare apples and apples. There will be some info the user (or me somehow enetering it in table format for each model) gathering cabin volume and glass area. Then I hope by monitoring temperature changes over time, the other coefficients,fan curves, constants, etc. can be determined by analyzing what data can be obtained. Start the car park it in the shade and when coolant temp is right and whatnot, push the 'calibrate' button. After some time it may prompt for another run with different conditions. Once the coefficients are obtained, maybe only slight tuning would be required later, and the car would be ready to tackle dynamic situations like everyday use, using those constants, sunload, and temps to drive the door and the fan automatic-style.

    And I might add so are you

    Edit: I want to let it be known that I'm not ignoring humidity, but right now I have enough on my plate, that will come with time, it all will.

  8. #38
    Low Bitrate
    Join Date
    Mar 2007
    Posts
    70
    For what ever it's worth, I have some experience working with models and I have found that the easiest way to play with them is to use excel.

    Can you tell me about your solenoid module? Where did you get it?

  9. #39
    FLAC
    Join Date
    Oct 2006
    Location
    Las Vegas
    Posts
    1,286
    Quote Originally Posted by mustanglou View Post
    For what ever it's worth, I have some experience working with models and I have found that the easiest way to play with them is to use excel.

    Can you tell me about your solenoid module? Where did you get it?
    I got it at rockauto.com for $54, it's AC-Delco PN: 15-72182.

    I've seen modeling done in excel, and that is the first place I put the alg's to see what they should be, then I put it in the prog to see how it can be implemented.

  10. #40
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    First of the Uber Edition: http://www.mp3car.com/vbulletin/soft...ml#post1144574

    If there is a graphic element in your skin that could be made easier let me know. I havent included labels or the equivalent of dead images yet. And I am still building the control options (what to do when clicked).
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

Similar Threads

  1. AIMEE Climate Control POLL
    By Danceheaven in forum Software & Software Development
    Replies: 25
    Last Post: 01-14-2010, 09:38 AM
  2. Replies: 85
    Last Post: 07-09-2007, 04:44 AM
  3. Digital dash and climate control???
    By yamathegreat in forum General Hardware Discussion
    Replies: 3
    Last Post: 10-31-2005, 04:41 PM
  4. System control wire on amp
    By dudah85 in forum General Hardware Discussion
    Replies: 3
    Last Post: 09-13-2001, 08:09 AM
  5. Replies: 22
    Last Post: 08-13-2001, 01:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •