Skip to content

Commit

Permalink
ActivityBot 360 tests for strange speed/goto transition behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyLindsay committed Dec 19, 2017
1 parent b3f5a30 commit c29e910
Show file tree
Hide file tree
Showing 6 changed files with 104 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*
Forward Stop Face Right.c
http://learn.parallax.com/activitybot/go-certain-distances
*/

#include "simpletools.h"
#include "abdrive360.h"

int main()
{
/*
for(int n = 0; n < 4; n++)
{
drive_speed(50, 50);
pause(200);
//drive_speed(0, 0);
//pause(200);
drive_goto(26, -25);
}
for(int n = 0; n < 4; n++)
{
drive_speed(50, 50);
pause(200);
drive_speed(0, 0);
pause(200);
drive_goto(26, -25);
}
for(int n = 0; n < 4; n++)
{
drive_goto(25, 25);
drive_speed(-20, 20);
pause(200);
drive_speed(0, 0);
pause(200);
}
*/

drive_speed(128, 128);
pause(1000);
drive_goto(25, -25);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Forward Stop Face Right (1).c
>compiler=C
>memtype=cmm main ram compact
>optimize=-Os
>-m32bit-doubles
>-fno-exceptions
>defs::-std=c99
>-lm
>BOARD::ACTIVITYBOARD
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
Forward Stop Face Right.c
http://learn.parallax.com/activitybot/go-certain-distances
*/

#include "simpletools.h"
#include "abdrive360.h"

int main()
{
/*
for(int n = 0; n < 4; n++)
{
drive_speed(50, 50);
pause(200);
//drive_speed(0, 0);
//pause(200);
drive_goto(26, -25);
}
for(int n = 0; n < 4; n++)
{
drive_speed(50, 50);
pause(200);
drive_speed(0, 0);
pause(200);
drive_goto(26, -25);
}
*/

for(int n = 0; n < 4; n++)
{
drive_goto(25, 25);
drive_speed(-20, 20);
pause(200);
drive_speed(0, 0);
pause(200);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Forward Stop Face Right.c
>compiler=C
>memtype=cmm main ram compact
>optimize=-Os
>-m32bit-doubles
>-fno-exceptions
>defs::-std=c99
>-lm
>BOARD::ACTIVITYBOARD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ fdserial_utils.c
pst.spin
fdserial.c
>compiler=C
>memtype=lmm main ram
>memtype=cmm main ram compact
>optimize=-Os
>-m32bit-doubles
>-Wall
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.4.36
v1.4.37

0 comments on commit c29e910

Please sign in to comment.