Skip to content
Snippets Groups Projects
Commit 080da7e2 authored by Didier DONSEZ's avatar Didier DONSEZ
Browse files

add alt and extend noradid

parent 56f44dc1
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
*/ */
/* /*
* Types for the format of the extended beacons sent by the Thingsat payload * Types for the format of the extended beacons send by the Thingsat payload
*/ */
...@@ -49,7 +49,8 @@ struct __attribute__((__packed__)) XBeaconSF12MessagePayload ...@@ -49,7 +49,8 @@ struct __attribute__((__packed__)) XBeaconSF12MessagePayload
uint8_t infodesc; // = 0 For a single omnidirectional antenna gateway, the value of InfoDesc is 0 when broadcasting GPS coordinates uint8_t infodesc; // = 0 For a single omnidirectional antenna gateway, the value of InfoDesc is 0 when broadcasting GPS coordinates
uint32_t lat : 24; // The north–south latitude SHALL be encoded using a two’s complement 24-bit word, where −223 corresponds to 90° south (the South Pole) and 223 corresponds to 90° north (the North Pole). Note: It is not possible to describe 90° north because 2^23-1 is the largest number that can be represented in two’s complement notation. This approximately 1.2 m position error at the North Pole is considered small. uint32_t lat : 24; // The north–south latitude SHALL be encoded using a two’s complement 24-bit word, where −223 corresponds to 90° south (the South Pole) and 223 corresponds to 90° north (the North Pole). Note: It is not possible to describe 90° north because 2^23-1 is the largest number that can be represented in two’s complement notation. This approximately 1.2 m position error at the North Pole is considered small.
uint32_t lng : 24; // The east–west longitude SHALL be encoded using a two’s complement 24-bit word, where −223 corresponds to 180° west and 223 corresponds to 180° east. uint32_t lng : 24; // The east–west longitude SHALL be encoded using a two’s complement 24-bit word, where −223 corresponds to 180° west and 223 corresponds to 180° east.
uint16_t noradnumber; // NORAD Catalog Number of the satellite https://celestrak.com/satcat (51087 for STORK-1) uint32_t alt : 24; // The altitude in meter
uint32_t noradnumber : 24; // NORAD Catalog Number of the satellite https://celestrak.com/satcat (51087 for STORK-1)
uint8_t signature[EDSIGN_SIGNATURE_SIZE]; uint8_t signature[EDSIGN_SIGNATURE_SIZE];
}; };
...@@ -77,7 +78,8 @@ struct __attribute__((__packed__)) XBeaconSF11MessagePayload ...@@ -77,7 +78,8 @@ struct __attribute__((__packed__)) XBeaconSF11MessagePayload
uint8_t infodesc; // = 0 For a single omnidirectional antenna gateway, the value of InfoDesc is 0 when broadcasting GPS coordinates uint8_t infodesc; // = 0 For a single omnidirectional antenna gateway, the value of InfoDesc is 0 when broadcasting GPS coordinates
uint32_t lat : 24; // The north–south latitude SHALL be encoded using a two’s complement 24-bit word, where −223 corresponds to 90° south (the South Pole) and 223 corresponds to 90° north (the North Pole). Note: It is not possible to describe 90° north because 2^23-1 is the largest number that can be represented in two’s complement notation. This approximately 1.2 m position error at the North Pole is considered small. uint32_t lat : 24; // The north–south latitude SHALL be encoded using a two’s complement 24-bit word, where −223 corresponds to 90° south (the South Pole) and 223 corresponds to 90° north (the North Pole). Note: It is not possible to describe 90° north because 2^23-1 is the largest number that can be represented in two’s complement notation. This approximately 1.2 m position error at the North Pole is considered small.
uint32_t lng : 24; // The east–west longitude SHALL be encoded using a two’s complement 24-bit word, where −223 corresponds to 180° west and 223 corresponds to 180° east. uint32_t lng : 24; // The east–west longitude SHALL be encoded using a two’s complement 24-bit word, where −223 corresponds to 180° west and 223 corresponds to 180° east.
uint16_t noradnumber; // NORAD Catalog Number of the satellite https://celestrak.com/satcat (51087 for STORK-1) uint32_t alt : 24; // The altitude in meter
uint32_t noradnumber : 24; // NORAD Catalog Number of the satellite https://celestrak.com/satcat (51087 for STORK-1)
uint8_t signature[EDSIGN_SIGNATURE_SIZE]; uint8_t signature[EDSIGN_SIGNATURE_SIZE];
}; };
...@@ -105,7 +107,8 @@ struct __attribute__((__packed__)) XBeaconSF10MessagePayload ...@@ -105,7 +107,8 @@ struct __attribute__((__packed__)) XBeaconSF10MessagePayload
uint8_t infodesc; // = 0 For a single omnidirectional antenna gateway, the value of InfoDesc is 0 when broadcasting GPS coordinates uint8_t infodesc; // = 0 For a single omnidirectional antenna gateway, the value of InfoDesc is 0 when broadcasting GPS coordinates
uint32_t lat : 24; // The north–south latitude SHALL be encoded using a two’s complement 24-bit word, where −223 corresponds to 90° south (the South Pole) and 223 corresponds to 90° north (the North Pole). Note: It is not possible to describe 90° north because 2^23-1 is the largest number that can be represented in two’s complement notation. This approximately 1.2 m position error at the North Pole is considered small. uint32_t lat : 24; // The north–south latitude SHALL be encoded using a two’s complement 24-bit word, where −223 corresponds to 90° south (the South Pole) and 223 corresponds to 90° north (the North Pole). Note: It is not possible to describe 90° north because 2^23-1 is the largest number that can be represented in two’s complement notation. This approximately 1.2 m position error at the North Pole is considered small.
uint32_t lng : 24; // The east–west longitude SHALL be encoded using a two’s complement 24-bit word, where −223 corresponds to 180° west and 223 corresponds to 180° east. uint32_t lng : 24; // The east–west longitude SHALL be encoded using a two’s complement 24-bit word, where −223 corresponds to 180° west and 223 corresponds to 180° east.
uint16_t noradnumber; // NORAD Catalog Number of the satellite https://celestrak.com/satcat (51087 for STORK-1) uint32_t alt : 24; // The altitude in meter
uint32_t noradnumber : 24; // NORAD Catalog Number of the satellite https://celestrak.com/satcat (51087 for STORK-1)
uint8_t signature[EDSIGN_SIGNATURE_SIZE]; uint8_t signature[EDSIGN_SIGNATURE_SIZE];
}; };
...@@ -134,7 +137,8 @@ struct __attribute__((__packed__)) XBeaconSF9MessagePayload ...@@ -134,7 +137,8 @@ struct __attribute__((__packed__)) XBeaconSF9MessagePayload
uint8_t infodesc; // = 0 For a single omnidirectional antenna gateway, the value of InfoDesc is 0 when broadcasting GPS coordinates uint8_t infodesc; // = 0 For a single omnidirectional antenna gateway, the value of InfoDesc is 0 when broadcasting GPS coordinates
uint32_t lat : 24; // The north–south latitude SHALL be encoded using a two’s complement 24-bit word, where −223 corresponds to 90° south (the South Pole) and 223 corresponds to 90° north (the North Pole). Note: It is not possible to describe 90° north because 2^23-1 is the largest number that can be represented in two’s complement notation. This approximately 1.2 m position error at the North Pole is considered small. uint32_t lat : 24; // The north–south latitude SHALL be encoded using a two’s complement 24-bit word, where −223 corresponds to 90° south (the South Pole) and 223 corresponds to 90° north (the North Pole). Note: It is not possible to describe 90° north because 2^23-1 is the largest number that can be represented in two’s complement notation. This approximately 1.2 m position error at the North Pole is considered small.
uint32_t lng : 24; // The east–west longitude SHALL be encoded using a two’s complement 24-bit word, where −223 corresponds to 180° west and 223 corresponds to 180° east. uint32_t lng : 24; // The east–west longitude SHALL be encoded using a two’s complement 24-bit word, where −223 corresponds to 180° west and 223 corresponds to 180° east.
uint16_t noradnumber; // NORAD Catalog Number of the satellite https://celestrak.com/satcat (51087 for STORK-1) uint32_t alt : 24; // The altitude in meter
uint32_t noradnumber : 24; // NORAD Catalog Number of the satellite https://celestrak.com/satcat (51087 for STORK-1)
uint8_t signature[EDSIGN_SIGNATURE_SIZE]; uint8_t signature[EDSIGN_SIGNATURE_SIZE];
}; };
...@@ -162,7 +166,8 @@ struct __attribute__((__packed__)) XBeaconSF8MessagePayload ...@@ -162,7 +166,8 @@ struct __attribute__((__packed__)) XBeaconSF8MessagePayload
uint8_t infodesc; // = 0 For a single omnidirectional antenna gateway, the value of InfoDesc is 0 when broadcasting GPS coordinates uint8_t infodesc; // = 0 For a single omnidirectional antenna gateway, the value of InfoDesc is 0 when broadcasting GPS coordinates
uint32_t lat : 24; // The north–south latitude SHALL be encoded using a two’s complement 24-bit word, where −223 corresponds to 90° south (the South Pole) and 223 corresponds to 90° north (the North Pole). Note: It is not possible to describe 90° north because 2^23-1 is the largest number that can be represented in two’s complement notation. This approximately 1.2 m position error at the North Pole is considered small. uint32_t lat : 24; // The north–south latitude SHALL be encoded using a two’s complement 24-bit word, where −223 corresponds to 90° south (the South Pole) and 223 corresponds to 90° north (the North Pole). Note: It is not possible to describe 90° north because 2^23-1 is the largest number that can be represented in two’s complement notation. This approximately 1.2 m position error at the North Pole is considered small.
uint32_t lng : 24; // The east–west longitude SHALL be encoded using a two’s complement 24-bit word, where −223 corresponds to 180° west and 223 corresponds to 180° east. uint32_t lng : 24; // The east–west longitude SHALL be encoded using a two’s complement 24-bit word, where −223 corresponds to 180° west and 223 corresponds to 180° east.
uint16_t noradnumber; // NORAD Catalog Number of the satellite https://celestrak.com/satcat (51087 for STORK-1) uint32_t alt : 24; // The altitude in meter
uint32_t noradnumber : 24; // NORAD Catalog Number of the satellite https://celestrak.com/satcat (51087 for STORK-1)
uint8_t signature[EDSIGN_SIGNATURE_SIZE]; uint8_t signature[EDSIGN_SIGNATURE_SIZE];
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment