| View previous topic :: View next topic |
| Author |
Message |
nxsfan
Joined: 23 Mar 2009 Posts: 11
|
Posted: Mon Mar 30, 2009 12:35 pm Post subject: |
|
|
Vincent:
I can use vincent::var as a variable in the xml after it has been defined using: set vincent::var 0
In the xml i have: <value>{$vincent::var}</value> (amongst other things)
When I first run the program I see 0 on the screen. Then when I start tracking it changes to 100: ([ * $e $e] |
|
| Back to top |
|
 |
kruch Site Admin
Joined: 02 Jul 2006 Posts: 5088
|
Posted: Mon Mar 30, 2009 1:17 pm Post subject: |
|
|
| nxsfan wrote: |
| I can use vincent::var as a variable in the xml after it has been defined using: set vincent::var 0 |
This may stop working after I do some optimizations - using var command is safer for vars used in xml directly  |
|
| Back to top |
|
 |
kruch Site Admin
Joined: 02 Jul 2006 Posts: 5088
|
Posted: Mon Mar 30, 2009 1:20 pm Post subject: |
|
|
| vincent wrote: |
@kruch : the cms::speed is always in km/h ? even if we change the Tb units.
is it normal ? |
It's a bug
Coordinates (cms::lat, cms::lon) will be gsm84. |
|
| Back to top |
|
 |
nxsfan
Joined: 23 Mar 2009 Posts: 11
|
Posted: Mon Mar 30, 2009 1:47 pm Post subject: |
|
|
Kruch can you tell me why I'm having trouble with onKeypress?
If i replace onTrackingStart {} from my previous example with onKeyPress {} I can never get the procedure to run (I press 2 and up). |
|
| Back to top |
|
 |
vincent
Joined: 11 Feb 2008 Posts: 196
|
Posted: Mon Mar 30, 2009 2:16 pm Post subject: |
|
|
@kruch :
1 / the cms::time is a round of 1 seconds x 1000
but I work with frequency over 1hz. (2-3-4-5hz and 10hz)
Will Tb manage cms:time more precise in futur ? giving the cms::time with ms ?
2/ if you could explain me rapidly the long format cms:time ?
because when I see 1202716036000
I suppose that this cms:time in ms include the date ? but how to understand ? 1970 ?
3/ in the nmea information there are two informations that define speed.
one speed that is a positional calculation and one that is a doppler deduction. will TB give access to the both speed ? in hecl ?
3/ okay for the coord format ... will try to test if my convertion in utm in real time will be as optimized in hecl as needed  _________________ SE K750i + 512MB MS2 OR HTC Diamond + Qstarz BT-818 + Wintec 301 + latest TB |
|
| Back to top |
|
 |
kruch Site Admin
Joined: 02 Jul 2006 Posts: 5088
|
Posted: Mon Mar 30, 2009 9:19 pm Post subject: |
|
|
@nxsfan try "debug" area with <value>{$nxsfan::onKeyPress}</value> to see if it is SUCCESS or error (exception message).
The correct function signature is "proc prefix::name {keycode}" (I do not think it is the problem, but one never knows...)
@vincent 1+2) ms part of timestamp is really rounded - I will fix it; and yes, it is "1970" time
3) do you know what NMEA sentence carries which speed? |
|
| Back to top |
|
 |
nxsfan
Joined: 23 Mar 2009 Posts: 11
|
Posted: Tue Mar 31, 2009 10:07 am Post subject: |
|
|
Thanks Kruch, I got it working using the information from the debug variable.
I was originally using:
onKeyPress {} {
Some code
}
The first set of parenthesis were ignored and the second were treated as an argument list to onKeyPress generating an error: Too many arguments.
Changing to
nxsfan::onKeyPress {localvar} {
Some code
}
did the trick.
However, if i'm triggering a function using onTrackingStart {} and I start tracking the screen is redrawn instantly (the variable dynamically updates). But if my trigger is onKeyPress I have to change to another CMS screen and then back again to see the variable update.
set nxsfan::var [cos {45}] does work
but set nxsfan::var [random {}] doesn't (it always returns 0, as does [random]. Am I doing something wrong? |
|
| Back to top |
|
 |
