# Did anyone get HW3-4 corrected yet

 4 The grading robot corrected 3-5 overnight. Progress still shows 3-4 as incorrect and 3-6 as correct with the same move code. I suppose it's possible the test case is tighter around 3-4 to it's application in 3-6, but it seems odd to get 3-4 wrong and 3-6 right. Maybe it's possible the robot hasn't gotten to 3-4 yet. I thought it was worth taking a survey among classmates though, so maybe I don't bug the staff with this question as regrading is still in progress. Any way I guess at this point it's kind of irrelevant due to the final taking precedence, but it would be nice to see it marked correct. :) asked 11 Apr '12, 07:52 peteMcC 1.4k●8●20●40 accept rate: 88%

 0 My hw3-4 still says incorrect even though it passes tests and as far as I can tell is implemented correctly: def move(self, motion): # Do not change the name of this function # ADD CODE HERE #steering angle alpha = float(motion[0]) #distance d = float(motion[1]) #turning angle B = (d/self.length)*tan(alpha) if (abs(B) >= 0.001): #if turning angle is significant enough #calculate circular motion #turning radius R = d/B #center x,y coordinates cx = self.x - (sin(self.orientation)*R) cy = self.y + (cos(self.orientation)*R) x = cx + (sin(self.orientation + B)*R) y = cy - (cos(self.orientation + B)*R) orientation = (self.orientation + B) % (2*pi) else: #approximate for straight motion x = self.x + (d*cos(self.orientation)) y = self.y + (d*sin(self.orientation)) orientation = (self.orientation + B) % (2*pi) #cyclic truncate x %= world_size y %= world_size #create resultant robot result = robot(self.length) result.set(x, y, orientation) return result # make sure your move function returns an instance # of the robot class with the correct coordinates. answered 13 Apr '12, 10:07 Jeff Molsen 178●1●7 1 In code: world_size = 100.0 # world is NOT cyclic. Robot is allowed to travel "out of bounds" Your code: #cyclic truncate x %= world_size y %= world_size (13 Apr '12, 10:37) Gundega ♦♦ Thanks for the explanation. I guess I missed that comment - I was too focused on the test cases and the main comment at the top of the code as far as correctness and directions. Maybe for future iterations of this class, add a test case that allows the robot to travel out of bounds. Thanks again! (13 Apr '12, 11:05) Jeff Molsen @jmolsen I will try to make the test cases to be consistent with the grading code in the next iteration. Sorry for the confusion, but we are learning as well! :-) (13 Apr '12, 11:17) Gundega ♦♦ @GundegaUdacity No worries. I appreciate the opportunity to participate in this first iteration. That you are offering a great course like this for free is awesome. The important thing to me is that I learned a lot. :) (13 Apr '12, 11:22) Jeff Molsen I made the same error assuming the cyclic world in my calculation. Thanks for explaining it. (13 Apr '12, 18:43) peteMcC
 3 HWs 3-4 and 3-5 are now marked correct. HWs 5-2 and 5-4 are still marked incorrect here though. answered 11 Apr '12, 08:22 Gabriel Guim... 57●3
 2 I have 3-5 marked as correct which is good! but unfortunately I still have 3-4 as incorrect even though it passes both of the test cases provided. I tried running my code in the page as says "there's something wrong in the website" although I can run that code locally in my machine. All I did was adding my code into the move function so it's highly unlikely this is due to a different version of Python between my computer and the website. Also, I still have 2.5 marked as wrong. I had resubmitted the values for the matrix after the deadline once the value shifting problem was announced and then I was marked "you got it right!" but now when I went to see it the values were shifted to the right again. Is there anyone with the same issues? Thanks answered 11 Apr '12, 08:53 Guillermo Lu... 460●1●4●12 Sounds like most got 3-4 regraded as correct, but for some reason ours is still graded incorrect, even though we use the same function in 3-6. (11 Apr '12, 08:59) peteMcC I have the same issue with 2.5. I also resubmitted it after the announcement, and it is shifted to the right again. (13 Apr '12, 18:01) John-Paul
 0 My hw3-4 was marked as correct now. But HW5-4 was still incorrect. Has anyone got HW5-4 regraded? answered 11 Apr '12, 08:01 Tran Duc Hieu-1 2.6k●13●27●44 My hw3-4 was also corrected. It was the only issue I had pending with the grading robot :-) (11 Apr '12, 09:18) Jose
 0 I get correct the HW3-4. Did anyone get correct the 2-5? (Transition Matrix) and I get correct the 2-6 where I use that matrix =/ answered 11 Apr '12, 08:12 Victor Cajes 189●1●3●15 I also got HW3-4 corrected but the transition matrix in HW2-5 still appears as incorrect. (11 Apr '12, 09:10) Jose M. Dana
 0 I also got the HW3-4 correct, My 2-5 was correct, at the first time, because i noticed that bug and resubmitted it before the deadline. I think there was an issue with HW5 too, my HW5-2 is marked as incorrect, if i run it it gives correct, if i submit it says "Incorrect. There was an error running your code. It may have timed out." I don't rely know if my code is incorrect, or the grading bot has an issue correcting it. answered 11 Apr '12, 08:23 LevTaylor 79●9 just the same as you (11 Apr '12, 10:11) Anna-Chiara ...
 0 I still have 3-4 and 5-2 marked as incorrect but looks correct when I run it. answered 11 Apr '12, 09:43 Daniel H. Ho... 118●1●3●8
 0 Similar situation here: HW3-4 and HW3-5 are now marked as correct but HW5-2 is still incorrect although it passes the test cases. answered 11 Apr '12, 10:21 Jonesy-1 127●1●7 Ditto (3-4 and 3-5 marked correct, 5-2 marked incorrect but passes both tests) (11 Apr '12, 10:50) MCN
 0 My hw3-5 has been rectified but now my hw1-4 is marked incorrectly and it is giving me "There was a problem with your submission" when I try to resubmit it. answered 13 Apr '12, 18:47 Jason Kuen W... 124●1●6
Question text:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "Title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported

### Tags:

×5,187
×515
×187
×80
×13

Asked: 11 Apr '12, 07:52

Seen: 578 times

Last updated: 13 Apr '12, 18:47