Results 1 to 5 of 5

Thread: GPS Gamma support

  1. #1
    Maximum Bitrate skippy76's Avatar
    Join Date
    Mar 2004
    Location
    Cambridge, MA, USA
    Posts
    507

    GPS Gamma support

    Ok guys,

    So I've taken my code that I did before and have integrated into RR.

    GUINO:

    Description: This introduces a new Gamma Mode (3) which when set will make use of the GPS data from the port gpsmappointport to set the day or night gamma (in general.ini of skin). A parameter: GPSGammaModeOffset can also be set in the rr.ini. It's value is in minutes and enables the changing of the Gamma to happen gradually over a period of time. E.g. if set to 30 mins will cause Gamma to change between day and night over a period of 60 mins. Please add the code changes and I'll test (and others can test) by manually setting the rr.ini values. ONce I've validated this functionality we can add to RRConfig. BTW, my phidget temperature offsets worked great!

    Here are the code changes required:

    - Add the modGPSGamma.bas to RoadRunner.vbp

    - frmLoader : proc Form_Load

    * Add line: GPSGammaModeOffset = 0 ' added by skippy76 gps-gamma

    * Change line : If GammaMode <> 2 Then
    To : If GammaMode < 2 Then ' changed by skippy76 gamma-gps

    - frmLoader : proc LoadSettings

    * Add:
    ' added by skippy76 gamma-gps
    Case "gpsgammamodeoffset"
    GPSGammaModeOffset = Val(Trim(DT(1)))
    ' end added by skippy76
    After:
    Case "gammamode"
    GammaMode = Val(Trim(DT(1)))

    - modRoadRunner : Declerations

    * Add: Public GPSGammaModeOffset As Integer 'GPS Gamma Mode offset in minutes added by skippy76 gamma-gps

    * Change: Public GammaMode As Integer
    Adding : "3=Built in with GPS" to comment line

    - modRoadRunner : procedure Exec

    * Change: Case "mapmonkey", "destinator"
    With new case :
    Case "mapmonkey", "destinator"
    CODE = "load;destinator_gps.skin;Map Monkey;" + MapMonkey_PATH + ";Map Monkey -"
    'If MapPointPort Open, close it
    ' added by skippy76 gps-gamma
    'If MapPointPort <> 0 Then CommClose MapPointPort
    ' end added by skippy76 gps-gamma

    * Change: Case "external"
    With new case :
    Case "external"
    CODE = "load;external_gps.skin;External GPS;" + GPS_PATH + ";" + GPS_NAME
    'If MapPointPort Open, close it
    ' added by skippy76 gps-gamma
    'If MapPointPort <> 0 Then CommClose MapPointPort
    ' end added by skippy76 gps-gamma

    - modRoadRunner : Procedure UpdateScreen
    * Add after ReadGPS
    ' added by skippy76 gps-gamma
    If GammaMode = 3 Then
    newgamma = calc_gamma(gammaday, gammanight, GPS.Lon, GPS.Lat, GPSGammaModeOffset)
    SetGamma newgamma.red, newgamma.green, newgamma.blue
    End If
    ' end added by skippy76 gps-gamma
    Attached Files Attached Files
    06 Volvo XC90
    Use to have installed MII 10000/512Mb/40GB, Lilliput 7", OPUS 90W, Wifi-G PCMCIA, Head Unit Aux adapter, Delorme GPS, XM PCR, Audigy NX, RR
    Car PC downloads: http://carpc.harteveldt.com/

  2. #2
    SMKFree liquid_smoke's Avatar
    Join Date
    Aug 2003
    Location
    Chicago
    Posts
    4,842
    nice job

  3. #3
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    If you have the latest RR source updated, I would like to get it from you since I haven't made any changes since the last release... it seems you did yet another good job at it..
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  4. #4
    Maximum Bitrate skippy76's Avatar
    Join Date
    Mar 2004
    Location
    Cambridge, MA, USA
    Posts
    507
    Ok, shall send over the changed files to you. That would be easier I guess.
    06 Volvo XC90
    Use to have installed MII 10000/512Mb/40GB, Lilliput 7", OPUS 90W, Wifi-G PCMCIA, Head Unit Aux adapter, Delorme GPS, XM PCR, Audigy NX, RR
    Car PC downloads: http://carpc.harteveldt.com/

  5. #5
    Maximum Bitrate skippy76's Avatar
    Join Date
    Mar 2004
    Location
    Cambridge, MA, USA
    Posts
    507
    Ok, here is a zip file with the changed / added files. I have also included the PHID Relay stuff.
    Attached Files Attached Files
    06 Volvo XC90
    Use to have installed MII 10000/512Mb/40GB, Lilliput 7", OPUS 90W, Wifi-G PCMCIA, Head Unit Aux adapter, Delorme GPS, XM PCR, Audigy NX, RR
    Car PC downloads: http://carpc.harteveldt.com/

Similar Threads

  1. garmin mapsource and usb gps mouse
    By thecrow in forum GPS
    Replies: 9
    Last Post: 09-26-2006, 03:24 PM
  2. feature request: native gps support
    By liquid_smoke in forum Road Runner
    Replies: 43
    Last Post: 11-24-2005, 11:37 PM
  3. Request: Time based gamma control.
    By TRONiC in forum Centrafuse
    Replies: 2
    Last Post: 09-20-2005, 08:16 PM
  4. Replies: 8
    Last Post: 03-26-2005, 11:29 AM
  5. few gps questions
    By fuctup in forum GPS
    Replies: 2
    Last Post: 03-02-2005, 02:40 AM

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
  •