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

Control Zero F7 - Fix for voltage/current sensing #16590

Merged
merged 4 commits into from
Jan 19, 2021

Conversation

ryanjAA
Copy link
Contributor

@ryanjAA ryanjAA commented Jan 19, 2021

Fix to enable standard current/voltage sensor to display voltage and current readings on Control Zero F7.

Fix to enable standard current/voltage sensor to display voltage and current readings.
Copy link
Contributor Author

@ryanjAA ryanjAA left a comment

Choose a reason for hiding this comment

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

Removed .

@@ -175,7 +175,7 @@
#define BOARD_ADC_USB_CONNECTED (px4_arch_gpioread(GPIO_OTGFS_VBUS))
#define BOARD_ADC_USB_VALID BOARD_ADC_USB_CONNECTED
#define BOARD_ADC_SERVO_VALID (1) /* never powers off the Servo rail */
#define BOARD_ADC_BRICK_VALID (!px4_arch_gpioread(GPIO_nVDD_BRICK1_VALID))
#define BOARD_ADC_BRICK_VALID (px4_arch_gpioread(GPIO_nVDD_BRICK1_VALID))
Copy link
Member

@dagar dagar Jan 19, 2021

Choose a reason for hiding this comment

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

So GPIO_nVDD_BRICK1_VALID is actually GPIO_VDD_BRICK1_VALID? If so can you rename it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, it is renamed to GPIO_VDD_BRICK1_VALID (if I understood correctly that is what you were after but that would be different than the naming convention of everything else I could see).

Renaming GPIO_nVDD_BRICK1_VALID to GPIO_VDD_BRICK1_VALID
Renamed GPIO_nVDD_BRICK1_VALID to GPIO_VDD_BRICK1_VALID
@dagar
Copy link
Member

dagar commented Jan 19, 2021

Confirmed working?

  • listener system_power
  • listener battery_status

@ryanjAA
Copy link
Contributor Author

ryanjAA commented Jan 19, 2021

Confirmed working.

Screen Shot 2021-01-19 at 2 31 29 PM

Screen Shot 2021-01-19 at 2 30 00 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants