-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into dev-tdoa2
- Loading branch information
Showing
5 changed files
with
130 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
Contributing | ||
============ | ||
|
||
👍🎉 Thanks a lot for considering contributing 🎉👍 | ||
|
||
We welcome and encourage contribution. There is many way to contribute: you can | ||
write bug report, contribute code or documentation. | ||
You can also go to the [bitcraze forum](https://forum.bitcraze.io) and help others. | ||
|
||
## Reporting issues | ||
|
||
When reporting issues the more information you can supply the better. | ||
|
||
- **Information about the environment:** | ||
- What version of the firmware are you running | ||
- **How to reproduce the issue:** Step-by-step guide on how the issue can be reproduced (or at least how you reproduce it). | ||
Include everything you think might be useful, the more information the better. | ||
|
||
## Improvements request and proposal | ||
|
||
We and the community are continuously working to improve the firmware. | ||
Feel free to make an issue to request a new functionality. | ||
|
||
## Contributing code/Pull-Request | ||
|
||
We welcome code contribution, this can be done by starting a pull-request. | ||
|
||
If the change is big, typically if the change span to more than one file, consider starting an issue first to discuss the improvement. | ||
This will makes it much easier to make the change fit well into the firmware. | ||
|
||
There is some basic requirement for us to merge a pull request: | ||
- Describe the change | ||
- Refer to any issues it effects | ||
- Separate one pull request per functionality: if you start writing "and" in the feature description consider if it could be separated in two pull requests. | ||
- The pull request must pass the automated test (see test section bellow) | ||
|
||
In your code: | ||
- 2 spaces indentation | ||
- Make sure the coding style of your code follows the style of the file. | ||
|
||
### Run test | ||
|
||
In order to run the tests you can run: | ||
``` | ||
./tools/build/build | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import serial | ||
import sys | ||
import serial.tools.list_ports | ||
import time | ||
|
||
ports = serial.tools.list_ports.comports() | ||
nodes = list(filter(lambda p: p.description == "Loco Positioning Node", ports)) | ||
|
||
if len(nodes) > 0: | ||
print("Resetting node to DFU ...") | ||
try: | ||
ser = serial.Serial(nodes[0].device) | ||
ser.write(b'u') | ||
ser.close() | ||
time.sleep(2) | ||
except serial.SerialException: | ||
print("Error: Cannot open node serial port!") | ||
sys.exit(1) | ||
sys.exit(0) | ||
else: | ||
print("Cannot find node, already in DFU mode?") | ||
sys.exit(0) |
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