Skip to content

Commit

Permalink
adding surface tracking
Browse files Browse the repository at this point in the history
add button function
  • Loading branch information
Williangalvani committed Feb 15, 2024
1 parent b1a8574 commit 9e354f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libs/joystick/protocols/mavlink-manual-control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export enum MAVLinkButtonFunction {
mode_circle = 'Mode circle', // 10
mode_guided = 'Mode guided', // 11
mode_acro = 'Mode acro', // 12
mode_surftrack = 'Mode SurfTrack', // 13
mount_center = 'Mount center', // 21
mount_tilt_up = 'Mount tilt up', // 22
mount_tilt_down = 'Mount tilt down', // 23
Expand Down Expand Up @@ -235,6 +236,7 @@ const mavlinkManualControlButtonFunctions: { [key in MAVLinkButtonFunction]: MAV
[MAVLinkButtonFunction.mode_circle]: new MAVLinkManualControlButtonAction(MAVLinkButtonFunction.mode_circle, 'Mode circle'),
[MAVLinkButtonFunction.mode_guided]: new MAVLinkManualControlButtonAction(MAVLinkButtonFunction.mode_guided, 'Mode guided'),
[MAVLinkButtonFunction.mode_acro]: new MAVLinkManualControlButtonAction(MAVLinkButtonFunction.mode_acro, 'Mode acro'),
[MAVLinkButtonFunction.mode_surftrack]: new MAVLinkManualControlButtonAction(MAVLinkButtonFunction.mode_surftrack, 'Mode SurfTrack'),
[MAVLinkButtonFunction.mount_center]: new MAVLinkManualControlButtonAction(MAVLinkButtonFunction.mount_center, 'Mount center'),
[MAVLinkButtonFunction.mount_tilt_up]: new MAVLinkManualControlButtonAction(MAVLinkButtonFunction.mount_tilt_up, 'Mount tilt up'),
[MAVLinkButtonFunction.mount_tilt_down]: new MAVLinkManualControlButtonAction(MAVLinkButtonFunction.mount_tilt_down, 'Mount tilt down'),
Expand Down
2 changes: 2 additions & 0 deletions src/libs/vehicle/ardupilot/ardusub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ export enum CustomMode {
CIRCLE = 7,
// Automatically return to surface, pilot maintains horizontal control
SURFACE = 9,
// maintain distance from the bottom surface
SURFACE_TRACK = 21,
// Automatic position hold with manual override, with automatic throttle
POSHOLD = 16,
// Pass-through input with no stabilization
Expand Down

0 comments on commit 9e354f5

Please sign in to comment.