Skip to content

Commit

Permalink
commented out GCS message , it was not bug, so bug must be with xyz c…
Browse files Browse the repository at this point in the history
…alculation
  • Loading branch information
PeterJBurke committed Mar 26, 2024
1 parent b63a704 commit 989c450
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ArduCopter/dumpcore.sh_arducopter.197853.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Could not attach to process. If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Inappropriate ioctl for device.
/tmp/gdb.198784:2: Error in sourced command file:
You can't do that without a process to debug.
6 changes: 6 additions & 0 deletions ArduCopter/dumpstack.sh_arducopter.197853.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Could not attach to process. If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Inappropriate ioctl for device.
/tmp/gdb.198762:2: Error in sourced command file:
No stack.
4 changes: 4 additions & 0 deletions libraries/AP_Avoidance/AP_Avoidance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,7 @@ void AP_Avoidance::handle_avoidance_local(AP_Avoidance::Obstacle *threat)
uint32_t now = AP_HAL::millis();
if ( (now - time_of_last_GCS_nearest_drone_update ) > 1000){
// xxx want to send instantaneous xy and z distance, from the threat object....
if(false){
const AP_AHRS &_ahrs = AP::ahrs();
Location my_loc;
if (!_ahrs.get_location(my_loc)) {
Expand All @@ -679,7 +680,10 @@ void AP_Avoidance::handle_avoidance_local(AP_Avoidance::Obstacle *threat)

GCS_SEND_TEXT(MAV_SEVERITY_INFO,"xy: %f,z: %f", instantaneous_xy, instantaneous_z);
//GCS_SEND_TEXT(MAV_SEVERITY_INFO,"xy: %f,z: %f", threat->closest_approach_xy, threat->closest_approach_z);

}
time_of_last_GCS_nearest_drone_update=now;
GCS_SEND_TEXT(MAV_SEVERITY_INFO,"xy: %f,z: %f", float(now), float(now));
}
// double closest_approach_xy = threat->closest_approach_xy;
// double closest_approach_z = threat->closest_approach_z;
Expand Down

0 comments on commit 989c450

Please sign in to comment.