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:
Kirk Scheper
2018-07-25 23:06:47 +02:00
committed by Gautier Hattenberger
parent db22c2cf2e
commit b9d3ea4ac3
18 changed files with 361 additions and 297 deletions
@@ -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();
}