mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 07:28:29 -04:00
Rover: add support for Sprayer
This commit is contained in:
parent
e4d3ed7e39
commit
ca7842afac
@ -77,6 +77,7 @@ const AP_Scheduler::Task Rover::scheduler_tasks[] = {
|
|||||||
SCHED_TASK_CLASS(ModeSmartRTL, &rover.mode_smartrtl, save_position, 3, 200),
|
SCHED_TASK_CLASS(ModeSmartRTL, &rover.mode_smartrtl, save_position, 3, 200),
|
||||||
SCHED_TASK_CLASS(AP_Notify, &rover.notify, update, 50, 300),
|
SCHED_TASK_CLASS(AP_Notify, &rover.notify, update, 50, 300),
|
||||||
SCHED_TASK(one_second_loop, 1, 1500),
|
SCHED_TASK(one_second_loop, 1, 1500),
|
||||||
|
SCHED_TASK_CLASS(AC_Sprayer, &rover.g2.sprayer, update, 3, 90),
|
||||||
SCHED_TASK(compass_cal_update, 50, 200),
|
SCHED_TASK(compass_cal_update, 50, 200),
|
||||||
SCHED_TASK(compass_save, 0.1, 200),
|
SCHED_TASK(compass_save, 0.1, 200),
|
||||||
SCHED_TASK(accel_cal_update, 10, 200),
|
SCHED_TASK(accel_cal_update, 10, 200),
|
||||||
|
@ -571,6 +571,10 @@ const AP_Param::GroupInfo ParametersG2::var_info[] = {
|
|||||||
// @User: Standard
|
// @User: Standard
|
||||||
AP_GROUPINFO("LOIT_TYPE", 25, ParametersG2, loit_type, 0),
|
AP_GROUPINFO("LOIT_TYPE", 25, ParametersG2, loit_type, 0),
|
||||||
|
|
||||||
|
// @Group: SPRAYER_
|
||||||
|
// @Path: ../libraries/AC_Sprayer/AC_Sprayer.cpp
|
||||||
|
AP_SUBGROUPINFO(sprayer, "SPRAY_", 26, ParametersG2, AC_Sprayer),
|
||||||
|
|
||||||
AP_GROUPEND
|
AP_GROUPEND
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
#include <AP_Common/AP_Common.h>
|
#include <AP_Common/AP_Common.h>
|
||||||
|
|
||||||
#include "RC_Channel.h"
|
#include "RC_Channel.h"
|
||||||
|
#include "AC_Sprayer/AC_Sprayer.h"
|
||||||
|
|
||||||
// Global parameter class.
|
// Global parameter class.
|
||||||
//
|
//
|
||||||
@ -357,6 +358,9 @@ public:
|
|||||||
|
|
||||||
// loiter type
|
// loiter type
|
||||||
AP_Int8 loit_type;
|
AP_Int8 loit_type;
|
||||||
|
|
||||||
|
// Sprayer
|
||||||
|
AC_Sprayer sprayer;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern const AP_Param::Info var_info[];
|
extern const AP_Param::Info var_info[];
|
||||||
|
Loading…
Reference in New Issue
Block a user