Shop OBEX P1 Docs P2 Docs Learn Events
Arrays and scribbler s2 robot — Parallax Forums

Arrays and scribbler s2 robot

hapaluahapalua Posts: 149
edited 2013-12-30 16:13 in General Discussion
Is it possible to program the scribbler using arrays to store information?

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2013-12-29 14:11
    Yes, absolutely. You can program the S2 in Spin, which supports byte-, word-, and long-variable arrays.

    -Phil
  • hapaluahapalua Posts: 149
    edited 2013-12-29 14:19
    Okay and when would be a good idea to use an array
  • hapaluahapalua Posts: 149
    edited 2013-12-29 15:45
    I would really like to know the capabilities of this robot.
  • Duane DegnDuane Degn Posts: 10,588
    edited 2013-12-29 16:19
    Why two threads?

    Arrays are a very basic computer science topic. You've got 32KBytes of RAM to share between the program and data. You can store some of your data in arrays. An array on the S2 works the same as an array on the Propeller.
  • hapaluahapalua Posts: 149
    edited 2013-12-29 16:21
    I'm really interested in this subject
  • hapaluahapalua Posts: 149
    edited 2013-12-29 16:28
    Yes I know but when? Could u give me an example of when an array would be used? Perhaps when solving a maze?
  • NWCCTVNWCCTV Posts: 3,629
    edited 2013-12-29 19:04
    And which subject would "this" be?
  • kwinnkwinn Posts: 8,697
    edited 2013-12-29 19:53
    NWCCTV wrote: »
    And which subject would "this" be?

    +1. If the subject refers to your previous 2 posts you should post additional questions and comments in the first thread rather than start a new thread each time.
  • kwinnkwinn Posts: 8,697
    edited 2013-12-29 20:00
    If you wanted the robot to make turns of a specific radius at various speeds you could use an array of left/right wheel speeds for each speed.
  • jazzedjazzed Posts: 11,803
    edited 2013-12-29 20:09
    Other than being a little confusing, I've found nothing wrong with your posts. Benefit of the doubt rulez.
  • davejamesdavejames Posts: 4,047
    edited 2013-12-29 20:48
    ...the 3 threads have been merged.
  • hapaluahapalua Posts: 149
    edited 2013-12-30 11:04
    Is it possible to use arrays with the GUI programming interface provided by the scribbler s2?
  • Duane DegnDuane Degn Posts: 10,588
    edited 2013-12-30 12:22
    hapalua wrote: »
    Is it possible to use arrays with the GUI programming interface provided by the scribbler s2?

    I haven't used the GUI a lot but I'm pretty sure you're limited to a few variables.

    IMO, complicated maneuvers (such as storing a maze layout) are harder to program in the GUI than in Spin. What's really nice about the S2 GUI is it will generate Spin code based on what was graphically programmed. I use this feature to take advantage of all the fun sounds available in the GUI. I cut and paste code generated by the GUI into my larger Spin programs.
  • hapaluahapalua Posts: 149
    edited 2013-12-30 13:49
    Oh that sucks! The ev3 lego has an array block but the scribbler doesn't ? Boo. That meAns I have to program it in
  • hapaluahapalua Posts: 149
    edited 2013-12-30 16:13
    What does the perform a computation tile do in the scribbler s2 software GUI
Sign In or Register to comment.