CNCBASHER / ardupilot-mega

Automatically exported from code.google.com/p/ardupilot-mega
0 stars 0 forks source link

Airspeed test not giving proper airspeed 3 #178

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. use the CLI with Airspeed sensor
2. go in test->airspeed
3. the values displayed are rather weird 

What is the expected output? What do you see instead?
proper airspeed readings

What version of the product are you using? On what operating system?
r1210

Please provide any additional information below.
in test.pde 
modify at line 284 in test_airspeed

 Serial.printf_P(PSTR("%dm/s\n"),airspeed/100);
by 
 Serial.printf_P(PSTR("%dm/s\n"),(int)airspeed/100

Original issue reported on code.google.com by mbada...@gmail.com on 6 Oct 2010 at 7:20

GoogleCodeExporter commented 9 years ago
I am travelling till 10/12.  I will investigate after that time.

I saw this as well.  I believe there are two problems - the cast (which should 
probably be to unsigned also) and the issue that if you have not had a good 
ground start the offset value will be invalid and you will get improper 
readings.

Original comment by dewei...@gmail.com on 7 Oct 2010 at 1:41

GoogleCodeExporter commented 9 years ago
Wasn't this fixed in trunk r1198?  See also issues 170 and 166.

Original comment by bjpcalt...@gmail.com on 7 Oct 2010 at 5:29

GoogleCodeExporter commented 9 years ago
ok, sorry I have tested with latest (r1212) and it works fine. no casting 
needed.
It can be closed

Original comment by mbada...@gmail.com on 7 Oct 2010 at 7:28

GoogleCodeExporter commented 9 years ago

Original comment by jasonshort on 8 Oct 2010 at 10:13