Skip to content

Commit

Permalink
Fixed config course (#1725)
Browse files Browse the repository at this point in the history
* Fixed config course

* removed target

* added dependency on stdio for printf

* Removed failing NPS target heli genius DD
  • Loading branch information
rmeertens authored and flixr committed Jun 15, 2016
1 parent 63c6884 commit 2764bc3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
6 changes: 1 addition & 5 deletions conf/airframes/TUDELFT/tudelft_course2016_bebop_avoider.xml
Expand Up @@ -6,11 +6,6 @@
<firmware name="rotorcraft">
<target name="ap" board="bebop"/> <!-- The type of Autopilot board hardware one uses -->

<target name="nps" board="pc">
<module name="fdm" type="jsbsim"/>
<module name="udp"/>
</target>

<!--define name="USE_SONAR" value="TRUE"/-->

<!-- Subsystem section -->
Expand Down Expand Up @@ -51,6 +46,7 @@
</module>
-->
<module name="cv_colorfilter">
<define name="COLORFILTER_CAMERA" value="front_camera"/>
</module>
<module name="orange_avoider"/>
</modules>
Expand Down
4 changes: 0 additions & 4 deletions conf/airframes/TUDELFT/tudelft_heliGeniusDD.xml
Expand Up @@ -15,10 +15,6 @@
<configure name="AHRS_PROPAGATE_FREQUENCY" value="500"/>
</target>
<define name="AHRS_GRAVITY_HEURISTIC_FACTOR" value="0"/>
<target name="nps" board="pc">
<subsystem name="fdm" type="jsbsim"/>
<subsystem name="radio_control" type="ppm"/>
</target>

<subsystem name="actuators" type="pwm">
<define name="TIM5_SERVO_HZ" value="2000"/>
Expand Down
3 changes: 2 additions & 1 deletion sw/airborne/modules/orange_avoider/orange_avoider.c
Expand Up @@ -15,6 +15,7 @@
#include "firmwares/rotorcraft/navigation.h"
#include "state.h"
#include <time.h>
#include <stdio.h>
#include <stdlib.h>

uint8_t safeToGoForwards = false;
Expand All @@ -39,7 +40,7 @@ void orange_avoider_periodic()
// Check the amount of orange. If this is above a threshold
// you want to turn a certain amount of degrees
safeToGoForwards = color_count < tresholdColorCount;
printf("Checking if this funciton is called %d treshold: %d now: %d \n", color_count, tresholdColorCount,
printf("Checking if this function is called %d threshold: %d now: %d \n", color_count, tresholdColorCount,
safeToGoForwards);
}

Expand Down

0 comments on commit 2764bc3

Please sign in to comment.