What steps will reproduce the problem?
1. Build svn 953
2.
3.
What is the expected output? What do you see instead?
Expected: Done Compiling.
Got:
ArduPilotMega.cpp: In function ‘void Log_Write_Startup(byte)’:
Log:245: error: invalid conversion from ‘uint8_t’ to ‘Location*’
Log:220: error: too many arguments to function ‘void Log_Write_Cmd(byte,
Location*)’
Log:245: error: at this point in file
Log:249: error: invalid conversion from ‘uint8_t’ to ‘Location*’
Log:220: error: too many arguments to function ‘void Log_Write_Cmd(byte,
Location*)’
Log:249: error: at this point in file
What version of the product are you using? On what operating system?
svn 953, Debian Lenny
Please provide any additional information below.
Here is the patch.
Index: ArduPilotMega/Log.pde
===================================================================
--- ArduPilotMega/Log.pde (revision 953)
+++ ArduPilotMega/Log.pde (working copy)
@@ -241,11 +241,11 @@
// create a location struct to hold the temp Waypoints for printing
struct Location cmd = get_wp_with_index(0);
- Log_Write_Cmd(0, cmd.id, cmd.p1, cmd.alt, cmd.lat, cmd.lng);
+ Log_Write_Cmd(0, &cmd);
for (int i=1; i<wp_total; i++){
cmd = get_wp_with_index(i);
- Log_Write_Cmd(i, cmd.id, cmd.p1, cmd.alt, cmd.lat, cmd.lng);
+ Log_Write_Cmd(i, &cmd);
}
}
Original issue reported on code.google.com by brandon....@gmail.com on 28 Sep 2010 at 10:16
Original issue reported on code.google.com by
brandon....@gmail.com
on 28 Sep 2010 at 10:16