Shop OBEX P1 Docs P2 Docs Learn Events
Javelin Classes on Yahoo — Parallax Forums

Javelin Classes on Yahoo

Peter VerkaikPeter Verkaik Posts: 3,956
edited 2010-07-17 02:54 in General Discussion
Jon,
You can make this thread sticky.
While Parallax still works on a (browsable) files area,
I created a new Yahoo Group called JavelinClasses.

http://groups.yahoo.com/group/JavelinClasses/

I recreated the Javelin Stamp IDE folder layout in
the files section. I will upload my classes there
shortly.

I invite people to put any classes that they want
to share in the files section in the correct folder.
This way there is a single place where to browse
for classes until Parallax has its own files section.

regards peter

·

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2004-12-03 19:18
    Please don't call this "Javelin Classes". People will think (as I did at first) that these are classes in how to use the Javelin.
    Please rename this to "Javelin Code". I think this will more clearly indicate to people what is here.
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-12-03 19:26
    ... or, perhaps, "Java Classes for the Javelin Stamp Microcontroller"

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2004-12-03 19:54
    JavelinCode is fine with me.
    To delete a group I must click a Delete Group button which
    I cannot locate on Yahoo (anybody?). Renaming is not possible.
    So to prevent any misleading names·I will create another group
    called JavelinCode. No code has been uploaded yet, so no big deal.

    http://groups.yahoo.com/group/JavelinCode/

    Sorry Allan, you will have to join the JavelinCode group now.
    I used part of your first message as group description text.

    regards peter
    ·
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2004-12-03 20:11
    Ok, JavelinClasses is deleted.

    JavelinCode is created (no code uploaded yet).

    http://groups.yahoo.com/group/JavelinCode/

    regards peter
  • m817m817 Posts: 11
    edited 2004-12-05 01:24
    I'm thinking that it would be a good idea to start a bug fix area for the "standard" classes distributed with the Javelin IDE.· I have noted 2 bugs reported in PCF8574, 1 in Strings and 1 in Float32.

    Maybe use the Yahoo group JavelinCode for fixes?· Better would be a version controlled structure to allow developers to upload fixes.
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2004-12-05 10:32
    Good idea.

    I uploaded the fixed String.java to its proper location.

    I have put in a bugfix header that tells when and who fixed what.

    http://groups.yahoo.com/group/JavelinCode/files/Javelin%20Stamp%20IDE/lib/java/lang/



    regards peter
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2004-12-13 15:45
    Hi,

    I have posted my FileSystem class to

    http://groups.yahoo.com/group/JavelinCode/files/Javelin%20Stamp%20IDE/lib/stamp/filesystem/

    The test program creates a filesystem in a table in system ram.

    You don't need special hardware to test or use it in system ram

    or system eeprom.

    Since the table is a list inside a heap defined in a memory object, it·is enough

    to create an I2C memory object to have a filesytem in eeprom.

    I also have a working Fat16 class that uses the same FileSystem class

    but I must prepare a schematic for it before posting because it requires

    an SX28 chip.



    regards peter
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2004-12-13 16:19
    Sorry,

    Posted the wrong FileSystem class. Have uploaded the correct one now.

    regards peter
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2004-12-24 13:06
    Hi,

    I have uploaded a simple basic interpreter for the javelin that

    shows the use of my memory, heap, list, format·and filesystem classes.

    http://groups.yahoo.com/group/JavelinCode/files/Javelin%20Stamp%20IDE/lib/stamp/interpreter/basic/

    Note that the filesystem classes are updated to support char[noparse]/noparse

    filenames as well as String filenames.

    The interpreter has a live interaction mode, which should be right

    for a live script, preferable using serial ports. This script·class has

    not been written yet, but the interpreter serves as a sample how it

    could be done.



    Merry·Xmas,

    peter
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-12-24 15:12
    How about a Python interpreter, Peter? wink.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2004-12-24 15:41
    Hi Jon,

    I have never programmed Python, but it looks like yet another

    C descandant, like many other languages (such as delphi or java)

    If it uses brackets for IF..THEN that would require quite a rewrite

    because this port only does·single line blocks.

    But I welcome anyone to give it a try.



    regards peter
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-12-24 18:56
    What I like about Python (just learning) is that its very formatting-specific, and mostly uses indenting to form program blocks ... no curly braces or BEGIN-ENDs.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2005-03-24 17:25
    Hi,
    I posted an IntegerMath class in the files section:
    http://groups.yahoo.com/group/JavelinCode/files/Javelin%20Stamp%20IDE/lib/stamp/\
    math/

    Here you will find sin(x), cos(x) and atan2(y,x) that uses only integer
    math, so the
    results are truncated and mapped to an integer range. The code size is
    considerable less
    than the floating point libraries.

    regards peter
    ·
  • RShirleyRShirley Posts: 12
    edited 2005-08-08 17:37
    Peter,
    I am using your Uart and Uart.Tools. When I try to use ODD parity my Protocol Analyzier shows errors on evert byte, and some bytes have "8" in the first character. I sent "10 bc 01 06 06 30 00 00 00 02 01 00 10 03" got with errors "10 bc 01 86 86 83 80 80 80 02 01 80 10 83". With parity to set to NONE all is well.

    Uart txP1 = new Uart(Uart.dirTransmit, UartTools.ODD, CPU.pin6,
    Uart.dontInvert, 0, Uart.dontInvert, Uart.speed9600, Uart.stop1);

    Thanks Russell
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2005-08-08 19:04
    Those characters you send, are those the hexbyte values, ie. you send 0x10 0xBC etc??

    You can't send 0xBC with parity because bit7 will be cleared first, so 0x3C is sent.

    Try my attached program.

    It sends 'A' to 'Z' using odd parity.

    On the PC I have·Hyperterminal set to 9600 baud, 1 start, 1 stop, 7 databits, odd parity, no handshake.

    All the characters 'A' to 'Z' receive correct.

    regards peter




    Post Edited (Peter Verkaik) : 8/8/2005 7:37:16 PM GMT
  • RShirleyRShirley Posts: 12
    edited 2005-08-08 19:43
    Yes, it is 0xBC. I am tring to talk to a Trimble GPS module and its default is 9600, 8, ODD, 1 in a hex/binary only format.
    Sounds like I might have to change its setup some how.

    Russell
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2005-08-08 19:49
    You can't have 8 databits and parity.
    Only 8 databits without parity, or 7 databits with parity.

    regards peter
    ·
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2005-11-17 08:58
    JideTerm program has been corrected.

    http://groups.yahoo.com/group/JavelinCode/files/JideTerm/

    regards peter
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2006-04-21 13:35
    subjava utility (operator overloading) and support files
    uploaded to JavelinCode group.
    http://groups.yahoo.com/group/JavelinCode/files/subjava

    Substitutions files for javelin packages will be stored there.
    Currently only a testfile for Float32 package.


    regards peter
    ·
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2007-06-21 08:45
    A new Format.java has been uploaded to
    http://tech.groups.yahoo.com/group/JavelinCode/files/Javelin%20Stamp%20IDE/lib/stamp/util/text/
    ·* Bug fix, June 21, 2007
    ·*·· a negative number with padded '0' returned incorrect index value for bprintf()
    ·*·· eg. k = Format.bprintf(buf,k,"%04d",value); returned incorrect k if value<0

    regards peter
  • romero_jlromero_jl Posts: 3
    edited 2007-06-30 20:50
    hello, first pardon by my ingles. I need aid to do arcsin of one number in javelin. your you can help me? I need to know like using that function to solve a problem.
    As use the arcsin and while values I must introduce?
    Thank you very much.
    A greeting

    PD: In order to verify I number, you can also help me with the sin? Thank you very much.
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2007-06-30 21:06
    You can use Trig.java or cordic.java located here:
    http://tech.groups.yahoo.com/group/JavelinCode/files/Javelin%20Stamp%20IDE/lib/stamp/math/

    regards peter
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2009-10-09 02:14
    Good idea.

    Start a thread "IDE v2.0.3 Javelin Classes Bugfixes"
    Send a PM to Chris Savage with a request to
    make that thread sticky.

    regards peter
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2009-10-09 02:44
    Peter, that was a spammer, not a legitimate post. They post a real looking topic to get the sig line advertising link in there.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage

    Parallax Engineering
    50 72 6F 6A 65 63 74 20 53 69 74 65
    ·
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2009-10-09 03:12
    Still a good idea though.
    I may create that thread myself.

    regards peter
  • atasahipieatasahipie Posts: 1
    edited 2010-07-17 02:54
    Hello Peter thank you for sharing this I really appreciate it.I'll try recreated the Javelin Stamp IDE folder layout in
    the files section. I will upload my classes there
    shortly too.Thank you once again God Bless!


    regards

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    make money online
Sign In or Register to comment.