combining monobrick with robotc on nxt

HomeForumsMonoBrick Communication Librarycombining monobrick with robotc on nxt

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4513
    Author Image
    Tom DE WEYER
    Participant

    Hey all,

    Im having troubles with a simple task. I need to send some integers from the pc (monobrick) to the nxt with robotc.
    But i cannot get the data correct. Controlling the motors works and sending data is received on the robot.

    The code on mono is this
    brick.Mailbox.Send( “10 10 1”,Box.Box0, true);

    and in robotc i do the following:

    nSizeOfMessage = cCmdMessageGetSize(kQueueID);
    nBTCmdRdErrorStatus = cCmdMessageRead(nRcvBuffer, nSizeOfMessage);
    nxtDisplayTextLine(0, “bericht:%s”, nRcvBuffer);

    Did anyone tried to do the same?

    thanks
    Tom

    #4837
    Author Image
    Anders Søborg
    Keymaster

    Hi Tom

    No sorry I have not tried that. But it must be possible to see the raw data on both sides and compare the two…

    /Anders

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Posted in

Make a donation