forked from ArduPilot/ardupilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tools: factor out common library for GSOF
* Add tests too Signed-off-by: Ryan Friedman <[email protected]>
- Loading branch information
Showing
5 changed files
with
43 additions
and
3 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 |
---|---|---|
|
@@ -31,6 +31,7 @@ | |
'AP_Compass', | ||
'AP_Declination', | ||
'AP_GPS', | ||
'AP_GSOF', | ||
'AP_HAL', | ||
'AP_HAL_Empty', | ||
'AP_InertialSensor', | ||
|
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 @@ | ||
# GSOF Tests | ||
|
||
A UDP packet of binary GSOF data is attached in the `gsof_data` file. | ||
|
||
|
||
## Questions | ||
|
||
* How to split up dependencies on GPS types in parser - do we care? | ||
|
||
* Fixing endianness messy code: | ||
* Define LE structins in AP_GSOF, do the function to convert the endianness for fields that need it. Takes a list of field to call the swaps. | ||
* To determien which field swapping, do an array of field pointers | ||
* Could declare it as a union of strucutres, one with native BE, other place that swaps the endianess. | ||
* Declare the union in the for loop on msg type | ||
* Pull out data_left from "a" in the for loop to check there's enough room. Should be exactly equal. | ||
* Tricky - variable-length packets. | ||
* Can do the union stuff soon. | ||
* Can we dump some small binary data in the tests folder of the parser, or should I write it in the code? | ||
* UDP - much less code to NET_ to use virtual serial ports, treat as UART. | ||
* On UDP, it's already packetized, but could use NET API for ethernet only | ||
* There will be people that want serial though, serial over CAN | ||
* ON UDP, we get configuration on UDP on two ports, multiple sockets. | ||
* Could recommend Trimble as networking only | ||
* Trimble PX1 support. |
Binary file not shown.
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