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.

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 
Problem with HECL

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



Joined: 22 Jun 2010
Posts: 1

PostPosted: Tue Jun 22, 2010 10:56 pm    Post subject: Problem with HECL Reply with quote

Hello @all,
I'm new here, and installed trekbuddy because I want to calculate some special values (filtered vertical speed; ascent....) in HECL and display them on CMS. To do the calc I need a ring - buffer to store height and position data. I used the "list" command as there are no arrays in HECL... BUT it doesn' work.

Has anyone a idea what's wrong ?
(i is the buffer index, count is the input value (for testing))
After one loop through the buffer, all read values are the same as the actual written value...

-------------------
var output 0
var output2 0
var test1 0
var test2 0
var buffer {0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0}
var i 0
var count 0

proc calculate::onTrackingStart {} {
set i 0
set count 0
}

proc calculate::onLocationUpdated {} {

incr $count

set output [lindex $buffer $i]

lset $buffer $i $count

set test1 [copy $i]
set test2 [lindex $buffer 0]
set output2 [lindex $buffer 10]


incr $i
if {> $i 19} {set i 0}
}
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