2021-03-18 00:12:54 -03:00
|
|
|
#include "Blimp.h"
|
|
|
|
/*
|
2021-06-17 04:03:49 -03:00
|
|
|
* Init and run calls for manual flight mode
|
2021-03-18 00:12:54 -03:00
|
|
|
*/
|
|
|
|
|
2021-06-17 04:03:49 -03:00
|
|
|
// Runs the main manual controller
|
2021-03-18 00:12:54 -03:00
|
|
|
void ModeManual::run()
|
|
|
|
{
|
2021-06-23 11:17:34 -03:00
|
|
|
motors->right_out = channel_right->get_control_in() / float(RC_SCALE);
|
|
|
|
motors->front_out = channel_front->get_control_in() / float(RC_SCALE);
|
|
|
|
motors->yaw_out = channel_yaw->get_control_in() / float(RC_SCALE);
|
|
|
|
motors->down_out = channel_down->get_control_in() / float(RC_SCALE);
|
2021-03-18 00:12:54 -03:00
|
|
|
}
|