2019b/Member

課題

チームの人の似顔絵を描く

作ったロボット

Screenshot_20200214-130054.png

(写真ではテープで仮の補強をしたが、実際は輪ゴムに代えた。) シンプルに作るようこころがけたが、バランスが悪くなったのが残念だった。

プログラム

sub turn_90() /左折
{
OnFwd(OUT_B,40);
Wait(1600);
Off(OUT_B);
OnFwd(OUT_BC,-40);
Wait(500);
Off(OUT_BC);
}
sub turn_270() /右折
{
OnFwd(OUT_C,40);
Wait(1600);
Off(OUT_B);
OnFwd(OUT_BC,-40);
Wait(500);
Off(OUT_BC);
}
sub age() /アームを上げる
{
OnRev(OUT_A,-30);

Off(OUT_A);

}
sub sage() /アームを下げる
{
OnRev(OUT_A,30);

Off(OUT_A);
}
task main()
{

rinkaku();

age();

OnFwd(OUT_BC,-40);
Wait(350);
Off(OUT_BC);

turn_90();

sage();

OnFwd(OUT_BC,40);
Wait(100);

age();

OnFwd(OUT_BC,40);
Wait(900);
Off(OUT_BC);

sage();

OnFwd(OUT_BC,40);
Wait(420);
Off(OUT_BC);

age();

OnFwd(OUT_BC,40);
Wait(900);
Off(OUT_BC);

sage();

OnFwd(OUT_BC,40);
Wait(100);
Off(OUT_BC);

age();

turn_90();

OnFwd(OUT_BC,40);
Wait(150);
Off(OUT_BC);

turn_90();

OnFwd(OUT_BC,40);
Wait(100);
Off(OUT_BC);

sage();

OnFwd(OUT_BC,40);
Wait(900);
Off(OUT_BC);

age();

OnFwd(OUT_BC,40);
Wait(420);
Off(OUT_BC);

sage();

OnFwd(OUT_BC,40);
Wait(900);
Off(OUT_BC);



turn_90();

OnFwd(OUT_BC,40);
Wait(300);
Off(OUT_BC);

turn_90();

OnFwd(OUT_BC,40);
Wait(900);
Off(OUT_BC);

turn_90();

OnFwd(OUT_BC,40);
Wait(300);
Off(OUT_BC);

age();

turn_270();

OnFwd(OUT_BC,40);
Wait(420);
Off(OUT_BC);


turn_270();


sage();

OnFwd(OUT_BC,40);
Wait(300);
Off(OUT_BC);

turn_90();

OnFwd(OUT_BC,40);
Wait(900);
Off(OUT_BC);

turn_90();

OnFwd(OUT_BC,40);
Wait(300);
Off(OUT_BC);

age(); 
}

添付ファイル: fileScreenshot_20200214-130054.png 148件 [詳細] fileScreenshot_20200214-130103.png 106件 [詳細] fileScreenshot_20200214-130222.png 104件 [詳細]

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2020-02-14 (金) 20:28:00