Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
SUFST-Arduino-Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SUFST
SUFST-Arduino-Firmware
Commits
435a3ede
Commit
435a3ede
authored
5 years ago
by
nrs1g15
Browse files
Options
Downloads
Patches
Plain Diff
Removed additional pins since shield does not support them
parent
bd3e71fc
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sufst-controller/wireless.cpp
+3
-1
3 additions, 1 deletion
sufst-controller/wireless.cpp
sufst-controller/wireless.h
+1
-1
1 addition, 1 deletion
sufst-controller/wireless.h
with
4 additions
and
2 deletions
sufst-controller/wireless.cpp
+
3
−
1
View file @
435a3ede
...
@@ -38,7 +38,8 @@ void wirelessWrite(void *data, uint8_t len)
...
@@ -38,7 +38,8 @@ void wirelessWrite(void *data, uint8_t len)
void
wirelessProcess
()
void
wirelessProcess
()
{
{
if
(
!
digitalRead
(
XBEE_RTS_PIN
))
{
if
(
cirBufferAvailable
(
&
wirelessTxCirBuffer
)
>=
WIRELESS_PAYLOAD_LEN
)
{
// if (!digitalRead(XBEE_RTS_PIN)) {
if
(
XBEE_SERIAL
.
availableForWrite
()
>=
WIRELESS_PAYLOAD_LEN
)
{
if
(
XBEE_SERIAL
.
availableForWrite
()
>=
WIRELESS_PAYLOAD_LEN
)
{
static
uint8_t
payload
[
WIRELESS_PAYLOAD_LEN
];
static
uint8_t
payload
[
WIRELESS_PAYLOAD_LEN
];
...
@@ -49,5 +50,6 @@ void wirelessProcess()
...
@@ -49,5 +50,6 @@ void wirelessProcess()
xbee
.
send
(
tx64Request
);
xbee
.
send
(
tx64Request
);
}
}
// }
}
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
sufst-controller/wireless.h
+
1
−
1
View file @
435a3ede
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
#define XBEE_RTS_PIN 7
#define XBEE_RTS_PIN 7
#define XBEE_SERIAL_BAUD_RATE 115200
#define XBEE_SERIAL_BAUD_RATE 115200
#define XBEE_SERIAL Serial
1
#define XBEE_SERIAL Serial
#define WIRELESS_TX_BUFFER_LEN 256
#define WIRELESS_TX_BUFFER_LEN 256
#define WIRELESS_PAYLOAD_LEN 32
#define WIRELESS_PAYLOAD_LEN 32
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment