// NOTE: the EKF uses the reverse sign convention to the flow sensor. EKF assumes positive LOS rate is produced by a RH rotation of the image about the sensor axis.
// copy the optical and gyro measured delta angles
optflow_sample_new.flowRadXY=-flow->flowdata;
optflow_sample_new.gyroXYZ=-flow->gyrodata;
if(flow_quality_good){
optflow_sample_new.flowRadXY=-flow->flowdata;
}else{
// when on the ground with poor flow quality, assume zero ground relative velocity