Buy an Axon, Axon II, or Axon Mote and build a great robot, while helping to support SoR.
0 Members and 1 Guest are viewing this topic.
Are you getting compiling errors for the buffer?
But yes, you need to connect VRBot to the GUI using a USB to serial adapter like you said, and the Axon II can be programmed to work as one.
You must make sure your baud rates are all synced for this to work - double check them.
GOOD: After the loop-back test was successful, I removed the short and installed the VRBot (yes, correctly)...and I was ble to connect via the GUI. I played around with testing the existing groups. It worked. Hooray!BAD: I tried to train some new words and it would not work. Blah!WORSE: I disconnected and have not been able to connect again. Ugh!
hardward.h#define USB_UART UART1#define OTHER_UART UART3#define USB_BAUD (BAUD_RATE)9600#define OTHER_BAUD (BAUD_RATE)9600#define USB_ACTIVATE &uart1SendByte#define OTHER_ACTIVATE &uart3SendByte
adapter.c#define RPRINTF_FLOAT#include "sys/axon2.h"#include "led.h"#include "rprintf.h"#include "hardware.h"void appInitHardware(void){ uartInit(USB_UART, USB_BAUD); uartInit(OTHER_UART, OTHER_BAUD); rprintfInit(USB_ACTIVATE); led_put_char(1);}TICK_COUNT appInitSoftware(TICK_COUNT loopStart){ rprintf("\nAxon initiated.\n\n"); led_put_char(2); return 0;}TICK_COUNT appControl(LOOP_COUNT loopCount, TICK_COUNT loopStart){ int tempbyte; tempbyte=uart3GetByte(); if (tempbyte!=-1) uart1SendByte(tempbyte); tempbyte=uart1GetByte(); if (tempbyte!=-1) uart3SendByte(tempbyte); return 0;}
void appInitHardware(void){ uartInit(USB_UART, USB_BAUD); uartInit(OTHER_UART, OTHER_BAUD); rprintfInit(USB_ACTIVATE); led_put_char(1); delay_ms(2000); uartFlushReceiveBuffer(OTHER_UART);}
...and how the heck do these things plug into the VRBot anyhow?
what things?