Skip to content

Commit 05456ff

Browse files
committed
Merge branch 'master' into new_gps_broadcaster
2 parents e61c403 + f7930fa commit 05456ff

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
Header header
22

3-
float32 Lat_m
4-
float32 Long_m
3+
# easting is our x coordinate
4+
float32 easting
5+
# northing is our y coordinate
6+
float32 northing
57

68
float32 Lat_deg
79
float32 Long_deg

Software/real_time/ROS_RoboBuggy/src/robobuggy/src/transistor/gps/GPS_Broadcaster.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ int GPS_Broadcaster::read_gps_message()
5555
}
5656

5757
robobuggy::GPS* gps_message = parse_tokens(tokens);
58+
59+
5860
if (gps_message != NULL)
5961
{
6062
gps_pub.publish(*gps_message);
@@ -123,8 +125,8 @@ robobuggy::GPS* GPS_Broadcaster::parse_tokens(std::string tokens[])
123125

124126
gps_message.Lat_deg = static_cast<float>(latitude_deg);
125127
gps_message.Long_deg = static_cast<float>(longitude_deg);
126-
gps_message.Lat_m = static_cast<float>(utm_point.easting);
127-
gps_message.Long_m = static_cast<float>(utm_point.northing);
128+
gps_message.northing = static_cast<float>(utm_point.northing);
129+
gps_message.easting = static_cast<float>(utm_point.easting);
128130

129131
return &gps_message;
130132
}

Software/real_time/ROS_RoboBuggy/src/robobuggy/src/transistor/localizer/Localizer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ void Localizer::Encoder_Callback(const robobuggy::Encoder::ConstPtr &msg)
3535
void Localizer::GPS_Callback(const robobuggy::GPS::ConstPtr &msg)
3636
{
3737
geodesy::UTMPoint p;
38-
p.northing = msg->Lat_m;
39-
p.easting = msg->Long_m;
38+
p.northing = msg->northing;
39+
p.easting = msg->easting;
4040
p.band = 'T';
4141
p.zone = 17;
4242

0 commit comments

Comments
 (0)