mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
APO formatting.
This commit is contained in:
parent
6cd604e510
commit
18e8bb3d6a
@ -29,7 +29,8 @@ class AP_BatteryMonitor;
|
||||
// enumerations
|
||||
enum halMode_t {
|
||||
MODE_LIVE, MODE_HIL_CNTL,
|
||||
/*MODE_HIL_NAV*/};
|
||||
/*MODE_HIL_NAV*/
|
||||
};
|
||||
enum board_t {
|
||||
BOARD_ARDUPILOTMEGA_1280, BOARD_ARDUPILOTMEGA_2560, BOARD_ARDUPILOTMEGA_2
|
||||
};
|
||||
|
@ -20,8 +20,10 @@ AP_MavlinkCommand::AP_MavlinkCommand(uint16_t index, bool doLoad) :
|
||||
if (FastSerial::getInitialized(0)) {
|
||||
Serial.println("index ctor");
|
||||
Serial.println("++");
|
||||
Serial.print("index: "); Serial.println(index);
|
||||
Serial.print("key: "); Serial.println(k_commands + index);
|
||||
Serial.print("index: ");
|
||||
Serial.println(index);
|
||||
Serial.print("key: ");
|
||||
Serial.println(k_commands + index);
|
||||
Serial.println("++");
|
||||
}
|
||||
|
||||
@ -64,27 +66,45 @@ AP_MavlinkCommand::AP_MavlinkCommand(const mavlink_waypoint_t & cmd) :
|
||||
|
||||
Serial.println("============================================================");
|
||||
Serial.println("storing new command from mavlink_waypoint_t");
|
||||
Serial.print("key: "); Serial.println(_data.key(),DEC);
|
||||
Serial.print("number: "); Serial.println(cmd.seq,DEC);
|
||||
Serial.print("command: "); Serial.println(getCommand());
|
||||
Serial.print("autocontinue: "); Serial.println(getAutocontinue(),DEC);
|
||||
Serial.print("frame: "); Serial.println(getFrame(),DEC);
|
||||
Serial.print("1000*param1: "); Serial.println(int(1000*getParam1()),DEC);
|
||||
Serial.print("1000*param2: "); Serial.println(int(1000*getParam2()),DEC);
|
||||
Serial.print("1000*param3: "); Serial.println(int(1000*getParam3()),DEC);
|
||||
Serial.print("1000*param4: "); Serial.println(int(1000*getParam4()),DEC);
|
||||
Serial.print("1000*x0: "); Serial.println(int(1000*cmd.x),DEC);
|
||||
Serial.print("1000*y0: "); Serial.println(int(1000*cmd.y),DEC);
|
||||
Serial.print("1000*z0: "); Serial.println(int(1000*cmd.z),DEC);
|
||||
Serial.print("1000*x: "); Serial.println(int(1000*getX()),DEC);
|
||||
Serial.print("1000*y: "); Serial.println(int(1000*getY()),DEC);
|
||||
Serial.print("1000*z: "); Serial.println(int(1000*getZ()),DEC);
|
||||
Serial.print("key: ");
|
||||
Serial.println(_data.key(),DEC);
|
||||
Serial.print("number: ");
|
||||
Serial.println(cmd.seq,DEC);
|
||||
Serial.print("command: ");
|
||||
Serial.println(getCommand());
|
||||
Serial.print("autocontinue: ");
|
||||
Serial.println(getAutocontinue(),DEC);
|
||||
Serial.print("frame: ");
|
||||
Serial.println(getFrame(),DEC);
|
||||
Serial.print("1000*param1: ");
|
||||
Serial.println(int(1000*getParam1()),DEC);
|
||||
Serial.print("1000*param2: ");
|
||||
Serial.println(int(1000*getParam2()),DEC);
|
||||
Serial.print("1000*param3: ");
|
||||
Serial.println(int(1000*getParam3()),DEC);
|
||||
Serial.print("1000*param4: ");
|
||||
Serial.println(int(1000*getParam4()),DEC);
|
||||
Serial.print("1000*x0: ");
|
||||
Serial.println(int(1000*cmd.x),DEC);
|
||||
Serial.print("1000*y0: ");
|
||||
Serial.println(int(1000*cmd.y),DEC);
|
||||
Serial.print("1000*z0: ");
|
||||
Serial.println(int(1000*cmd.z),DEC);
|
||||
Serial.print("1000*x: ");
|
||||
Serial.println(int(1000*getX()),DEC);
|
||||
Serial.print("1000*y: ");
|
||||
Serial.println(int(1000*getY()),DEC);
|
||||
Serial.print("1000*z: ");
|
||||
Serial.println(int(1000*getZ()),DEC);
|
||||
|
||||
load();
|
||||
|
||||
Serial.print("1000*x1: "); Serial.println(int(1000*getX()),DEC);
|
||||
Serial.print("1000*y1: "); Serial.println(int(1000*getY()),DEC);
|
||||
Serial.print("1000*z1: "); Serial.println(int(1000*getZ()),DEC);
|
||||
Serial.print("1000*x1: ");
|
||||
Serial.println(int(1000*getX()),DEC);
|
||||
Serial.print("1000*y1: ");
|
||||
Serial.println(int(1000*getY()),DEC);
|
||||
Serial.print("1000*z1: ");
|
||||
Serial.println(int(1000*getZ()),DEC);
|
||||
Serial.println("============================================================");
|
||||
Serial.flush();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user