Skip to content

Commit

Permalink
Fixed message warning and made separte waypoints
Browse files Browse the repository at this point in the history
  • Loading branch information
EwoudSmeur committed Sep 14, 2016
1 parent 632d44e commit 3c12ff4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions conf/flight_plans/TUDELFT/logo600_landing.xml
Expand Up @@ -11,6 +11,7 @@
<waypoint name="JOE" x="0.0" y="-50.0"/>
<waypoint name="CIRCLE" x="0.0" y="-50.0"/>
<waypoint name="LANDING" x="10.0" y="10.0"/>
<waypoint name="LANDSPOT" x="15.0" y="15.0"/>
</waypoints>
<blocks>
<block name="Wait GPS">
Expand Down
4 changes: 2 additions & 2 deletions sw/airborne/modules/sensors/kalamos_uart.c
Expand Up @@ -112,7 +112,7 @@ static inline void kalamos_parse_msg(void)
//float diff_search = (kalamos_search_height - k2p_package.height)*kalamos_height_gain;

if (kalamos_enable_spotsearch) {
waypoint_set_xy_i(WP_LANDING, POS_BFP_OF_REAL(k2p_package.land_enu_x), POS_BFP_OF_REAL(k2p_package.land_enu_y));
waypoint_set_xy_i(WP_LANDSPOT, POS_BFP_OF_REAL(k2p_package.land_enu_x), POS_BFP_OF_REAL(k2p_package.land_enu_y));
}

if (kalamos_enable_landing) {
Expand Down Expand Up @@ -151,7 +151,7 @@ static inline void kalamos_parse_msg(void)
if (kalamos_enable_findjoe) {
waypoint_set_xy_i(WP_JOE,POS_BFP_OF_REAL(k2p_package.joe_enu_x), POS_BFP_OF_REAL(k2p_package.joe_enu_y));

int wp_id = WP_JOE;
uint8_t wp_id = WP_JOE;
DOWNLINK_SEND_WP_MOVED_ENU(DefaultChannel, DefaultDevice, &wp_id,&(waypoints[WP_JOE].enu_i.x),
&(waypoints[WP_JOE].enu_i.y), &(waypoints[WP_JOE].enu_i.z));
}
Expand Down

0 comments on commit 3c12ff4

Please sign in to comment.