Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: frontend: Implement motor test #1499

Merged
merged 1 commit into from
Apr 8, 2023

Conversation

Williangalvani
Copy link
Member

needs some cleaning up, and probably refactoring the the arm button into a component

tested with a servo in the pwm rail and 5v jumped to it

@Williangalvani
Copy link
Member Author

Williangalvani commented Feb 23, 2023

  • change color of main bar
  • make body transparent in pwm outputs
  • look at cockpit's armed button

@Williangalvani Williangalvani force-pushed the motortest branch 2 times, most recently from 3179362 to cc74bb4 Compare March 2, 2023 18:05
@Williangalvani Williangalvani marked this pull request as ready for review March 2, 2023 18:37
@Williangalvani
Copy link
Member Author

we still need to able to revert the motor direction, along with a couple of other things. I intend to do this as it's own component in another pr

@Williangalvani Williangalvani changed the title Wip: motor test core: frontend: Implement motor test Mar 2, 2023
@ES-Alexander ES-Alexander added the docs-needed Change needs to be documented label Mar 8, 2023
},
methods: {
styleForMotorBar(value: number): string {
const percent = (value - 1500) / 10
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't be SERVOn_MIN and SERVOn_MAX ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

motors don't use SERVOn_MIN/MAX

We can expose MOT_PWM_MIN/MAX in another slider, I think.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there should probably at minimum be a TODO here on using TRIM params here, instead of hardcoded 1500

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't really have TRIM params for motors, though 😅

core/frontend/src/components/vehiclesetup/PwmSetup.vue Outdated Show resolved Hide resolved
core/frontend/src/store/mavlink.ts Outdated Show resolved Hide resolved
@patrickelectric
Copy link
Member

@Williangalvani can you rebase over master ?

command: {
type: MavCmd.MAV_CMD_COMPONENT_ARM_DISARM,
},
target_system: 1,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That will be affect by #1581, do you prefer to merge it before ?

@patrickelectric patrickelectric merged commit c543a0b into bluerobotics:master Apr 8, 2023
5 checks passed
@ES-Alexander ES-Alexander added docs-complete Change documentation has been completed and removed docs-needed Change needs to be documented labels Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-complete Change documentation has been completed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants