Piping through manual control channels

This commit is contained in:
Lorenz Meier
2013-10-15 08:39:57 +02:00
parent 16efc0d2d9
commit 3dcd5dbd0e
3 changed files with 32 additions and 0 deletions
@@ -368,6 +368,12 @@ mc_thread_main(int argc, char *argv[])
actuators.control[3] = 0.0f;
}
/* fill in manual control values */
actuators.control[4] = manual.flaps;
actuators.control[5] = manual.aux1;
actuators.control[6] = manual.aux2;
actuators.control[7] = manual.aux3;
actuators.timestamp = hrt_absolute_time();
orb_publish(ORB_ID_VEHICLE_ATTITUDE_CONTROLS, actuator_pub, &actuators);