Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Captain no longer relies on the transparent mode of the XBee along with a rickety custom sentence-based data pattern. Thanks to the Bee library, Captain uses the escaped API mode of the DigiMesh XBee platform. Because of this, the handleRx methods have been very simple. All they do is receive the callback data frame from Bee and directly put it to use. Bee also verifies the checksum of incoming data, preventing Captain from being led astray by malformed frames. Sending data has also been drastically improved. Another major improvement is the lack of Arduino String objects, especially in time-critical code. Better yet, absolutely no string concatenation which can be incredibly expensive. This is thanks to using the XBee’s API mode. Since the 2014 release does not include a GPS I’ve removed the code that would normally be used to send that data. It’s unfortunate but a good GPS is not cheap. The actual pin-outs remain entirely intact from last year.
- Loading branch information
Showing
7 changed files
with
103 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,5 @@ | |
|
||
#include "TinyGPS.h" | ||
#include "SoftwareSerial.h" | ||
#include "Servo.h" | ||
#include "Servo.h" | ||
#include "Bee.h" |
Oops, something went wrong.