Commit ba245166 by Margit Haspel

### quick doku fix

parent 1dc412a5
 ... ... @@ -11,6 +11,14 @@ #define SPRING_RIGHT 1 #define SPRING_NOTHING 2 /* About the spring struct: * unsigned int threshold: remember the potty protection zones * uint8_t direction: SPRING_LEFT, SPRING_LEFT direction the spring is turning in this interval * double power: between 0 and 1.0; power < 0 makes it linear to the adc value * bool solved: the bool that is returned if the adc value is below the threshold (set it to true in the range the riddle should be solved) * the structs have have to be sorted ascending by threshold */ typedef struct Spring{ unsigned int threshold; uint8_t direction; ... ...
 ... ... @@ -3,10 +3,10 @@ #include "Util.h" #include "easy_riddle.h" //#include "easy_riddle.h" //#include "hill_riddle.h" //#include "lever_riddle.h" //#include "nine_riddle.h" #include "nine_riddle.h" //#include "spring_riddle.h" #define STACKSIZE (CYGNUM_HAL_STACK_SIZE_MINIMUM+1024) ... ...
 ... ... @@ -14,14 +14,6 @@ void riddle(void) { servo_set_percent(SERVO_0, 0.5); dc_set_percent(0, 0.0); /*About the spring struct: unsigned int threshold: remember the potty protection zones uint8_t direction: SPRING_LEFT, SPRING_LEFT direction the spring is turning in this interval double power: between 0 and 1.0; power < 0 makes it linear to the adc value bool solved: the bool that is returned if the adc value is below the threshold (set it to true in the range the riddle should be solved) -> the structs have have to be sorted ascending by threshold*/ bool springa_broken = false; bool springb_broken = false; bool unlocked_b = false; ... ...
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!