Bílý vrch
icon TrekBuddy
www.trekbuddy.net
Outdoor companion.
  • internal / bluetooth / simulator GPS
  • offline raster maps
  • smart GPX / raw NMEA logs
  • waypoints and simple navigation
  • custom views
  • MIDP and Symbian phones
  • Blackberry
  • Android
Visit wiki to see all features, guides and howtos. Project tracker.
Trekbuddy is on Github now

Partners:    (Polish/Polski)(Polski) Compass mapy      (Polish/Polski)(Polski) Galileos mapy      (Polish/Polski)(Polski) CartoMedia      (Czech/Èesky)(Èesky) Eaglesoft trasy      (Polish/Polski)(Polski) ExpressMap     

 FAQFAQ   SearchSearch   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
How to use a hcl file

 
Post new topic   Reply to topic    TrekBuddy Forum Index -> Themes
View previous topic :: View next topic  
Author Message
electronic



Joined: 14 Nov 2009
Posts: 44

PostPosted: Thu Jan 21, 2010 9:58 am    Post subject: How to use a hcl file Reply with quote

.
What sould I write or that should be changed in this hcl file for the cms file recognition it and I can use the "brujula::desviacion" variable?



brujula.hcl wrote:
var brujula::time {}
var brujula::spd {}
var brujula::course {}
var brujula::alt {}
var brujula::desviacion
var brujula::fontchars {}

proc brujula::onLocationUpdated {} {


set brujula::desviacion [- $cms::wpt-azi $cms::course]

#set brujula::dir_index [round [/ [- $cms::wpt-azi $cms::course] 18]]
#set air::dir [lindex $air::fontchars $air::dir_index ]


set brujula::fontchars {0 1 2 3 4 5 6 7 8 9 "\ " "\+" "\-" "\." "\:" "\/" "\°" "\"" "\'" "h" "k" "m" "p" "s"}
}


cms.brujula.xml wrote:
<?xml version="1.0" encoding="UTF-8"?>
<cms version="1.0" align="right">
<colors mode="day" bgcolor="FFFFFF" fgcolor="000000" nxcolor="CC0000" pxcolor="006600" />
<colors mode="night" bgcolor="FFFFFF" fgcolor="000000" nxcolor="CC0000" pxcolor="006600" />
<fonts>

<font name="smallb" system="400108" />
<font name="medium" system="400000" />
<font name="mediumb" system="400100" />
<font name="big" system="400010" />
<font name="bigb" system="400110" />

</fonts>

<screen mode="full" w="240" h="320" x="0" y="0">

<area x="10" y="70" w="70" h="40" font="big" align="right">
<value>{course}</value>
</area>

<area x="10" y="100" w="70" h="40" font="big" align="right">
<value>{wpt-azi}</value>
</area>

<area x="10" y="130" w="70" h="40" font="big" align="right">
<value>{$brujula::desviacion}</value>
</area>

</screen>
</cms>


Thanks!
.
Back to top
View user's profile Send private message
vincent



Joined: 11 Feb 2008
Posts: 196

PostPosted: Thu Jan 21, 2010 9:06 pm    Post subject: Reply with quote

perhaps try : var brujula::desviacion 0

?

_________________
SE K750i + 512MB MS2 OR HTC Diamond + Qstarz BT-818 + Wintec 301 + latest TB
Back to top
View user's profile Send private message
electronic



Joined: 14 Nov 2009
Posts: 44

PostPosted: Fri Jan 22, 2010 8:34 pm    Post subject: Reply with quote

.
that's it! Laughing
that failure dumbest, thank you very much for helping me Wink Wink
.
Back to top
View user's profile Send private message
vincent



Joined: 11 Feb 2008
Posts: 196

PostPosted: Fri Jan 22, 2010 8:38 pm    Post subject: Reply with quote

hehehehehe Wink
_________________
SE K750i + 512MB MS2 OR HTC Diamond + Qstarz BT-818 + Wintec 301 + latest TB
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    TrekBuddy Forum Index -> Themes All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group