Tobis Programm forked to not destroy your golden files
Fork of Robocode by
source/Safety.cpp@126:d0b2057272d0, 2017-05-14 (annotated)
- Committer:
- cittecla
- Date:
- Sun May 14 13:38:29 2017 +0000
- Revision:
- 126:d0b2057272d0
- Parent:
- 38:3526c36e4c73
- Child:
- 131:0d6c072b23ca
something
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
cittecla | 38:3526c36e4c73 | 1 | #pragma once |
cittecla | 38:3526c36e4c73 | 2 | |
cittecla | 38:3526c36e4c73 | 3 | #include "mbed.h" |
cittecla | 38:3526c36e4c73 | 4 | #include "Safety.h" |
cittecla | 38:3526c36e4c73 | 5 | |
cittecla | 38:3526c36e4c73 | 6 | void safety(){ |
cittecla | 38:3526c36e4c73 | 7 | |
cittecla | 38:3526c36e4c73 | 8 | } |
cittecla | 38:3526c36e4c73 | 9 | |
cittecla | 38:3526c36e4c73 | 10 | int emergency_shutdown(){ |
cittecla | 126:d0b2057272d0 | 11 | stop_move(); |
cittecla | 126:d0b2057272d0 | 12 | stop_turn(); |
cittecla | 126:d0b2057272d0 | 13 | disable_servos(); |
cittecla | 126:d0b2057272d0 | 14 | disable_motors(); |
cittecla | 38:3526c36e4c73 | 15 | return 0; |
cittecla | 38:3526c36e4c73 | 16 | } |
cittecla | 38:3526c36e4c73 | 17 | |
cittecla | 38:3526c36e4c73 | 18 | int colision_detected(){ |
cittecla | 38:3526c36e4c73 | 19 | |
cittecla | 38:3526c36e4c73 | 20 | return 0; |
cittecla | 38:3526c36e4c73 | 21 | } |
cittecla | 38:3526c36e4c73 | 22 | |
cittecla | 38:3526c36e4c73 | 23 | int current_to_high(){ |
cittecla | 38:3526c36e4c73 | 24 | |
cittecla | 38:3526c36e4c73 | 25 | return 0; |
cittecla | 38:3526c36e4c73 | 26 | } |
cittecla | 38:3526c36e4c73 | 27 | |
cittecla | 38:3526c36e4c73 | 28 | int overheating(){ |
cittecla | 38:3526c36e4c73 | 29 | |
cittecla | 38:3526c36e4c73 | 30 | return 0; |
cittecla | 38:3526c36e4c73 | 31 | } |
cittecla | 38:3526c36e4c73 | 32 |