The MP3car.com Store The MP3car.com Store    

Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Front Ends > Road Runner

Reply
 
LinkBack Thread Tools Display Modes
Old 10-18-2005, 03:54 AM   #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
File Type: zip modGPSGamma.zip (3.8 KB, 60 views)
__________________
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/
skippy76 is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 10-18-2005, 12:26 PM   #2
SMKFree
 
liquid_smoke's Avatar
 
Join Date: Aug 2003
Location: Chicago
Posts: 4,841
nice job
liquid_smoke is offline   Reply With Quote
Old 10-18-2005, 07:50 PM   #3
RoadRunner Mastermind
 
guino's Avatar
 
Join Date: Nov 2004
Location: Vitória, ES - Brazil
Posts: 8,043
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..
__________________
Road 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."
guino is offline   Reply With Quote
Old 10-18-2005, 09:28 PM   #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/
skippy76 is offline   Reply With Quote
Old 10-19-2005, 07:19 AM   #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
File Type: zip Gamma PHDRL.zip (78.8 KB, 39 views)
__________________
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/
skippy76 is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
garmin mapsource and usb gps mouse thecrow GPS 9 09-26-2006 02:24 PM
feature request: native gps support liquid_smoke Road Runner 43 11-24-2005 10:37 PM
Request: Time based gamma control. TRONiC Centrafuse 2 09-20-2005 07:16 PM
Delou Routis GPS USB install issues, please help... jedi7001 GPS 8 03-26-2005 10:29 AM
few gps questions fuctup GPS 2 03-02-2005 01:40 AM


All times are GMT -5. The time now is 08:11 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics