Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Baitboat
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenSource
Baitboat
Commits
ca470f8a
Commit
ca470f8a
authored
13 years ago
by
Jason Short
Browse files
Options
Downloads
Patches
Plain Diff
Arducopter: Testing toy mode - commented out by default
parent
24d05c17
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ArduCopter/test.pde
+25
-22
25 additions, 22 deletions
ArduCopter/test.pde
with
25 additions
and
22 deletions
ArduCopter/test.pde
+
25
−
22
View file @
ca470f8a
...
@@ -18,7 +18,7 @@ static int8_t test_ins(uint8_t argc, const Menu::arg *argv);
...
@@ -18,7 +18,7 @@ static int8_t test_ins(uint8_t argc, const Menu::arg *argv);
//static int8_t test_omega(uint8_t argc, const Menu::arg *argv);
//static int8_t test_omega(uint8_t argc, const Menu::arg *argv);
//static int8_t test_stab_d(uint8_t argc, const Menu::arg *argv);
//static int8_t test_stab_d(uint8_t argc, const Menu::arg *argv);
static
int8_t
test_battery
(
uint8_t
argc
,
const
Menu
::
arg
*
argv
);
static
int8_t
test_battery
(
uint8_t
argc
,
const
Menu
::
arg
*
argv
);
//static int8_t test_
boost
(uint8_t argc, const Menu::arg *argv);
//static int8_t test_
toy
(uint8_t argc, const Menu::arg *argv);
//static int8_t test_wp_nav(uint8_t argc, const Menu::arg *argv);
//static int8_t test_wp_nav(uint8_t argc, const Menu::arg *argv);
//static int8_t test_reverse(uint8_t argc, const Menu::arg *argv);
//static int8_t test_reverse(uint8_t argc, const Menu::arg *argv);
static
int8_t
test_tuning
(
uint8_t
argc
,
const
Menu
::
arg
*
argv
);
static
int8_t
test_tuning
(
uint8_t
argc
,
const
Menu
::
arg
*
argv
);
...
@@ -75,7 +75,7 @@ const struct Menu::command test_menu_commands[] PROGMEM = {
...
@@ -75,7 +75,7 @@ const struct Menu::command test_menu_commands[] PROGMEM = {
//{"tri", test_tri},
//{"tri", test_tri},
{
"relay"
,
test_relay
},
{
"relay"
,
test_relay
},
{
"wp"
,
test_wp
},
{
"wp"
,
test_wp
},
// {"
boost
", test_
boost
},
// {"
toy
",
test_
toy
},
#if HIL_MODE != HIL_MODE_ATTITUDE
#if HIL_MODE != HIL_MODE_ATTITUDE
{
"altitude"
,
test_baro
},
{
"altitude"
,
test_baro
},
{
"sonar"
,
test_sonar
},
{
"sonar"
,
test_sonar
},
...
@@ -183,27 +183,30 @@ test_radio_pwm(uint8_t argc, const Menu::arg *argv)
...
@@ -183,27 +183,30 @@ test_radio_pwm(uint8_t argc, const Menu::arg *argv)
}
}
}*/
}*/
/*
static int8_t
//test_boost(uint8_t argc, const Menu::arg *argv)
{
print_hit_enter();
delay(1000);
int16_t temp = g.throttle_min;
while(1){
delay(20);
g.rc_3.control_in = temp;
adjust_altitude();
Serial.printf("tmp:%d, boost: %d\n", temp, manual_boost);
temp++;
if(temp > MAXIMUM_THROTTLE){
/*static int8_t
return (0);
//test_toy(uint8_t argc, const Menu::arg *argv)
}
{
}
int16_t yaw_rate;
}
int16_t roll_rate;
//*/
g.rc_1.control_in = -2500;
g.rc_2.control_in = 2500;
g.toy_yaw_rate = 3;
yaw_rate = g.rc_1.control_in / g.toy_yaw_rate;
roll_rate = ((int32_t)g.rc_2.control_in * (yaw_rate/100)) /40;
Serial.printf("yaw_rate, %d, roll_rate, %d\n", yaw_rate, roll_rate);
g.toy_yaw_rate = 2;
yaw_rate = g.rc_1.control_in / g.toy_yaw_rate;
roll_rate = ((int32_t)g.rc_2.control_in * (yaw_rate/100)) /40;
Serial.printf("yaw_rate, %d, roll_rate, %d\n", yaw_rate, roll_rate);
g.toy_yaw_rate = 1;
yaw_rate = g.rc_1.control_in / g.toy_yaw_rate;
roll_rate = ((int32_t)g.rc_2.control_in * (yaw_rate/100)) /40;
Serial.printf("yaw_rate, %d, roll_rate, %d\n", yaw_rate, roll_rate);
}*/
static
int8_t
static
int8_t
test_radio
(
uint8_t
argc
,
const
Menu
::
arg
*
argv
)
test_radio
(
uint8_t
argc
,
const
Menu
::
arg
*
argv
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment