Closed GoogleCodeExporter closed 8 years ago
This doesn't sound like an issue with the APM code so I'm going to close it --
hardware or setup problems should usually be addressed on the DIYDrones forums.
The issue list is for misbehavior attributed to the APM. If you find out that
the dashes are being caused by some flaw in the APM (you expect it to behave
one way based on the documentation and it behaves differently), please leave
another comment here and I'll reopen the issue.
That said, here is a quick response:
The APM has multiple serial ports; the GPS is on Serial1 and the mini USB
connection on the shield connects to the APM's Serial0. You could write an
extremely simple Arduino program to simply pass through the data from Serial0
to Serial1 and then connect to the mini USB serial port using the firmware
update program on your computer. You might use this as a non-tested starting
point:
#include <FastSerial.h>
FastSerialPort0(Serial);
FastSerialPort1(Serial1);
void setup(void)
{
Serial.begin(38400);
Serial1.begin(38400);
}
void
loop(void)
{
int c;
c = Serial.read();
if (-1 != c)
Serial1.write(c);
c = Serial1.read();
if (-1 != c)
Serial.write(c);
}
Original comment by bjpcalt...@gmail.com
on 29 Oct 2010 at 10:03
Original issue reported on code.google.com by
jtn...@gmail.com
on 29 Oct 2010 at 5:30