This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define F_CPU 1200000UL | |
#include <avr/io.h> | |
#include <avr/interrupt.h> | |
#include <util/delay.h> | |
#include <avr/sleep.h> | |
#define IR_ON() (TCCR0A = 0b01000010) | |
#define IR_OFF() (TCCR0A = 0b00000010) | |
ISR(INT0_vect){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Edamame_S.h> | |
#include <Edamame_S_EX.h> | |
#define LOOP_TIME 200 //1ループの時間 [ms] | |
#define DROP_TIME 20 //落下時間 [s] | |
//ゴール | |
#define GOAL_LATITUDE 30374521 | |
#define GOAL_LONGITUDE 130959935 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <random> | |
#define TRIALS 100000 //試行回数 | |
#define MAX_STATION 29 //駅の数 |