|
 |
10-18-2005, 03:54 AM
|
#1
|
|
Maximum Bitrate
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
__________________
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/
|
|
|
|
|
|
Advertisement
|
Sponsored links
|
10-18-2005, 12:26 PM
|
#2
|
|
SMKFree
Join Date: Aug 2003
Location: Chicago
Posts: 4,841
|
nice job
|
|
|
10-18-2005, 07:50 PM
|
#3
|
|
RoadRunner Mastermind
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."
|
|
|
10-18-2005, 09:28 PM
|
#4
|
|
Maximum Bitrate
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/
|
|
|
10-19-2005, 07:19 AM
|
#5
|
|
Maximum Bitrate
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.
__________________
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/
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:11 AM.
| |