madmax
Joined: 17 Oct 2008 Posts: 2
|
Posted: Tue Mar 31, 2009 6:08 pm Post subject: http-requests in hcl |
|
|
Great !
does hcl in TB support hhtp functions such as:
http.data [http.geturl http://www.testfirma.de]
Phil |
|
| Back to top |
|
 |
nxsfan
Joined: 23 Mar 2009 Posts: 11
|
Posted: Tue Mar 31, 2009 6:38 pm Post subject: |
|
|
madmax:
Kruch said "only its core is integrated"
But I really hope file i/o and http stuff is added! I've got an unlimited data tariff to play with  |
|
| Back to top |
|
 |
kruch Site Admin
Joined: 02 Jul 2006 Posts: 5088
|
Posted: Tue Mar 31, 2009 7:54 pm Post subject: |
|
|
| nxsfan wrote: |
madmax:
Kruch said "only its core is integrated"
But I really hope file i/o and http stuff is added! I've got an unlimited data tariff to play with  |
It is planned for the next phase of integration; 0984 really has hecl-core only. |
|
| Back to top |
|
 |
nxsfan
Joined: 23 Mar 2009 Posts: 11
|
Posted: Thu Apr 02, 2009 11:43 am Post subject: |
|
|
Is there a way to get at lat/long information within a cms script? That would be very useful for me.
I have tested the variables that you said are available.
$cms::alt, $cms::course and $cms::speed work great.
$cms::sat, $cms::satv, $cms::fix and $cms::hdop never change from 0.00. |
|
| Back to top |
|
 |
vincent
Joined: 11 Feb 2008 Posts: 196
|
Posted: Thu Apr 02, 2009 6:08 pm Post subject: |
|
|
kruch say us that it will be included soon. _________________ SE K750i + 512MB MS2 OR HTC Diamond + Qstarz BT-818 + Wintec 301 + latest TB |
|
| Back to top |
|
 |
wowi
Joined: 23 Mar 2007 Posts: 78 Location: Munich
|
Posted: Wed Apr 08, 2009 12:54 pm Post subject: |
|
|
Will cms::pace be available as a variable? I would like to experiment with a speed calculated from pace. pace reacts rather prompt and smoothly to speed changes, whereas spd has a rough resolution with large jumps and spd-avg reacts too slowly. Or am I wrong? is pace calculated from spd-avg?  |
|
| Back to top |
|
 |
gdpno69
Joined: 03 Sep 2007 Posts: 27
|
Posted: Sun Apr 12, 2009 2:47 pm Post subject: bug and new feature request |
|
|
Hi, I am testing on N958Gb, with MaleSmurf CMS.
1st bug: vertical speed and horizontal acceleration often overflow taking all the room reserved for them on the display, plus overwriting adjacent values.
This happens only with the internal receiver, never with the external bluetooth receiver.
2nd bug: difficult to reproduce. List of 4 waypoints created on the map, Route Along them. Even when I reach one, it does not step to the other, even if I set 400m as the default radius.
Feature; if you could port to HECL the variables related to wpts (when set), like distance and altitude, I could finally implement wpt glide ratio, like requested about oneyear ago
THX! |
|
| Back to top |
|
 |
Kotakadjaib
Joined: 10 Apr 2009 Posts: 1 Location: Indonesia
|
Posted: Mon Apr 13, 2009 1:17 am Post subject: Need TB 0.9.84-devel unsigned version |
|
|
Hallow, I use Nokia 6275i. Please help me? To get TB 0.9.84-devel usigned version.
TQ so much! _________________ -KotakadjaiB- |
|
| Back to top |
|
 |
|