mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-31 12:23:23 +08:00
added agl estimator when assuming non flat ground (#1910)
* added agl estimator when assuming non flat ground * add documentation and expand message * update pprzlink
This commit is contained in:
committed by
Gautier Hattenberger
parent
db22c2cf2e
commit
b9d3ea4ac3
@@ -158,7 +158,9 @@ void nps_autopilot_run_step(double time)
|
||||
AbiSendMsgAGL(AGL_SONAR_NPS_ID, dist);
|
||||
|
||||
uint16_t foo = 0;
|
||||
#ifdef SENSOR_SYNC_SEND_SONAR
|
||||
DOWNLINK_SEND_SONAR(DefaultChannel, DefaultDevice, &foo, &dist);
|
||||
#endif
|
||||
|
||||
Fbw(event_task);
|
||||
Ap(event_task);
|
||||
|
||||
@@ -134,7 +134,9 @@ void nps_autopilot_run_step(double time)
|
||||
AbiSendMsgAGL(AGL_SONAR_NPS_ID, dist);
|
||||
|
||||
uint16_t foo = 0;
|
||||
#ifdef SENSOR_SYNC_SEND_SONAR
|
||||
DOWNLINK_SEND_SONAR(DefaultChannel, DefaultDevice, &foo, &dist);
|
||||
#endif
|
||||
|
||||
main_event();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user